Skip to content

Commit e07dd59

Browse files
authored
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
2 parents 71bdeea + b2cd3e5 commit e07dd59

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(file!()).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)