mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
os: prevent os.exists_in_system_path() from panicing
This commit is contained in:
@@ -543,3 +543,12 @@ fn test_posix_set_bit() {
|
||||
rm(fpath) or {}
|
||||
}
|
||||
}
|
||||
|
||||
fn test_exists_in_system_path() {
|
||||
assert os.exists_in_system_path('') == false
|
||||
$if windows {
|
||||
assert os.exists_in_system_path('cmd') == true
|
||||
return
|
||||
}
|
||||
assert os.exists_in_system_path('ls') == true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user