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

os: make chdir() return error

This commit is contained in:
Alexander Medvednikov
2021-08-28 09:35:39 +03:00
parent e85311c2ba
commit 858ba25d55
12 changed files with 25 additions and 26 deletions

View File

@ -11,7 +11,7 @@ const (
)
fn test_szip_create_temp_files() ? {
os.chdir(os.temp_dir())
os.chdir(os.temp_dir()) or {}
os.rmdir_all(test_path) or {}
os.mkdir(test_path) ?
os.write_file(fpath1, 'file one') ?
@ -45,7 +45,7 @@ fn test_reading_zipping_files() ? {
file_name_list << 'file_${i:02}.txt'
}
os.chdir(os.temp_dir())
os.chdir(os.temp_dir()) or {}
os.rmdir_all(test_path) or {}
os.mkdir(test_path) ?
for c, f_name in file_name_list {