diff options
Diffstat (limited to 'test/lib')
-rw-r--r-- | test/lib/leakchecker.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/lib/leakchecker.rb b/test/lib/leakchecker.rb index dbe6f5cdbb..af9200bf77 100644 --- a/test/lib/leakchecker.rb +++ b/test/lib/leakchecker.rb @@ -6,6 +6,7 @@ class LeakChecker @thread_info = find_threads @env_info = find_env @encoding_info = find_encodings + @old_verbose = $VERBOSE end def check(test_name) @@ -16,6 +17,7 @@ class LeakChecker check_env(test_name), check_encodings(test_name), check_safe(test_name), + check_verbose(test_name), ] GC.start if leaks.any? end @@ -24,6 +26,10 @@ class LeakChecker puts "#{test_name}: $SAFE == #{$SAFE}" unless $SAFE == 0 end + def check_verbose test_name + puts "#{test_name}: $VERBOSE == #{$VERBOSE}" unless @old_verbose == $VERBOSE + end + def find_fds if IO.respond_to?(:console) and (m = IO.method(:console)).arity.nonzero? m[:close] |