tests: make error handling the same as the main function (#15825)

This commit is contained in:
yuyi 2022-09-22 00:45:43 +08:00 committed by GitHub
parent 391ac12fe2
commit 41dbd12bc4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
69 changed files with 193 additions and 192 deletions

View file

@ -1,6 +1,6 @@
module os
fn test_find_abs_path_of_executable() ? {
fn test_find_abs_path_of_executable() {
tfolder := join_path(temp_dir(), 'v', 'tests', 'filepath_test')
rmdir_all(tfolder) or {}
assert !is_dir(tfolder)