aboutsummaryrefslogtreecommitdiff
path: root/src/common/linux
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/linux')
-rw-r--r--src/common/linux/tests/crash_generator.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/common/linux/tests/crash_generator.cc b/src/common/linux/tests/crash_generator.cc
index dff2bca2..59aced27 100644
--- a/src/common/linux/tests/crash_generator.cc
+++ b/src/common/linux/tests/crash_generator.cc
@@ -195,7 +195,10 @@ bool CrashGenerator::CreateChildCrash(
return false;
}
if (!WIFSIGNALED(status) || WTERMSIG(status) != crash_signal) {
- perror("CrashGenerator: Child process not killed by the expected signal");
+ fprintf(stderr, "CrashGenerator: Child process not killed by the expected signal\n"
+ " exit status=0x%x signaled=%s sig=%d expected=%d\n",
+ status, WIFSIGNALED(status) ? "true" : "false",
+ WTERMSIG(status), crash_signal);
return false;
}