diff options
author | Charles Oliver Nutter <headius@headius.com> | 2023-02-09 14:47:59 +0100 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-02-21 19:31:39 +0900 |
commit | 4c7726516c2b3b54cd0a78a214f005881fc68aba (patch) | |
tree | b5874ab4c588ce778ceeba62f1443bafa85d58a7 /test | |
parent | 76a4cdfb0253532a9bfe08d39c07f783ded71e20 (diff) |
[ruby/strscan] Mask out this test on JRuby/Windows
See https://github.com/jruby/jruby/issues/7644 for the root issue,
which will require fixes to JRuby's regular expression engine,
JOni.
https://github.com/ruby/strscan/commit/29a65abff2
Diffstat (limited to 'test')
-rw-r--r-- | test/strscan/test_stringscanner.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/strscan/test_stringscanner.rb b/test/strscan/test_stringscanner.rb index 35efdc3a1f..b7ffac816d 100644 --- a/test/strscan/test_stringscanner.rb +++ b/test/strscan/test_stringscanner.rb @@ -465,7 +465,10 @@ module StringScannerTests assert_equal 'foo', s['a'] assert_equal 'bar', s['b'] assert_raise(IndexError) { s['c'] } - assert_raise_with_message(IndexError, /\u{30c6 30b9 30c8}/) { s["\u{30c6 30b9 30c8}"] } + # see https://github.com/jruby/jruby/issues/7644 + unless RUBY_ENGINE == "jruby" && RbConfig::CONFIG['host_os'] =~ /mswin|win32|mingw/ + assert_raise_with_message(IndexError, /\u{30c6 30b9 30c8}/) { s["\u{30c6 30b9 30c8}"] } + end end def test_pre_match |