Implement should_panic for ktest and clear the codebase

This commit is contained in:
Zhang Junyang
2023-11-05 00:14:28 +08:00
committed by Tate, Hongliang Tian
parent bb0560530f
commit 45a6b2f46c
14 changed files with 242 additions and 170 deletions

View File

@ -27,7 +27,10 @@ use crate::{
Thread,
},
};
use jinux_frame::{boot, exit_qemu, QemuExitCode};
use jinux_frame::{
arch::qemu::{exit_qemu, QemuExitCode},
boot,
};
use process::Process;
extern crate alloc;

View File

@ -531,9 +531,6 @@ mod test {
}
#[ktest]
// FIXME: should_panic doesn't work with ktest, two negative makes a positive...
#[should_panic]
/// FIXME: alloc continuous frames is not supported now
fn alloc_continuous_vmo() {
let vmo = VmoOptions::<Full>::new(10 * PAGE_SIZE)
.flags(VmoFlags::CONTIGUOUS)