summaryrefslogtreecommitdiff
path: root/test/ruby/test_regexp.rb
diff options
context:
space:
mode:
authorTakashi Kokubun <[email protected]>2024-02-22 14:34:19 -0800
committerGitHub <[email protected]>2024-02-22 14:34:19 -0800
commitbccf4b30fa251dd4394d4ad477bad53c624d2aba (patch)
tree92f5e9f31a2165a3b617c7ed047405acc52ffaa3 /test/ruby/test_regexp.rb
parent2b0bc447e5b4057253f7cb8480fc6338f6528858 (diff)
Skip under_gc_compact_stress on s390x (#10073)
Diffstat (limited to 'test/ruby/test_regexp.rb')
-rw-r--r--test/ruby/test_regexp.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/ruby/test_regexp.rb b/test/ruby/test_regexp.rb
index 9eab99d677..c996b1785a 100644
--- a/test/ruby/test_regexp.rb
+++ b/test/ruby/test_regexp.rb
@@ -73,6 +73,7 @@ class TestRegexp < Test::Unit::TestCase
end
def test_to_s_under_gc_compact_stress
+ omit "compaction doesn't work well on s390x" if RUBY_PLATFORM =~ /s390x/ # https://github.com/ruby/ruby/pull/5077
EnvUtil.under_gc_compact_stress do
str = "abcd\u3042"
[:UTF_16BE, :UTF_16LE, :UTF_32BE, :UTF_32LE].each do |es|
@@ -470,6 +471,7 @@ class TestRegexp < Test::Unit::TestCase
end
def test_inspect_under_gc_compact_stress
+ omit "compaction doesn't work well on s390x" if RUBY_PLATFORM =~ /s390x/ # https://github.com/ruby/ruby/pull/5077
EnvUtil.under_gc_compact_stress do
assert_equal('/(?-mix:\\/)|/', Regexp.union(/\//, "").inspect)
end
@@ -891,6 +893,7 @@ class TestRegexp < Test::Unit::TestCase
end
def test_match_under_gc_compact_stress
+ omit "compaction doesn't work well on s390x" if RUBY_PLATFORM =~ /s390x/ # https://github.com/ruby/ruby/pull/5077
EnvUtil.under_gc_compact_stress do
m = /(?<foo>.)(?<n>[^aeiou])?(?<bar>.+)/.match("hoge\u3042")
assert_equal("h", m.match(:foo))