Skip to content

Commit 7340b76

Browse files
authored
Rollup merge of rust-lang#35885 - durka:gh35753, r=nagisa
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
2 parents bf298cc + b40754f commit 7340b76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/run-pass/fds-are-cloexec.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ fn main() {
3434
}
3535

3636
fn parent() {
37-
let file = File::open("Makefile").unwrap();
37+
let file = File::open("src/test/run-pass/fds-are-cloexec.rs").unwrap();
3838
let tcp1 = TcpListener::bind("127.0.0.1:0").unwrap();
3939
let tcp2 = tcp1.try_clone().unwrap();
4040
let addr = tcp1.local_addr().unwrap();

0 commit comments

Comments
 (0)