mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-21 16:33:24 +00:00
Fix the OSDK CI failure
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
fe7251c413
commit
3de8a9330a
@ -22,9 +22,6 @@
|
||||
#![warn(missing_docs)]
|
||||
|
||||
extern crate alloc;
|
||||
#[cfg(ktest)]
|
||||
#[macro_use]
|
||||
extern crate ktest;
|
||||
extern crate static_assertions;
|
||||
|
||||
pub mod arch;
|
||||
@ -109,6 +106,8 @@ fn invoke_ffi_init_funcs() {
|
||||
/// Simple unit tests for the ktest framework.
|
||||
#[cfg(ktest)]
|
||||
mod test {
|
||||
use crate::prelude::*;
|
||||
|
||||
#[ktest]
|
||||
fn trivial_assertion() {
|
||||
assert_eq!(0, 0);
|
||||
@ -126,3 +125,9 @@ mod test {
|
||||
panic!("expected panic message");
|
||||
}
|
||||
}
|
||||
|
||||
/// The module re-exports everything from the ktest crate
|
||||
#[cfg(ktest)]
|
||||
pub mod ktest {
|
||||
pub use ktest::*;
|
||||
}
|
||||
|
Reference in New Issue
Block a user