summaryrefslogtreecommitdiff
path: root/test/ruby/suicide.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/suicide.rb')
-rw-r--r--test/ruby/suicide.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/suicide.rb b/test/ruby/suicide.rb
new file mode 100644
index 0000000..2687ed0
--- /dev/null
+++ b/test/ruby/suicide.rb
@@ -0,0 +1,2 @@
+STDERR.reopen(STDOUT)
+at_exit{Process.kill(:INT, $$)}