Skip to content

Commit

Permalink
Reset DYLD_FALLBACK_LIBRARY_PATH during run_link_system_path_macos test
Browse files Browse the repository at this point in the history
  • Loading branch information
glandium committed Apr 16, 2019
1 parent 03b2087 commit 165be97
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/testsuite/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1223,6 +1223,9 @@ fn run_link_system_path_macos() {
)
.unwrap();
p.root().rm_rf();
p2.cargo("run").run();
p2.cargo("test").run();
const VAR: &str = "DYLD_FALLBACK_LIBRARY_PATH";
// Reset DYLD_FALLBACK_LIBRARY_PATH so that we don't inherit anything that
// was set by the cargo that invoked the test.
p2.cargo("run").env_remove(VAR).run();
p2.cargo("test").env_remove(VAR).run();
}

0 comments on commit 165be97

Please sign in to comment.