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

improve crash diagnosis/detection when a test segfaults

This commit is contained in:
Delyan Angelov
2019-10-08 02:34:55 +03:00
committed by Alexander Medvednikov
parent 9defbf989d
commit 60d4f47f7a
2 changed files with 70 additions and 8 deletions

View File

@@ -542,9 +542,8 @@ fn (v V) run_compiled_executable_and_exit() {
ret := os.system(cmd)
// TODO: make the runner wrapping as transparent as possible
// (i.e. use execve when implemented). For now though, the runner
// just returns the same exit code as the child process
// (see man system, man 2 waitpid: C macro WEXITSTATUS section)
exit( ret >> 8 )
// just returns the same exit code as the child process.
exit( ret )
}
exit(0)
}