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

Unified Diff: tests/standalone/io/signal_test_script.dart

Issue 196133003: Update mips test status files for new mips build slaves. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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
Index: tests/standalone/io/signal_test_script.dart
diff --git a/tests/standalone/io/signal_test_script.dart b/tests/standalone/io/signal_test_script.dart
index 7f43c5a2bae9616b3db0ffc6a6eb9117d5407a1b..0b7390ed42172b66b15f42a28ab8e7f83e350cd5 100644
--- a/tests/standalone/io/signal_test_script.dart
+++ b/tests/standalone/io/signal_test_script.dart
@@ -3,9 +3,11 @@
// BSD-style license that can be found in the LICENSE file.
import "dart:io";
+import "dart:async";
void main(args) {
var signal;
+ var timeout = new Timer(new Duration(seconds: 25), () => exit(1));
switch (args[0]) {
case 'SIGHUP': signal = ProcessSignal.SIGHUP; break;
case 'SIGINT': signal = ProcessSignal.SIGINT; break;
@@ -18,7 +20,9 @@ void main(args) {
if (signal != s) exit(1);
if (signal.toString() != args[0]) exit(1);
print('got signal');
+ timeout.cancel();
});
print("ready");
+ // This process should die if it never receives a signal.
}

Powered by Google App Engine
This is Rietveld 408576698