diff options
author | nealsid <nealsid@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2009-04-01 03:18:49 +0000 |
---|---|---|
committer | nealsid <nealsid@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2009-04-01 03:18:49 +0000 |
commit | 3ebdb1bd7ae38bf0fb205dfaa2f5fde3d67ea141 (patch) | |
tree | 0217ab93423465d8931af3a6fce65caccb5cc5ba /src/client/mac/handler/exception_handler_test.cc | |
parent | issue 305 - breakpad Linux handler doesn't build with compiler built from lat... (diff) | |
download | breakpad-3ebdb1bd7ae38bf0fb205dfaa2f5fde3d67ea141.tar.xz |
Open sourcing the Breakpad framework from Google.
A=many, many people
R=nealsid, jeremy moskovich(from Chromium project)
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@322 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src/client/mac/handler/exception_handler_test.cc')
-rw-r--r-- | src/client/mac/handler/exception_handler_test.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/client/mac/handler/exception_handler_test.cc b/src/client/mac/handler/exception_handler_test.cc index 59944377..d84f1997 100644 --- a/src/client/mac/handler/exception_handler_test.cc +++ b/src/client/mac/handler/exception_handler_test.cc @@ -55,6 +55,7 @@ static void *SleepyFunction(void *) { while (1) { sleep(10000); } + return NULL; } static void Crasher() { @@ -77,15 +78,14 @@ bool MDCallback(const char *dump_dir, const char *file_name, fprintf(stdout, "Minidump: %s\n", path.c_str()); // Indicate that we've handled the callback - return true; + exit(0); } int main(int argc, char * const argv[]) { char buffer[PATH_MAX]; - struct passwd *user = getpwuid(getuid()); // Home dir - snprintf(buffer, sizeof(buffer), "/Users/%s/Desktop/", user->pw_name); + snprintf(buffer, sizeof(buffer), "/tmp/"); string path(buffer); ExceptionHandler eh(path, NULL, MDCallback, NULL, true); @@ -97,8 +97,8 @@ int main(int argc, char * const argv[]) { perror("pthread_create"); } - // Dump a test - eh.WriteMinidump(); +// // Dump a test +// eh.WriteMinidump(); // Test the handler SoonToCrash(); |