mirror of
https://github.com/vlang/v.git
synced 2025-09-16 07:52:32 +03:00
os: make chdir() return error
This commit is contained in:
parent
e85311c2ba
commit
858ba25d55
12 changed files with 25 additions and 26 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue