Skip to content

Commit

Permalink
Do not exit after testcases in main
Browse files Browse the repository at this point in the history
  • Loading branch information
hky1999 committed Sep 8, 2024
1 parent 5a2d23e commit ef48935
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,18 @@
#[macro_use]
extern crate log;
extern crate alloc;
extern crate axstd;
#[macro_use]
extern crate axstd as std;

mod loader;
mod mm;
mod syscall;
mod task;
use alloc::sync::Arc;

use std::thread;
use std::time::Duration;

use axhal::arch::UspaceContext;
use axsync::Mutex;

Expand All @@ -34,4 +38,9 @@ fn main() {
let exit_code = user_task.join();
info!("User task {} exited with code: {:?}", testcase, exit_code);
}

loop {
println!("Starry tick...");
thread::sleep(Duration::from_secs(1));
}
}

0 comments on commit ef48935

Please sign in to comment.