1
0
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:
Delyan Angelov
2021-07-20 14:04:35 +03:00
parent 850a715c79
commit 5098334e65
12 changed files with 25 additions and 14 deletions

View File

@ -49,7 +49,7 @@ fn test_can_compile_and_use_library_with_skip_unused() {
fn v_compile(vopts string) os.Result {
cmd := '"$vexe" -showcc $vopts'
// dump(cmd)
res := os.execute_or_panic(cmd)
res := os.execute_or_exit(cmd)
// dump(res)
assert res.exit_code == 0
return res