Skip to content

Commit a06828b

Browse files
matches/exec: change tests and check_path implementation
renamed: check_path_integrity -> check_path_entries_absolute The function check_path_entries_absolute now only looks for paths that are not absolute or that are empty. In addition, if possible, if there is any error related to the PATH, show the exact segment where the error occurred. tests: The tests that used to reside in exec_unit_tests.rs are now in exec.rs, directly handling a fake of the PATH for testing, eliminating the need to mark tests with #[serial] or use unsafe { env::set_var(...) }. Co-authored-by: Tavian <tavianator@tavianator.com>
1 parent af3aee9 commit a06828b

File tree

2 files changed

+449
-364
lines changed

2 files changed

+449
-364
lines changed

0 commit comments

Comments
 (0)