about summary refs log tree commit diff
path: root/tests/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.panic-abort.diff
diff options
context:
space:
mode:
authorEdd Barrett <vext01@gmail.com>2020-11-24 11:29:25 +0000
committerEdd Barrett <vext01@gmail.com>2020-12-03 13:49:24 +0000
commit87c1fdbcfb227c1b7b3b85c146a549a54fea63e8 (patch)
tree7f019557d78ccc692a612fe42afa48bc4075d521 /tests/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.panic-abort.diff
parentc7cff213e937c1bb301be807ce04fcf6092b9163 (diff)
downloadrust-87c1fdbcfb227c1b7b3b85c146a549a54fea63e8.tar.gz
rust-87c1fdbcfb227c1b7b3b85c146a549a54fea63e8.zip
Make the kernel_copy tests more robust/concurrent.
These tests write to the same filenames in /tmp and in some cases these
files don't get cleaned up properly. This caused issues for us when
different users run the tests on the same system, e.g.:

```
---- sys::unix::kernel_copy::tests::bench_file_to_file_copy stdout ----
thread 'sys::unix::kernel_copy::tests::bench_file_to_file_copy' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 13, kind: PermissionDenied, message: "Permission denied" }', library/std/src/sys/unix/kernel_copy/tests.rs:71:10
---- sys::unix::kernel_copy::tests::bench_file_to_socket_copy stdout ----
thread 'sys::unix::kernel_copy::tests::bench_file_to_socket_copy' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 13, kind: PermissionDenied, message: "Permission denied" }', library/std/src/sys/unix/kernel_copy/tests.rs:100:10
```

Use `std::sys_common::io__test::tmpdir()` to solve this.
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.panic-abort.diff')
0 files changed, 0 insertions, 0 deletions