Skip to content

Commit e6ed0ca

Browse files
committed
Improve non-ice-error-on-worker-io-fail.rs test
- Remove unrelated code - Use a local dir path
1 parent 39fa192 commit e6ed0ca

File tree

2 files changed

+5
-13
lines changed

2 files changed

+5
-13
lines changed

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

+4-12
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// up clobbering `/dev/null`. Instead we'll use a non-existent path, which
1010
// also used to ICE, but even root can't magically write there.
1111

12-
// compile-flags: -o /does-not-exist/output
12+
// compile-flags: -o ./does-not-exist/output
1313

1414
// The error-pattern check occurs *before* normalization, and the error patterns
1515
// are wildly different between build environments. So this is a cop-out (and we
@@ -19,22 +19,14 @@
1919
// error-pattern: error
2020

2121
// On Mac OS X, we get an error like the below
22-
// normalize-stderr-test "failed to write bytecode to /does-not-exist/output.non_ice_error_on_worker_io_fail.*" -> "io error modifying /does-not-exist/"
22+
// normalize-stderr-test "failed to write bytecode to ./does-not-exist/output.non_ice_error_on_worker_io_fail.*" -> "io error modifying ./does-not-exist/"
2323

2424
// On Linux, we get an error like the below
25-
// normalize-stderr-test "couldn't create a temp dir.*" -> "io error modifying /does-not-exist/"
25+
// normalize-stderr-test "couldn't create a temp dir.*" -> "io error modifying ./does-not-exist/"
2626

2727
// ignore-windows - this is a unix-specific test
2828
// ignore-emscripten - the file-system issues do not replicate here
2929
// ignore-wasm - the file-system issues do not replicate here
3030
// ignore-arm - the file-system issues do not replicate here, at least on armhf-gnu
3131

32-
#![crate_type="lib"]
33-
34-
#![cfg_attr(not(feature = "std"), no_std)]
35-
pub mod task {
36-
pub mod __internal {
37-
use crate::task::Waker;
38-
}
39-
pub use core::task::Waker;
40-
}
32+
#![crate_type = "lib"]
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
warning: ignoring --out-dir flag due to -o flag
22

3-
error: io error modifying /does-not-exist/
3+
error: io error modifying ./does-not-exist/
44

55
error: aborting due to previous error; 1 warning emitted
66

0 commit comments

Comments
 (0)