From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-3.9 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.1 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id C79F01F660 for ; Tue, 3 Jul 2018 11:02:46 +0000 (UTC) From: Eric Wong To: yahns-public@yhbt.net Subject: [PATCH 1/2] test/server_helper: describe reason for termination Date: Tue, 3 Jul 2018 11:02:44 +0000 Message-Id: <20180703110245.24221-2-e@80x24.org> In-Reply-To: <20180703110245.24221-1-e@80x24.org> References: <20180703110245.24221-1-e@80x24.org> List-Id: A test failure was causing SIGQUIT to be delivered before the forked process had a chance to hit trap(:QUIT). --- test/server_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@ def poke_until_dead(pid) 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 -- EW