Index: runtime/bin/process_test.cc |
diff --git a/runtime/bin/process_test.cc b/runtime/bin/process_test.cc |
index 578189445b2756477ede989335e68213a8fe8bb8..efb88be6528448c8f4547ee0b4d8f6e8377b9d30 100644 |
--- a/runtime/bin/process_test.cc |
+++ b/runtime/bin/process_test.cc |
@@ -31,6 +31,10 @@ int main(int argc, char* argv[]) { |
int exit_code = atoi(argv[3]); |
int crash = atoi(argv[4]); |
+ if (crash == 1) { |
+ abort(); |
+ } |
+ |
const int kLineSize = 128; |
char line[kLineSize]; |
@@ -51,10 +55,5 @@ int main(int argc, char* argv[]) { |
echo_counter++; |
} |
- if (crash == 1) { |
- int* segfault = NULL; |
- *segfault = 1; |
- } |
- |
return exit_code; |
} |