From 2c0463fbd64b3de8263203e67cb5e5c71d9e9c89 Mon Sep 17 00:00:00 2001 From: "whesse@google.com" Date: Mon, 18 Jun 2012 13:56:21 +0000 Subject: [PATCH] Test infrastructure: Change the intentionally crashing process_test.cc, to try and avoid timeout of this process. BUG=1947 TEST=standalone/io/test_runner_test Review URL: https://chromiumcodereview.appspot.com//10532190 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8795 260f80e4-7a28-3924-810f-c04153c831b5 --- runtime/bin/process_test.cc | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/runtime/bin/process_test.cc b/runtime/bin/process_test.cc index 578189445b2..efb88be6528 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; }