1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

ci: fix failing test test_realpath_existing for os.real_path on macos

This commit is contained in:
Delyan Angelov 2021-06-15 14:13:12 +03:00
parent 0c922f5570
commit 48b3ab831b
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -308,7 +308,9 @@ fn test_realpath_existing() {
os.rm(existing_file) or {}
os.write_file(existing_file, 'abc') or {}
assert os.exists(existing_file)
assert os.real_path(existing_file) == existing_file
rpath := os.real_path(existing_file)
assert os.is_abs_path(rpath)
assert rpath.ends_with(existing_file_name)
os.rm(existing_file) or {}
}