aboutsummaryrefslogtreecommitdiff
path: root/src/common/linux
diff options
context:
space:
mode:
authorted.mielczarek <ted.mielczarek@4c0a9323-5329-0410-9bdc-e9ce6186880e>2012-04-11 20:39:35 +0000
committerted.mielczarek <ted.mielczarek@4c0a9323-5329-0410-9bdc-e9ce6186880e>2012-04-11 20:39:35 +0000
commitde8292b1d429b935bf23a95804a04245bfa2c9b8 (patch)
treefc20a3aff619ed36d541f9016b0b799a4fb8f0ac /src/common/linux
parentvectors are cleared with "clear()", not with "empty() (diff)
downloadbreakpad-de8292b1d429b935bf23a95804a04245bfa2c9b8.tar.xz
Fix crash_generator error message
Patch by Chris Dearman <chris@mips.com> R=ted at http://breakpad.appspot.com/374001/ git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@950 4c0a9323-5329-0410-9bdc-e9ce6186880e
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;
}