mirror of
https://github.com/dart-lang/sdk
synced 2024-10-03 14:32:00 +00:00
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
This commit is contained in:
parent
a4d55c1bc6
commit
2c0463fbd6
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue