]>
Commit | Line | Data |
---|---|---|
d9bb1a4e | 1 | // error-pattern:building tests with panic=abort is not supported |
e74abb32 XL |
2 | // no-prefer-dynamic |
3 | // compile-flags: --test -Cpanic=abort | |
4 | // run-flags: --test-threads=1 | |
5 | ||
6 | // ignore-wasm no panic or subprocess support | |
7 | // ignore-emscripten no panic or subprocess support | |
8 | ||
9 | #![cfg(test)] | |
10 | ||
11 | #[test] | |
12 | fn it_works() { | |
13 | assert_eq!(1 + 1, 2); | |
14 | } | |
15 | ||
16 | #[test] | |
17 | #[should_panic] | |
18 | fn it_panics() { | |
19 | assert_eq!(1 + 1, 4); | |
20 | } |