Skip to content

Commit

Permalink
Rollup merge of rust-lang#35885 - durka:gh35753, r=nagisa
Browse files Browse the repository at this point in the history
modify fds-are-cloexec test to open a file that exists

Fixes rust-lang#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
eddyb committed Aug 23, 2016
2 parents 55ffd92 + b40754f commit ddbc9c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/run-pass/fds-are-cloexec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ fn main() {
}

fn parent() {
let file = File::open("Makefile").unwrap();
let file = File::open("src/test/run-pass/fds-are-cloexec.rs").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 ddbc9c4

Please sign in to comment.