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

@ -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::*;
}