From 50763e8a3f5fac33e456c459e187f6a9b1c91fe3 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 19 Oct 2013 08:42:56 +0000 Subject: test_epoll: switch test_dup_and_fork to exit! 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 --- test/test_epoll.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-24-ge0c7