diff options
| author | tiif <pekyuan@gmail.com> | 2025-05-18 13:42:07 +0200 |
|---|---|---|
| committer | tiif <pekyuan@gmail.com> | 2025-05-18 13:42:07 +0200 |
| commit | f9a75a00b4df355f439cc91b0a660ac508ac9d46 (patch) | |
| tree | 9b3c7d8e51715e9f1847e27f20b337e3b4dc0c83 | |
| parent | 4858c3fe7d1a9a7484db4998199f6deb1e05185a (diff) | |
| download | rust-f9a75a00b4df355f439cc91b0a660ac508ac9d46.tar.gz rust-f9a75a00b4df355f439cc91b0a660ac508ac9d46.zip | |
Add more comment to libc-fs-with-isolation test
| -rw-r--r-- | src/tools/miri/tests/pass-dep/libc/libc-fs-with-isolation.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tools/miri/tests/pass-dep/libc/libc-fs-with-isolation.rs b/src/tools/miri/tests/pass-dep/libc/libc-fs-with-isolation.rs index cffcf4a867f..06a8cc7f487 100644 --- a/src/tools/miri/tests/pass-dep/libc/libc-fs-with-isolation.rs +++ b/src/tools/miri/tests/pass-dep/libc/libc-fs-with-isolation.rs @@ -11,6 +11,10 @@ fn main() { assert!(libc::fcntl(1, libc::F_DUPFD, 0) >= 0); } + // Although `readlink` and `stat` require disable-isolation mode + // to properly run, they are tested with isolation mode on to check the error emitted + // with `-Zmiri-isolation-error=warn-nobacktrace`. + // test `readlink` let mut buf = vec![0; "foo_link.txt".len() + 1]; unsafe { |
