mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-26 19:03:27 +00:00
Fix the OSDK CI failure
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
fe7251c413
commit
3de8a9330a
@ -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::{
|
||||
|
@ -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]
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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> {
|
||||
|
@ -264,7 +264,7 @@ impl Condvar {
|
||||
|
||||
#[cfg(ktest)]
|
||||
mod test {
|
||||
use ostd::sync::Mutex;
|
||||
use ostd::{prelude::*, sync::Mutex};
|
||||
|
||||
use super::*;
|
||||
use crate::thread::{
|
||||
|
@ -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::*;
|
||||
|
||||
|
@ -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::{
|
||||
|
@ -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::*;
|
||||
|
||||
|
Reference in New Issue
Block a user