From dbb0db4cc9ba99e975d7a61e99756c38d6f68a79 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 15 Jun 2015 19:21:22 +0000 Subject: test/helper: warn atomically We want to avoid race conditions if tests become multithreaded from Kernel#warn internally issuing a second write. --- test/helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/helper.rb b/test/helper.rb index 7b8c1aa..c86f3e3 100644 --- a/test/helper.rb +++ b/test/helper.rb @@ -140,7 +140,7 @@ class DieIfUsed end def close - warn "INFO #$$ closed DieIfUsed #{@@n += 1}" + warn "INFO #$$ closed DieIfUsed #{@@n += 1}\n" end end -- cgit v1.2.3-24-ge0c7