diff options
| author | 许杰友 Jieyou Xu (Joe) <jieyouxu@outlook.com> | 2024-02-16 20:02:50 +0000 |
|---|---|---|
| committer | 许杰友 Jieyou Xu (Joe) <jieyouxu@outlook.com> | 2024-02-16 20:02:50 +0000 |
| commit | ec2cc761bc7067712ecc7734502f703fe3b024c8 (patch) | |
| tree | 7ab55cd9562da45b86c959f1b98c199b2b03ca92 /tests/ui/runtime | |
| parent | e53d6dd35bb38b81dff4b00497f4c152e9009499 (diff) | |
| download | rust-ec2cc761bc7067712ecc7734502f703fe3b024c8.tar.gz rust-ec2cc761bc7067712ecc7734502f703fe3b024c8.zip | |
[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives
Diffstat (limited to 'tests/ui/runtime')
| -rw-r--r-- | tests/ui/runtime/atomic-print.rs | 6 | ||||
| -rw-r--r-- | tests/ui/runtime/backtrace-debuginfo-aux.rs | 4 | ||||
| -rw-r--r-- | tests/ui/runtime/backtrace-debuginfo.rs | 14 | ||||
| -rw-r--r-- | tests/ui/runtime/native-print-no-runtime.rs | 2 | ||||
| -rw-r--r-- | tests/ui/runtime/out-of-stack.rs | 12 | ||||
| -rw-r--r-- | tests/ui/runtime/rt-explody-panic-payloads.rs | 8 | ||||
| -rw-r--r-- | tests/ui/runtime/running-with-no-runtime.rs | 6 | ||||
| -rw-r--r-- | tests/ui/runtime/signal-alternate-stack-cleanup.rs | 12 | ||||
| -rw-r--r-- | tests/ui/runtime/stdout-during-shutdown.rs | 6 |
9 files changed, 35 insertions, 35 deletions
diff --git a/tests/ui/runtime/atomic-print.rs b/tests/ui/runtime/atomic-print.rs index fe57910530f..aa3183885bf 100644 --- a/tests/ui/runtime/atomic-print.rs +++ b/tests/ui/runtime/atomic-print.rs @@ -1,9 +1,9 @@ -// run-pass +//@ run-pass #![allow(unused_must_use)] #![allow(deprecated)] -// ignore-emscripten no threads support -// ignore-sgx no processes +//@ ignore-emscripten no threads support +//@ ignore-sgx no processes use std::{env, fmt, process, sync, thread}; diff --git a/tests/ui/runtime/backtrace-debuginfo-aux.rs b/tests/ui/runtime/backtrace-debuginfo-aux.rs index 1411bcf89e8..24180ed2196 100644 --- a/tests/ui/runtime/backtrace-debuginfo-aux.rs +++ b/tests/ui/runtime/backtrace-debuginfo-aux.rs @@ -1,5 +1,5 @@ -// run-pass -// ignore-test: not a test, used by backtrace-debuginfo.rs to test file!() +//@ run-pass +//@ ignore-test: not a test, used by backtrace-debuginfo.rs to test file!() #[inline(never)] pub fn callback<F>(f: F) where F: FnOnce((&'static str, u32)) { diff --git a/tests/ui/runtime/backtrace-debuginfo.rs b/tests/ui/runtime/backtrace-debuginfo.rs index 5d233b38dbe..49f153fabda 100644 --- a/tests/ui/runtime/backtrace-debuginfo.rs +++ b/tests/ui/runtime/backtrace-debuginfo.rs @@ -1,4 +1,4 @@ -// run-pass +//@ run-pass // We disable tail merging here because it can't preserve debuginfo and thus // potentially breaks the backtraces. Also, subtle changes can decide whether // tail merging succeeds, so the test might work today but fail tomorrow due to a @@ -6,12 +6,12 @@ // Unfortunately, LLVM has no "disable" option for this, so we have to set // "enable" to 0 instead. -// compile-flags:-g -Copt-level=0 -Cllvm-args=-enable-tail-merge=0 -// compile-flags:-Cforce-frame-pointers=yes -// compile-flags:-Cstrip=none -// ignore-emscripten spawning processes is not supported -// ignore-sgx no processes -// ignore-fuchsia Backtrace not symbolized, trace different line alignment +//@ compile-flags:-g -Copt-level=0 -Cllvm-args=-enable-tail-merge=0 +//@ compile-flags:-Cforce-frame-pointers=yes +//@ compile-flags:-Cstrip=none +//@ ignore-emscripten spawning processes is not supported +//@ ignore-sgx no processes +//@ ignore-fuchsia Backtrace not symbolized, trace different line alignment use std::env; diff --git a/tests/ui/runtime/native-print-no-runtime.rs b/tests/ui/runtime/native-print-no-runtime.rs index f17c9fa6ca9..f0ed7d97b2c 100644 --- a/tests/ui/runtime/native-print-no-runtime.rs +++ b/tests/ui/runtime/native-print-no-runtime.rs @@ -1,4 +1,4 @@ -// run-pass +//@ run-pass #![feature(start)] diff --git a/tests/ui/runtime/out-of-stack.rs b/tests/ui/runtime/out-of-stack.rs index ff45ace7857..e8e0e847a8e 100644 --- a/tests/ui/runtime/out-of-stack.rs +++ b/tests/ui/runtime/out-of-stack.rs @@ -1,12 +1,12 @@ -// run-pass +//@ run-pass #![allow(unused_must_use)] #![allow(unconditional_recursion)] -// ignore-android: FIXME (#20004) -// ignore-emscripten no processes -// ignore-sgx no processes -// ignore-fuchsia must translate zircon signal to SIGABRT, FIXME (#58590) -// ignore-nto no stack overflow handler used (no alternate stack available) +//@ ignore-android: FIXME (#20004) +//@ ignore-emscripten no processes +//@ ignore-sgx no processes +//@ ignore-fuchsia must translate zircon signal to SIGABRT, FIXME (#58590) +//@ ignore-nto no stack overflow handler used (no alternate stack available) #![feature(core_intrinsics)] #![feature(rustc_private)] diff --git a/tests/ui/runtime/rt-explody-panic-payloads.rs b/tests/ui/runtime/rt-explody-panic-payloads.rs index 755d3df42de..bd3624a8aee 100644 --- a/tests/ui/runtime/rt-explody-panic-payloads.rs +++ b/tests/ui/runtime/rt-explody-panic-payloads.rs @@ -1,7 +1,7 @@ -// run-pass -// needs-unwind -// ignore-emscripten no processes -// ignore-sgx no processes +//@ run-pass +//@ needs-unwind +//@ ignore-emscripten no processes +//@ ignore-sgx no processes use std::env; use std::process::Command; diff --git a/tests/ui/runtime/running-with-no-runtime.rs b/tests/ui/runtime/running-with-no-runtime.rs index c321e86dc18..8430e826dc3 100644 --- a/tests/ui/runtime/running-with-no-runtime.rs +++ b/tests/ui/runtime/running-with-no-runtime.rs @@ -1,6 +1,6 @@ -// run-pass -// ignore-emscripten spawning processes is not supported -// ignore-sgx no processes +//@ run-pass +//@ ignore-emscripten spawning processes is not supported +//@ ignore-sgx no processes #![feature(start)] diff --git a/tests/ui/runtime/signal-alternate-stack-cleanup.rs b/tests/ui/runtime/signal-alternate-stack-cleanup.rs index 37c602ae0b0..3b7bb0d505d 100644 --- a/tests/ui/runtime/signal-alternate-stack-cleanup.rs +++ b/tests/ui/runtime/signal-alternate-stack-cleanup.rs @@ -1,13 +1,13 @@ -// run-pass +//@ run-pass // Previously memory for alternate signal stack have been unmapped during // main thread exit while still being in use by signal handlers. This test // triggers this situation by sending signal from atexit handler. // -// ignore-wasm32-bare no libc -// ignore-windows -// ignore-sgx no libc -// ignore-vxworks no SIGWINCH in user space -// ignore-nto no SA_ONSTACK +//@ ignore-wasm32-bare no libc +//@ ignore-windows +//@ ignore-sgx no libc +//@ ignore-vxworks no SIGWINCH in user space +//@ ignore-nto no SA_ONSTACK #![feature(rustc_private)] extern crate libc; diff --git a/tests/ui/runtime/stdout-during-shutdown.rs b/tests/ui/runtime/stdout-during-shutdown.rs index a6cf812ca64..8549f5d8eb6 100644 --- a/tests/ui/runtime/stdout-during-shutdown.rs +++ b/tests/ui/runtime/stdout-during-shutdown.rs @@ -1,6 +1,6 @@ -// run-pass -// check-run-results -// ignore-emscripten +//@ run-pass +//@ check-run-results +//@ ignore-emscripten // Emscripten doesn't flush its own stdout buffers on exit, which would fail // this test. So this test is disabled on this platform. |
