Skip to content

Commit 73dd8ac

Browse files
committed
Update Linux-specific tests
1 parent 055e555 commit 73dd8ac

8 files changed

+16
-6
lines changed

Diff for: tests/ui/amdgpu-require-explicit-cpu.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
//@ compile-flags: --crate-type=cdylib --target=amdgcn-amd-amdhsa
44
//@ needs-llvm-components: amdgpu
55
//@ needs-rust-lld
6-
//@[nocpu] error-pattern: target requires explicitly specifying a cpu
76
//@[nocpu] build-fail
87
//@[cpu] compile-flags: -Ctarget-cpu=gfx900
98
//@[cpu] build-pass
@@ -15,3 +14,5 @@
1514
trait Sized {}
1615

1716
pub fn foo() {}
17+
18+
//[nocpu]~? ERROR target requires explicitly specifying a cpu with `-C target-cpu`

Diff for: tests/ui/instrument-xray/flags-always-never-1.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
//
33
//@ needs-xray
44
//@ compile-flags: -Z instrument-xray=always,never
5-
//@ error-pattern: incorrect value `always,never` for unstable option `instrument-xray`
65

76
fn main() {}
7+
8+
//~? ERROR incorrect value `always,never` for unstable option `instrument-xray`

Diff for: tests/ui/instrument-xray/flags-dupe-always.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
//
33
//@ needs-xray
44
//@ compile-flags: -Z instrument-xray=always,always
5-
//@ error-pattern: incorrect value `always,always` for unstable option `instrument-xray`
65

76
fn main() {}
7+
8+
//~? ERROR incorrect value `always,always` for unstable option `instrument-xray`

Diff for: tests/ui/instrument-xray/flags-dupe-ignore-loops.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
//
33
//@ needs-xray
44
//@ compile-flags: -Z instrument-xray=ignore-loops,ignore-loops
5-
//@ error-pattern: incorrect value `ignore-loops,ignore-loops` for unstable option `instrument-xray`
65

76
fn main() {}
7+
8+
//~? ERROR incorrect value `ignore-loops,ignore-loops` for unstable option `instrument-xray`

Diff for: tests/ui/io-checks/non-ice-error-on-worker-io-fail.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
// rely on the checking of the normalized stderr output as our actual
1717
// "verification" of the diagnostic).
1818

19-
//@ error-pattern: error
20-
2119
// On Mac OS X, we get an error like the below
2220
//@ normalize-stderr: "failed to write bytecode to ./does-not-exist/output.non_ice_error_on_worker_io_fail.*" -> "io error modifying ./does-not-exist/"
2321

@@ -29,3 +27,5 @@
2927
//@ ignore-arm - the file-system issues do not replicate here, at least on armhf-gnu
3028

3129
#![crate_type = "lib"]
30+
31+
//~? ERROR /does-not-exist/

Diff for: tests/ui/linkage-attr/raw-dylib/elf/multiple-libraries.rs

+2
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,5 @@ fn main() {
3535
meooooooooooooooow();
3636
woooooooooooooooooof();
3737
}
38+
39+
//[without]~? ERROR linking with `

Diff for: tests/ui/linkage-attr/raw-dylib/elf/single-symbol.rs

+2
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,5 @@ unsafe extern "C" {
2626
fn main() {
2727
meooooooooooooooow();
2828
}
29+
30+
//[without]~? ERROR linking with `

Diff for: tests/ui/linkage-attr/raw-dylib/elf/verbatim.rs

+2
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,5 @@ unsafe extern "C" {
2727
fn main() {
2828
meooooooooooooooow();
2929
}
30+
31+
//[without]~? ERROR linking with `

0 commit comments

Comments
 (0)