Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(316)

Unified Diff: runtime/bin/process_test.cc

Issue 10532190: Test infrastructure: Change the intentionally crashing process_test.cc, to try and avoid timeout of… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698