aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_time.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_time.rb')
-rw-r--r--test/ruby/test_time.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/test_time.rb b/test/ruby/test_time.rb
index faeff8ded3..d89a093303 100644
--- a/test/ruby/test_time.rb
+++ b/test/ruby/test_time.rb
@@ -1104,6 +1104,8 @@ class TestTime < Test::Unit::TestCase
end
def test_strftime_no_hidden_garbage
+ skip unless Thread.list.size == 1
+
fmt = %w(Y m d).map { |x| "%#{x}" }.join('-') # defeats optimization
t = Time.at(0).getutc
ObjectSpace.count_objects(res = {}) # creates strings on first call