aboutsummaryrefslogtreecommitdiffstats
path: root/test/-ext-/iseq_load
diff options
context:
space:
mode:
Diffstat (limited to 'test/-ext-/iseq_load')
-rw-r--r--test/-ext-/iseq_load/test_iseq_load.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/-ext-/iseq_load/test_iseq_load.rb b/test/-ext-/iseq_load/test_iseq_load.rb
index 97ba3fec66..7a8120ad1c 100644
--- a/test/-ext-/iseq_load/test_iseq_load.rb
+++ b/test/-ext-/iseq_load/test_iseq_load.rb
@@ -16,6 +16,13 @@ class TestIseqLoad < Test::Unit::TestCase
end;
end
+ def test_stressful_roundtrip
+ stress, GC.stress = GC.stress, true
+ test_bug8543
+ ensure
+ GC.stress = stress
+ end
+
def test_case_when
assert_iseq_roundtrip "#{<<~"begin;"}\n#{<<~'end;'}"
begin;