]>
Commit | Line | Data |
---|---|---|
60c5eb7d | 1 | // error-pattern:building tests with panic=abort is not supported |
e74abb32 | 2 | // no-prefer-dynamic |
17df50a5 | 3 | // compile-flags: --test -Cpanic=abort -Zpanic-abort-tests=no |
e74abb32 XL |
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 | } |