@@ -892,6 +892,7 @@ def test_parse_method_type
892892
893893 def test_prototype_no_parser
894894 omit_on_truffle_ruby! "`rbs prototype` requires `RubyVM::AbstractSyntaxTree`, which is not available on TruffleRuby"
895+ omit_on_jruby! "`rbs prototype` requires `RubyVM::AbstractSyntaxTree`, which is not available on JRuby"
895896
896897 Dir . mktmpdir do |dir |
897898 with_cli do |cli |
@@ -910,6 +911,7 @@ def cli.has_parser?
910911
911912 def test_prototype_batch
912913 omit_on_truffle_ruby! "`rbs prototype` requires `RubyVM::AbstractSyntaxTree`, which is not available on TruffleRuby"
914+ omit_on_jruby! "`rbs prototype` requires `RubyVM::AbstractSyntaxTree`, which is not available on JRuby"
913915
914916 Dir . mktmpdir do |dir |
915917 dir = Pathname ( dir )
@@ -973,6 +975,7 @@ module C
973975
974976 def test_prototype_batch_outer
975977 omit_on_truffle_ruby! "`rbs prototype` requires `RubyVM::AbstractSyntaxTree`, which is not available on TruffleRuby"
978+ omit_on_jruby! "`rbs prototype` requires `RubyVM::AbstractSyntaxTree`, which is not available on JRuby"
976979
977980 Dir . mktmpdir do |dir |
978981 dir = Pathname ( dir )
@@ -1001,6 +1004,7 @@ module A
10011004
10021005 def test_prototype_batch_syntax_error
10031006 omit_on_truffle_ruby! "`rbs prototype` requires `RubyVM::AbstractSyntaxTree`, which is not available on TruffleRuby"
1007+ omit_on_jruby! "`rbs prototype` requires `RubyVM::AbstractSyntaxTree`, which is not available on JRuby"
10041008
10051009 Dir . mktmpdir do |dir |
10061010 dir = Pathname ( dir )
@@ -1051,6 +1055,7 @@ def test_prototype__runtime__todo
10511055
10521056 def test_test
10531057 omit_on_truffle_ruby! "`rbs test` relies on `TracePoint` `:end` event, which is not supported on TruffleRuby"
1058+ omit_on_jruby! "`rbs test` relies on `TracePoint` `:end` event, which is not supported on JRuby"
10541059
10551060 Dir . mktmpdir do |dir |
10561061 dir = Pathname ( dir )
@@ -1078,6 +1083,8 @@ def foo: () -> void
10781083 end
10791084
10801085 def test_collection_install
1086+ omit_on_jruby! "`rbs collection install` runs `bundle install`, which builds native gem extensions that do not compile on JRuby"
1087+
10811088 Dir . mktmpdir do |dir |
10821089 Dir . chdir ( dir ) do
10831090 dir = Pathname ( dir )
@@ -1144,6 +1151,8 @@ def test_collection_install_frozen
11441151 end
11451152
11461153 def test_collection_update
1154+ omit_on_jruby! "`rbs collection update` runs `bundle install`, which builds native gem extensions that do not compile on JRuby"
1155+
11471156 Dir . mktmpdir do |dir |
11481157 Dir . chdir ( dir ) do
11491158 dir = Pathname ( dir )
@@ -1167,6 +1176,8 @@ def test_collection_update
11671176 end
11681177
11691178 def test_collection_install_gemspec
1179+ omit_on_jruby! "`rbs collection install` runs `bundle install`, which builds native gem extensions that do not compile on JRuby"
1180+
11701181 Dir . mktmpdir do |dir |
11711182 Dir . chdir ( dir ) do
11721183 dir = Pathname ( dir )
0 commit comments