summaryrefslogtreecommitdiff
path: root/tests/alarm_die.py
diff options
context:
space:
mode:
authorThomas Kluyver <takowl@gmail.com>2013-10-21 12:08:36 -0700
committerThomas Kluyver <takowl@gmail.com>2013-10-21 12:08:36 -0700
commitc71562035250942080601a2254c84a12bccb0b46 (patch)
tree1f4a582d8401c9bebd509790429310461e8cb811 /tests/alarm_die.py
parentfe61e78be0a7d442f08430ba6e9d3e644f6cb666 (diff)
downloadpexpect-git-c71562035250942080601a2254c84a12bccb0b46.tar.gz
Add test for wait() on process terminated by signal
Diffstat (limited to 'tests/alarm_die.py')
-rw-r--r--tests/alarm_die.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/alarm_die.py b/tests/alarm_die.py
new file mode 100644
index 0000000..a1519ab
--- /dev/null
+++ b/tests/alarm_die.py
@@ -0,0 +1,5 @@
+import signal, time
+
+signal.alarm(1) # Schedule SIGALRM in 1s
+
+time.sleep(6) \ No newline at end of file