Skip to content

Commit

Permalink
Auto merge of #35885 - durka:gh35753, r=arielb1
Browse files Browse the repository at this point in the history
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
  • Loading branch information
bors committed Aug 25, 2016
2 parents 71bdeea + b2cd3e5 commit e07dd59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/run-pass/fds-are-cloexec.rs
Expand Up @@ -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();
Expand Down

0 comments on commit e07dd59

Please sign in to comment.