Skip to content

Commit 165be97

Browse files
committed
Reset DYLD_FALLBACK_LIBRARY_PATH during run_link_system_path_macos test
1 parent 03b2087 commit 165be97

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/testsuite/run.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1223,6 +1223,9 @@ fn run_link_system_path_macos() {
12231223
)
12241224
.unwrap();
12251225
p.root().rm_rf();
1226-
p2.cargo("run").run();
1227-
p2.cargo("test").run();
1226+
const VAR: &str = "DYLD_FALLBACK_LIBRARY_PATH";
1227+
// Reset DYLD_FALLBACK_LIBRARY_PATH so that we don't inherit anything that
1228+
// was set by the cargo that invoked the test.
1229+
p2.cargo("run").env_remove(VAR).run();
1230+
p2.cargo("test").env_remove(VAR).run();
12281231
}

0 commit comments

Comments
 (0)