about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2013-10-19 08:42:56 +0000
committerEric Wong <e@80x24.org>2013-10-19 08:42:56 +0000
commit50763e8a3f5fac33e456c459e187f6a9b1c91fe3 (patch)
treec564e184f1cb5fd265c77584542090120fc161ab
parent18f96b1a5386dec0dc9b5f14c64c7de8b4230ca2 (diff)
downloadsleepy_penguin-50763e8a3f5fac33e456c459e187f6a9b1c91fe3.tar.gz
exit! is preferable for forked processes in tests since
exit may fire at_exit handlers for tests depending on
which test suite or version of Ruby is loaded.

This was problematic in minitest 5.0.8 but not 4.3.2
-rw-r--r--test/test_epoll.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_epoll.rb b/test/test_epoll.rb
index ed67988..88d0b6c 100644
--- a/test/test_epoll.rb
+++ b/test/test_epoll.rb
@@ -52,7 +52,7 @@ class TestEpoll < Testcase
     @ep.close
     assert ! epdup.closed?
     pid = fork do
-      exit(!epdup.closed? && @ep.closed?)
+      exit!(!epdup.closed? && @ep.closed?)
     end
     _, status = Process.waitpid2(pid)
     assert status.success?, status.inspect