diff options
| author | bors <bors@rust-lang.org> | 2016-08-25 15:44:22 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-08-25 15:44:22 -0700 |
| commit | e07dd59eaeb7be95afd2fb3dc131108ae750c91c (patch) | |
| tree | 163a8bf7ba5e30cc64ea71ab7397168e62be8342 | |
| parent | 71bdeea561355ba5adbc9a1f44f4f866a75a15c4 (diff) | |
| parent | b2cd3e59b88e6d69e92b28f7cfb8502f62bba94d (diff) | |
| download | rust-e07dd59eaeb7be95afd2fb3dc131108ae750c91c.tar.gz rust-e07dd59eaeb7be95afd2fb3dc131108ae750c91c.zip | |
Auto merge of #35885 - durka:gh35753, r=arielb1
modify fds-are-cloexec test to open a file that exists Fixes #35753. Is it a valid assumption that the current directory is always the root of the repo when the tests are run? r? @nagisa
| -rw-r--r-- | src/test/run-pass/fds-are-cloexec.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/run-pass/fds-are-cloexec.rs b/src/test/run-pass/fds-are-cloexec.rs index c2916ccd75b..7d49bd25309 100644 --- a/src/test/run-pass/fds-are-cloexec.rs +++ b/src/test/run-pass/fds-are-cloexec.rs @@ -34,7 +34,7 @@ fn main() { } fn parent() { - let file = File::open("Makefile").unwrap(); + let file = File::open(file!()).unwrap(); let tcp1 = TcpListener::bind("127.0.0.1:0").unwrap(); let tcp2 = tcp1.try_clone().unwrap(); let addr = tcp1.local_addr().unwrap(); |
