Fix the OSDK CI failure

This commit is contained in:
Jianfeng Jiang
2024-06-21 05:51:13 +00:00
committed by Tate, Hongliang Tian
parent fe7251c413
commit 3de8a9330a
40 changed files with 260 additions and 189 deletions

View File

@ -21,7 +21,10 @@ mod test {
bio::{BioEnqueueError, BioStatus, BioType, SubmittedBio},
BlockDevice,
};
use ostd::mm::{FrameAllocOptions, Segment, VmIo};
use ostd::{
mm::{FrameAllocOptions, Segment, VmIo},
prelude::*,
};
use rand::{rngs::SmallRng, RngCore, SeedableRng};
use crate::{

View File

@ -541,6 +541,8 @@ impl<T> AsRef<Error> for (Error, T) {
mod test {
use alloc::sync::Arc;
use ostd::prelude::*;
use crate::fs::utils::Channel;
#[ktest]

View File

@ -41,9 +41,6 @@ extern crate alloc;
extern crate lru;
#[macro_use]
extern crate controlled;
#[cfg(ktest)]
#[macro_use]
extern crate ktest;
#[macro_use]
extern crate getset;

View File

@ -652,6 +652,8 @@ pub fn current() -> Arc<Process> {
#[cfg(ktest)]
mod test {
use ostd::prelude::*;
use super::*;
fn new_process(parent: Option<Arc<Process>>) -> Arc<Process> {

View File

@ -264,7 +264,7 @@ impl Condvar {
#[cfg(ktest)]
mod test {
use ostd::sync::Mutex;
use ostd::{prelude::*, sync::Mutex};
use super::*;
use crate::thread::{

View File

@ -189,7 +189,7 @@ fn taskless_softirq_handler(
mod test {
use core::sync::atomic::AtomicUsize;
use ostd::trap::enable_local;
use ostd::{prelude::*, trap::enable_local};
use super::*;

View File

@ -136,7 +136,7 @@ impl<R> VmarChildOptions<R> {
#[cfg(ktest)]
mod test {
use aster_rights::Full;
use ostd::mm::VmIo;
use ostd::{mm::VmIo, prelude::*};
use super::*;
use crate::vm::{

View File

@ -477,7 +477,7 @@ impl VmoChildType for VmoCowChild {}
#[cfg(ktest)]
mod test {
use aster_rights::Full;
use ostd::mm::VmIo;
use ostd::{mm::VmIo, prelude::*};
use super::*;