From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id A440F1F46C for ; Sat, 14 Dec 2019 17:58:14 +0000 (UTC) From: Eric Wong To: kgio-public@bogomips.org Subject: [PATCH 2/2] test_syssend: avoid warning on cleanup Date: Sat, 14 Dec 2019 17:58:14 +0000 Message-Id: <20191214175814.8550-3-e@80x24.org> In-Reply-To: <20191214175814.8550-1-e@80x24.org> References: <20191214175814.8550-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: We don't want to clutter up logs with warnings for cross-thread IO#close --- test/test_syssend.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/test_syssend.rb b/test/test_syssend.rb index 7d2511a..a722462 100644 --- a/test/test_syssend.rb +++ b/test/test_syssend.rb @@ -37,6 +37,8 @@ class TestKgioSyssend < Test::Unit::TestCase # blocking th = Thread.new { loop { acc.kgio_syssend("ZZZZ", 0) } } assert_nil th.join(0.1) + th.kill + assert th.join(10), 'thread should be killed' ensure [ srv, acc, client ].each { |io| io.close if io } end