Rollup merge of #112616 - ferrocene:pa-more-test-suite-fixes, r=Nilstrieb

Improve tests on targets without unwinding

This PR makes more miscellaneous changes to tests, to make it work on targets without unwinding support.
This commit is contained in:
Matthias Krüger 2023-06-23 19:39:57 +02:00 committed by GitHub
commit ff596144be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 3 deletions

View File

@ -11,7 +11,7 @@
#[naked] #[naked]
#[no_mangle] #[no_mangle]
pub unsafe extern "C" fn f() { pub unsafe extern "C" fn f() {
// CHECK: define void @f() // CHECK: define {{(dso_local )?}}void @f()
// CHECK-NEXT: start: // CHECK-NEXT: start:
// CHECK-NEXT: call void asm // CHECK-NEXT: call void asm
// CHECK-NEXT: unreachable // CHECK-NEXT: unreachable

View File

@ -1,6 +1,7 @@
// only-aarch64 // only-aarch64
// run-pass // run-pass
// needs-asm-support // needs-asm-support
// needs-unwind
#![feature(asm_unwind)] #![feature(asm_unwind)]

View File

@ -3,6 +3,7 @@
// compile-flags: --test -Cpanic=abort -Zpanic-abort-tests=no // compile-flags: --test -Cpanic=abort -Zpanic-abort-tests=no
// run-flags: --test-threads=1 // run-flags: --test-threads=1
// needs-unwind
// ignore-wasm no panic or subprocess support // ignore-wasm no panic or subprocess support
// ignore-emscripten no panic or subprocess support // ignore-emscripten no panic or subprocess support

View File

@ -1,9 +1,8 @@
// compile-flags: --test // compile-flags: --test -Zpanic-abort-tests
// run-flags: --test-threads=1 // run-flags: --test-threads=1
// check-run-results // check-run-results
// normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME" // normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME"
// ignore-emscripten no threads support // ignore-emscripten no threads support
// needs-unwind
// run-pass // run-pass
#[test] #[test]