mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
os: add execute_or_exit(cmd), use it consistently instead of execute_or_panic(cmd)
This commit is contained in:
@ -15,7 +15,7 @@ fn test_syscallwrappers() {
|
||||
os.chdir(dot_checks)
|
||||
checks_v := 'checks.v'
|
||||
assert os.exists(checks_v)
|
||||
rc := os.execute_or_panic('v run $checks_v')
|
||||
rc := os.execute_or_exit('v run $checks_v')
|
||||
assert rc.exit_code == 0
|
||||
assert !rc.output.contains('V panic: An assertion failed.')
|
||||
assert !rc.output.contains('failed')
|
||||
|
Reference in New Issue
Block a user