about summary refs log tree commit homepage
path: root/test/helper.rb
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2013-10-19 23:57:22 +0000
committerEric Wong <normalperson@yhbt.net>2013-10-20 00:09:04 +0000
commit04b664092b02e021a6b43f1869fe0ed2efc12dd8 (patch)
treec4f753ca1819db8ec608ea1a8e0f54e7873a81a5 /test/helper.rb
parenta108236d619c950add6d5a8331450180a506c6ea (diff)
downloadyahns-04b664092b02e021a6b43f1869fe0ed2efc12dd8.tar.gz
openssl warns about an unused variable
Diffstat (limited to 'test/helper.rb')
-rw-r--r--test/helper.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/helper.rb b/test/helper.rb
index 896377f..626a046 100644
--- a/test/helper.rb
+++ b/test/helper.rb
@@ -1,6 +1,7 @@
 # Copyright (C) 2013, Eric Wong <normalperson@yhbt.net> and all contributors
 # License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
 $stdout.sync = $stderr.sync = Thread.abort_on_exception = true
+$-w = true if RUBY_VERSION.to_f >= 2.0
 require 'thread'
 
 # Global Test Lock, to protect: