2023-06-14 10:30:17 +00:00
|
|
|
//@ compile-flags: --test -Zpanic-abort-tests
|
2021-05-03 12:55:22 +00:00
|
|
|
//@ run-flags: --test-threads=1
|
|
|
|
//@ check-run-results
|
|
|
|
//@ normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME"
|
2024-03-06 20:19:20 +00:00
|
|
|
//@ needs-threads
|
2021-05-03 12:55:22 +00:00
|
|
|
//@ run-pass
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn test_ok() {
|
|
|
|
let _a = true;
|
|
|
|
}
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
#[should_panic]
|
|
|
|
fn test_panic() {
|
|
|
|
panic!();
|
|
|
|
}
|
|
|
|
|
|
|
|
#[test]
|
2022-03-11 12:30:21 +00:00
|
|
|
#[ignore = "msg"]
|
2021-05-03 12:55:22 +00:00
|
|
|
fn test_no_run() {
|
2022-03-11 12:30:21 +00:00
|
|
|
loop {
|
2021-05-03 12:55:22 +00:00
|
|
|
println!("Hello, world");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|