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

Unified Diff: third_party/pexpect/tests/alarm_die.py

Issue 1398903002: Add third_party/pexpect (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@end-to-end-test
Patch Set: Created 5 years, 2 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 | « third_party/pexpect/tests/adhoc.py ('k') | third_party/pexpect/tests/bambi.vt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/pexpect/tests/alarm_die.py
diff --git a/third_party/pexpect/tests/alarm_die.py b/third_party/pexpect/tests/alarm_die.py
new file mode 100644
index 0000000000000000000000000000000000000000..a1519abac1d0f8fdba3b16a8f8da2da7cefc9d88
--- /dev/null
+++ b/third_party/pexpect/tests/alarm_die.py
@@ -0,0 +1,5 @@
+import signal, time
+
+signal.alarm(1) # Schedule SIGALRM in 1s
+
+time.sleep(6)
« no previous file with comments | « third_party/pexpect/tests/adhoc.py ('k') | third_party/pexpect/tests/bambi.vt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698