2019-11-14 15:26:41 +00:00
|
|
|
// error-pattern:building tests with panic=abort is not supported
|
2019-09-20 02:33:38 +00:00
|
|
|
// no-prefer-dynamic
|
2021-04-30 04:01:04 +00:00
|
|
|
// compile-flags: --test -Cpanic=abort -Zpanic-abort-tests=no
|
2019-09-20 02:33:38 +00:00
|
|
|
// run-flags: --test-threads=1
|
|
|
|
|
2023-06-14 10:19:21 +00:00
|
|
|
// needs-unwind
|
2019-09-20 02:33:38 +00:00
|
|
|
// ignore-wasm no panic or subprocess support
|
|
|
|
// ignore-emscripten no panic or subprocess support
|
|
|
|
|
|
|
|
#![cfg(test)]
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn it_works() {
|
|
|
|
assert_eq!(1 + 1, 2);
|
|
|
|
}
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
#[should_panic]
|
|
|
|
fn it_panics() {
|
|
|
|
assert_eq!(1 + 1, 4);
|
|
|
|
}
|