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
This commit is contained in:
commit
e07dd59eae
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user