about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2018-07-03 11:02:44 +0000
committerEric Wong <e@80x24.org>2018-07-03 11:02:55 +0000
commita12ca20f75c1f747a1c48b179f177a7ec03ea031 (patch)
treec2f285836457aa3611cd625420c47cfee92eda34
parentc2a0658fc26467a3950bb2848948932ae4f33f61 (diff)
downloadyahns-a12ca20f75c1f747a1c48b179f177a7ec03ea031.tar.gz
A test failure was causing SIGQUIT to be delivered before
the forked process had a chance to hit trap(:QUIT).
-rw-r--r--test/server_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/server_helper.rb b/test/server_helper.rb
index 91d7208..b794ee6 100644
--- a/test/server_helper.rb
+++ b/test/server_helper.rb
@@ -31,7 +31,7 @@ module ServerHelper
 
   def quit_wait(pid)
     pid or return
-    err = $!
+    err = $! and warn "Terminating on #{err.inspect} (#{err.class})"
     Process.kill(:QUIT, pid)
     _, status = Timeout.timeout(10) { Process.waitpid2(pid) }
     assert status.success?, status.inspect