Commit e38c225a authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Add pit test

parent e2dedd1e
///Acid testing program
use std::process::Command;
use std::thread;
use std::time::Instant;
fn main() {
println!("Trying to stop kernel...");
let start = Instant::now();
while start.elapsed().as_secs() == 0 {}
println!("Kernel preempted!");
println!("Trying to kill kernel...");
let mut threads = Vec::new();
......@@ -35,5 +43,5 @@ fn main() {
thread.join().unwrap();
}
println!("Kernel survived!");
println!("Kernel survived thread test!");
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment