-
-
Notifications
You must be signed in to change notification settings - Fork 302
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check
env::temp_dir()
in both tests that set temp vars
Before, `exe_info_never_from_local_scope_even_if_temp_is_here` had checked it, but the newer test `exe_info_tolerates_broken_tmp` had not. Now they both check that it returns the value that was set as the `TMPDIR`, `TMP`, and `TEMP` environment variables. This also extracts duplicate code (while avoiding making more of it by adding duplicating that check) and adjusts spacing for readability.
- Loading branch information
1 parent
703f882
commit 79af259
Showing
1 changed file
with
24 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters