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:

committed by
Alexander Medvednikov

parent
9defbf989d
commit
60d4f47f7a
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user