From 5cba5920d5e76c56062c6b28d651f85dd6fd4d94 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Sat, 20 Aug 2022 10:06:58 +0300 Subject: [PATCH] os: make find_abs_path_of_executable_test.v more robust (fix #15459) --- vlib/os/find_abs_path_of_executable_test.v | 1 + 1 file changed, 1 insertion(+) diff --git a/vlib/os/find_abs_path_of_executable_test.v b/vlib/os/find_abs_path_of_executable_test.v index 59a75e157..7f4595b2c 100644 --- a/vlib/os/find_abs_path_of_executable_test.v +++ b/vlib/os/find_abs_path_of_executable_test.v @@ -39,6 +39,7 @@ fn test_find_abs_path_of_executable() ? { dump(fpath) // setenv('PATH', original_path, true) + chdir(home_dir())? // change to a *completely* different folder, to avoid the original PATH containing `.` if x := find_abs_path_of_executable('myclang') { eprintln('> find_abs_path_of_executable should have failed, but instead it found: $x') assert false -- 2.30.2