diff --git a/.gitignore b/.gitignore index ad2e41cbc3ce..b4bfd438e822 100644 --- a/.gitignore +++ b/.gitignore @@ -39,6 +39,7 @@ src/main/c/**/*.o src/main/c/**/*.so src/main/c/**/*.a src/main/c/**/*.bundle +src/main/c/**/*.dylib src/main/c/**/extconf.h src/main/c/**/mkmf.log src/main/c/*/Makefile diff --git a/test/mri/excludes/Bug/Struct/Test_Member.rb b/test/mri/excludes/Bug/Struct/Test_Member.rb index b760648e030f..02a6d42172ee 100644 --- a/test/mri/excludes/Bug/Struct/Test_Member.rb +++ b/test/mri/excludes/Bug/Struct/Test_Member.rb @@ -1 +1 @@ -exclude :test_member_get, "needs investigation" +exclude :test_member_get, "Expected Exception(NameError) was raised, but the message doesn't match. Expected /is not a struct member/ to match \"no member 'b' in struct\"." diff --git a/test/mri/excludes/Bug/Time/Test_New.rb b/test/mri/excludes/Bug/Time/Test_New.rb index 30abd31ef75f..85b45ff383f8 100644 --- a/test/mri/excludes/Bug/Time/Test_New.rb +++ b/test/mri/excludes/Bug/Time/Test_New.rb @@ -1 +1 @@ -exclude :test_timespec_new, "needs investigation" +exclude :test_timespec_new, "ArgumentError: Zone offset not in valid range: -18:00 to +18:00" diff --git a/test/mri/excludes/CGIUtilPureRubyTest.rb b/test/mri/excludes/CGIUtilPureRubyTest.rb index a0c320db4cf2..a210f2081f3b 100644 --- a/test/mri/excludes/CGIUtilPureRubyTest.rb +++ b/test/mri/excludes/CGIUtilPureRubyTest.rb @@ -1,4 +1,2 @@ exclude :test_cgi_escapeHTML_with_invalid_byte_sequence, "NameError: uninitialized constant CGI::Escape" -exclude :test_cgi_escapeHTML_with_invalid_byte_sequence, "needs investigation" exclude :test_cgi_unescapeHTML_with_invalid_byte_sequence, "NameError: uninitialized constant CGI::Escape" -exclude :test_cgi_unescapeHTML_with_invalid_byte_sequence, "needs investigation" diff --git a/test/mri/excludes/Complex_Test.rb b/test/mri/excludes/Complex_Test.rb index afba9f262cd1..ce7e53eb9ce4 100644 --- a/test/mri/excludes/Complex_Test.rb +++ b/test/mri/excludes/Complex_Test.rb @@ -1,18 +1,17 @@ -exclude :test_Complex_with_invalid_exception, "needs investigation" -exclude :test_Complex_without_exception, "needs investigation" -exclude :test_add_with_redefining_int_plus, "needs investigation" -exclude :test_compsub, "needs investigation" -exclude :test_conv, "needs investigation" -exclude :test_div, "needs investigation" -exclude :test_expt, "needs investigation" -exclude :test_fixed_bug, "needs investigation" -exclude :test_infinite_p, "needs investigation" -exclude :test_marshal_compatibility, "needs investigation" -exclude :test_mul, "needs investigation" -exclude :test_parse, "needs investigation" -exclude :test_ruby19, "needs investigation" -exclude :test_sub_with_redefining_int_minus, "needs investigation" -exclude :test_canonicalize_internal, "needs investigation" -exclude :test_rationalize, "needs investigation" -exclude :test_polar, "needs investigation" +exclude :test_Complex_with_invalid_exception, "ArgumentError expected but nothing was raised." +exclude :test_Complex_without_exception, "RuntimeError: " +exclude :test_add_with_redefining_int_plus, "| core/truffle/ffi/pointer.rb:145:in `check_bounds': Memory access offset=0 size=5 is out of bounds (IndexError)" +exclude :test_canonicalize_internal, "NoMethodError: undefined method `+' for #<#:0x558 @real=false>" exclude :test_coerce2, "<=>." +exclude :test_compsub, "Expected (1+0i) to be an instance of ComplexSub, not Complex." +exclude :test_conv, "Expected (1+0i) (oid=1624) to be the same as (1+0i) (oid=1640)." +exclude :test_div, "Expected (1/1) to be integer?." +exclude :test_expt, "<(-3+4i)> expected but was <(-3.0+4.000000000000002i)>." +exclude :test_fixed_bug, "ArgumentError expected but nothing was raised." +exclude :test_infinite_p, "Expected 1 to be nil." +exclude :test_marshal_compatibility, "Exception raised: <#>" +exclude :test_mul, "<(Infinity+0i)> expected but was <(Infinity+NaN*i)>." +exclude :test_polar, "TypeError: not a real" +exclude :test_rationalize, "NoMethodError: undefined method `abs' for nil:NilClass" +exclude :test_ruby19, "NoMethodError expected but nothing was raised." +exclude :test_sub_with_redefining_int_minus, "| core/truffle/ffi/pointer.rb:145:in `check_bounds': Memory access offset=0 size=42 is out of bounds (IndexError)" diff --git a/test/mri/excludes/DRbTests/TestBug16634.rb b/test/mri/excludes/DRbTests/TestBug16634.rb new file mode 100644 index 000000000000..1a99c1ae6175 --- /dev/null +++ b/test/mri/excludes/DRbTests/TestBug16634.rb @@ -0,0 +1 @@ +exclude :test_bug16634, "ArgumentError: wrong number of arguments (given 1, expected 0)" diff --git a/test/mri/excludes/DRbTests/TestDRbCore.rb b/test/mri/excludes/DRbTests/TestDRbCore.rb new file mode 100644 index 000000000000..b5b9706d5f7a --- /dev/null +++ b/test/mri/excludes/DRbTests/TestDRbCore.rb @@ -0,0 +1,3 @@ +exclude :test_02_unknown, "<\"DRbTests::DRbEx::\"> expected but was <\"DRbTests::DRbEx::FooBar\">." +exclude :test_06_timeout, "[Timeout::Error] exception expected, not #." +exclude :test_11_remote_no_method_error, "[DRb::DRbRemoteError] exception expected, not #>." diff --git a/test/mri/excludes/DRbTests/TestDRbLarge.rb b/test/mri/excludes/DRbTests/TestDRbLarge.rb new file mode 100644 index 000000000000..026006b725ed --- /dev/null +++ b/test/mri/excludes/DRbTests/TestDRbLarge.rb @@ -0,0 +1 @@ +exclude :test_03_large_ary, "TypeError: allocator undefined for Thread" diff --git a/test/mri/excludes/DRbTests/TestDRbReusePort.rb b/test/mri/excludes/DRbTests/TestDRbReusePort.rb index f0519e679c0d..338a7e06d18c 100644 --- a/test/mri/excludes/DRbTests/TestDRbReusePort.rb +++ b/test/mri/excludes/DRbTests/TestDRbReusePort.rb @@ -1,2 +1,6 @@ +exclude :test_01, "NoMethodError: undefined method `manager' for nil:NilClass" +exclude :test_02_collect, "NoMethodError: undefined method `manager' for nil:NilClass" +exclude :test_03_redo, "NoMethodError: undefined method `manager' for nil:NilClass" exclude :test_05_break, "needs investigation" +exclude :test_06_next, "NoMethodError: undefined method `manager' for nil:NilClass" exclude :test_07_break_18, "needs investigation" diff --git a/test/mri/excludes/DRbTests/TestDRbSSLCore.rb b/test/mri/excludes/DRbTests/TestDRbSSLCore.rb new file mode 100644 index 000000000000..a8af266fc3d9 --- /dev/null +++ b/test/mri/excludes/DRbTests/TestDRbSSLCore.rb @@ -0,0 +1,2 @@ +exclude :test_06_timeout, "[Timeout::Error] exception expected, not #." +exclude :test_11_remote_no_method_error, "[DRb::DRbRemoteError] exception expected, not #>." diff --git a/test/mri/excludes/DRbTests/TestDRbSafe1.rb b/test/mri/excludes/DRbTests/TestDRbSafe1.rb new file mode 100644 index 000000000000..c29b8aea4834 --- /dev/null +++ b/test/mri/excludes/DRbTests/TestDRbSafe1.rb @@ -0,0 +1,2 @@ +exclude :test_05_break, "DRb::DRbConnError: connection closed" +exclude :test_07_break_18, "DRb::DRbConnError: connection closed" diff --git a/test/mri/excludes/DRbTests/TestDRbUNIXCore.rb b/test/mri/excludes/DRbTests/TestDRbUNIXCore.rb new file mode 100644 index 000000000000..5c7b94c1dc9e --- /dev/null +++ b/test/mri/excludes/DRbTests/TestDRbUNIXCore.rb @@ -0,0 +1,2 @@ +exclude :test_06_timeout, "[Timeout::Error] exception expected, not #." +exclude :test_11_remote_no_method_error, "[DRb::DRbRemoteError] exception expected, not #>." diff --git a/test/mri/excludes/ErrorHighlightTest.rb b/test/mri/excludes/ErrorHighlightTest.rb index e409485be5b1..f12a8e8ac519 100644 --- a/test/mri/excludes/ErrorHighlightTest.rb +++ b/test/mri/excludes/ErrorHighlightTest.rb @@ -1,70 +1,15 @@ +exclude :test_args_ATTRASGN_1, "NameError: uninitialized constant ErrorHighlight::RubyVM" +exclude :test_args_ATTRASGN_2, "NameError: uninitialized constant ErrorHighlight::RubyVM" +exclude :test_args_ATTRASGN_3, "NameError: uninitialized constant ErrorHighlight::RubyVM" +exclude :test_args_CALL_1, "NameError: uninitialized constant ErrorHighlight::RubyVM" +exclude :test_args_CALL_2, "NameError: uninitialized constant ErrorHighlight::RubyVM" +exclude :test_args_FCALL_1, "NameError: uninitialized constant ErrorHighlight::RubyVM" +exclude :test_args_FCALL_2, "NameError: uninitialized constant ErrorHighlight::RubyVM" +exclude :test_args_OPCALL, "NameError: uninitialized constant ErrorHighlight::RubyVM" +exclude :test_args_OP_ASGN1_aref_1, "NameError: uninitialized constant ErrorHighlight::RubyVM" +exclude :test_args_OP_ASGN1_aref_2, "NameError: uninitialized constant ErrorHighlight::RubyVM" +exclude :test_args_OP_ASGN1_op, "NameError: uninitialized constant ErrorHighlight::RubyVM" +exclude :test_args_OP_ASGN2, "NameError: uninitialized constant ErrorHighlight::RubyVM" exclude :test_custom_formatter, "NameError: uninitialized constant ErrorHighlight::Ractor" -exclude :test_OP_ASGN1_op_4, "<\"undefined method `+' for nil:NilClass\\n\" +" -exclude :test_ATTRASGN_2, "<\"undefined method `[]=' for nil:NilClass\\n\" +" -exclude :test_OPCALL_binary_2, "<\"undefined method `+' for nil:NilClass\\n\" +" -exclude :test_ATTRASGN_4, "<\"undefined method `[]=' for nil:NilClass\\n\" +" -exclude :test_OP_ASGN1_op_2, "<\"undefined method `+' for nil:NilClass\\n\" +" -exclude :test_OPCALL_unary_2, "<\"undefined method `+@' for nil:NilClass\\n\" +" -exclude :test_CALL_arg_5, "<\"undefined method `foo' for nil:NilClass\\n\" +" -exclude :test_OP_ASGN1_aref_1, "<\"undefined method `[]' for nil:NilClass\\n\" +" -exclude :test_CALL_arg_1, "<\"undefined method `foo' for nil:NilClass\\n\" +" -exclude :test_COLON2_2, "<\"uninitialized constant ErrorHighlightTest::NotDefined\\n\" +" -exclude :test_OP_ASGN2_op_2, "<\"undefined method `+' for nil:NilClass\\n\" +" -exclude :test_CALL_arg_3, "<\"undefined method `foo' for nil:NilClass\\n\" +" -exclude :test_const_get, "<\"uninitialized constant ErrorHighlightTest::NotDefined\\n\" +" -exclude :test_OP_ASGN2_read_3, "<\"undefined method `foo' for nil:NilClass\\n\" +" -exclude :test_OP_ASGN2_read_1, "<\"undefined method `foo' for nil:NilClass\\n\" +" -exclude :test_CALL_noarg_2, "<\"undefined method `foo' for nil:NilClass\\n\" +" -exclude :test_OP_CDECL_toplevel_2, "<\"undefined method `+' for ErrorHighlightTest:Class\\n\" +" -exclude :test_CALL_noarg_4, "<\"undefined method `foo' for nil:NilClass\\n\" +" -exclude :test_CALL_send, "<\"undefined method `foo' for nil:NilClass\\n\" +" -exclude :test_CALL_aref_1, "<\"undefined method `[]' for nil:NilClass\\n\" +" -exclude :test_CALL_aref_5, "<\"undefined method `[]' for nil:NilClass\\n\" +" -exclude :test_CALL_aset, "<\"undefined method `[]=' for nil:NilClass\\n\" +" -exclude :test_OP_ASGN2_write_2, "<\"undefined method `foo=' for #\\n\" +" -exclude :test_OP_ASGN1_aset_1, "<\"undefined method `[]=' for #\\n\" +" -exclude :test_OP_ASGN1_aset_3, "<\"undefined method `[]=' for #\"> expected but was" -exclude :test_QCALL_2, "<\"undefined method `foo' for 1:Integer\\n\" +" -exclude :test_FCALL_2, "<\"undefined method `foo' for nil:NilClass\\n\" +" -exclude :test_COLON3, "<\"uninitialized constant NotDefined\\n\" +" -exclude :test_OP_CDECL_op_1, "<\"undefined method `+' for nil:NilClass\\n\" +" -exclude :test_OP_CDECL_read_1, "<\"uninitialized constant ErrorHighlightTest::OP_CDECL_TEST::NotDefined\\n\" +" -exclude :test_OP_CDECL_op_3, "NoMethodError expected but nothing was raised." -exclude :test_local_variable_get, "<\"local variable `foo' is not defined for #\\n\" +" -exclude :test_OP_ASGN1_aset_2, "<\"undefined method `[]=' for #\\n\" +" -exclude :test_QCALL_1, "<\"undefined method `foo' for 1:Integer\\n\" +" -exclude :test_OP_ASGN2_write_1, "<\"undefined method `foo=' for #\\n\" +" -exclude :test_OP_ASGN2_write_3, "<\"undefined method `foo=' for #\\n\" +" -exclude :test_OP_ASGN1_aset_4, "<\"undefined method `[]=' for #\\n\" +" -exclude :test_OP_CDECL_read_2, "<\"uninitialized constant ErrorHighlightTest::OP_CDECL_TEST::NotDefined\\n\" +" -exclude :test_OP_CDECL_op_2, "NoMethodError expected but nothing was raised." -exclude :test_VCALL_2, "<\"undefined local variable or method `foo' for nil:NilClass\\n\" +" -exclude :test_FCALL_1, "<\"undefined method `foo' for nil:NilClass\\n\" +" -exclude :test_CALL_op_asgn, "<\"undefined method `+' for nil:NilClass\\n\" +" -exclude :test_OP_CDECL_toplevel_1, "<\"uninitialized constant NotDefined\\n\" +" -exclude :test_CALL_noarg_1, "<\"undefined method `foo' for nil:NilClass\\n\" +" -exclude :test_CALL_noarg_3, "<\"undefined method `foo' for nil:NilClass\\n\" +" -exclude :test_CALL_aref_4, "<\"undefined method `[]' for #\\n\" +" -exclude :test_CALL_aref_2, "<\"undefined method `[]' for nil:NilClass\\n\" +" -exclude :test_explicit_raise_no_method_error, "<\"NoMethodError\\n\" + \"\\n\" + \" raise NoMethodError\\n\" + \" ^^^^^\"> expected but was" -exclude :test_explicit_raise_name_error, "<\"NameError\\n\" + \"\\n\" + \" raise NameError\\n\" + \" ^^^^^\"> expected but was" -exclude :test_OP_ASGN2_read_2, "<\"undefined method `foo' for nil:NilClass\\n\" +" -exclude :test_OP_ASGN1_op_1, "<\"undefined method `+' for nil:NilClass\\n\" +" -exclude :test_ATTRASGN_5, "<\"undefined method `foo=' for nil:NilClass\\n\" +" -exclude :test_OPCALL_binary_3, "<\"undefined method `+' for nil:NilClass\\n\" +" -exclude :test_ATTRASGN_3, "<\"undefined method `foo=' for nil:NilClass\\n\" +" -exclude :test_OPCALL_binary_1, "<\"undefined method `+' for nil:NilClass\\n\" +" -exclude :test_ATTRASGN_1, "<\"undefined method `[]=' for nil:NilClass\\n\" +" -exclude :test_CALL_arg_2, "<\"undefined method `foo' for nil:NilClass\\n\" +" -exclude :test_OP_ASGN2_op_3, "<\"undefined method `+' for nil:NilClass\\n\" +" -exclude :test_CONST, "<\"uninitialized constant ErrorHighlightTest::NotDefined\\n\" +" -exclude :test_OP_ASGN1_aref_4, "<\"undefined method `[]' for nil:NilClass\\n\" +" -exclude :test_OP_ASGN2_op_1, "<\"undefined method `+' for nil:NilClass\\n\" +" -exclude :test_COLON2_1, "[NameError] exception expected, not #." -exclude :test_CALL_arg_6, "<\"undefined method `foo' for nil:NilClass\\n\" +" -exclude :test_OPCALL_unary_1, "<\"undefined method `+@' for nil:NilClass\\n\" + \"\\n\" + \" + nil\\n\" + \" ^\"> expected but was" -exclude :test_hard_tabs, "<\"undefined method `time' for 1:Integer\\n\" +" -exclude :test_CALL_arg_4, "<\"undefined method `foo' for nil:NilClass\\n\" +" -exclude :test_no_final_newline, "<\"undefined method `time' for 1:Integer\\n\" + \"\\n\" + \"1.time {}\\n\" + \" ^^^^^\"> expected but was" -exclude :test_OP_ASGN1_aref_2, "<\"undefined method `[]' for nil:NilClass\\n\" +" -exclude :test_OP_CDECL_read_3, "<\"uninitialized constant ErrorHighlightTest::OP_CDECL_TEST::NotDefined\"> expected but was" +exclude :test_spot_with_backtrace_location, "NameError: uninitialized constant ErrorHighlight::RubyVM" +exclude :test_spot_with_node, "NameError: uninitialized constant ErrorHighlightTest::RubyVM" diff --git a/test/mri/excludes/JSONCommonInterfaceTest.rb b/test/mri/excludes/JSONCommonInterfaceTest.rb new file mode 100644 index 000000000000..aae61ab00d79 --- /dev/null +++ b/test/mri/excludes/JSONCommonInterfaceTest.rb @@ -0,0 +1 @@ +exclude :test_dump, "SystemStackError: stack level too deep" diff --git a/test/mri/excludes/JSONParserTest.rb b/test/mri/excludes/JSONParserTest.rb new file mode 100644 index 000000000000..b8e9857d7ddc --- /dev/null +++ b/test/mri/excludes/JSONParserTest.rb @@ -0,0 +1 @@ +exclude :test_nesting, "[JSON::NestingError] exception expected, not #\"> expected but was <\"undefined method `sizee' for #\">." diff --git a/test/mri/excludes/Psych_Unit_Tests.rb b/test/mri/excludes/Psych_Unit_Tests.rb index 02b8e8474458..e69de29bb2d1 100644 --- a/test/mri/excludes/Psych_Unit_Tests.rb +++ b/test/mri/excludes/Psych_Unit_Tests.rb @@ -1,2 +0,0 @@ -exclude :test_ruby_complex, "needs investigation" -exclude :test_ruby_rational, "needs investigation" diff --git a/test/mri/excludes/Rational_Test.rb b/test/mri/excludes/Rational_Test.rb index fc06d45f157b..6c97b4d9c260 100644 --- a/test/mri/excludes/Rational_Test.rb +++ b/test/mri/excludes/Rational_Test.rb @@ -1,12 +1,10 @@ -exclude :test_Rational_with_invalid_exception, "needs investigation" -exclude :test_fixed_bug, "needs investigation" -exclude :test_marshal, "needs investigation" -exclude :test_marshal_compatibility, "needs investigation" -exclude :test_parse, "needs investigation" -exclude :test_power_of_0, "needs investigation" -exclude :test_supp, "needs investigation" -exclude :test_to_f, "needs investigation" -exclude :test_Rational_without_exception, "needs investigation" -exclude :test_conv, "needs investigation" -exclude :test_power_overflow, "needs investigation" -exclude :test_ratsub, "needs investigation" +exclude :test_Rational_with_invalid_exception, "[ArgumentError] exception expected, not #." +exclude :test_Rational_without_exception, "TypeError: denominator is not an Integer" +exclude :test_conv, "RangeError: can't' convert 1+2i into Rational" +exclude :test_marshal, "TypeError expected but nothing was raised." +exclude :test_marshal_compatibility, "TypeError expected but nothing was raised." +exclude :test_parse, "Rational(\"5__5/33\")." +exclude :test_power_of_0, "Expected 0.0 to be an instance of Rational, not Float." +exclude :test_power_overflow, "FloatDomainError: Infinity" +exclude :test_ratsub, "ArgumentError: wrong number of arguments (given 1, expected 2)" +exclude :test_supp, "<3.330669073875469e-16> expected but was <3.3306690738754696e-16>." diff --git a/test/mri/excludes/Reline/Test.rb b/test/mri/excludes/Reline/Test.rb index cf38b34d8785..dcc1318b3a24 100644 --- a/test/mri/excludes/Reline/Test.rb +++ b/test/mri/excludes/Reline/Test.rb @@ -1 +1 @@ -exclude :test_dumb_terminal, "<\"Reline::GeneralIO\"> expected but was" +exclude :test_dumb_terminal, '<"Reline::GeneralIO"> expected but was <"Reline::ANSI">' \ No newline at end of file diff --git a/test/mri/excludes/TestAddressResolve.rb b/test/mri/excludes/TestAddressResolve.rb index 65c65b94ae68..b77236a2d336 100644 --- a/test/mri/excludes/TestAddressResolve.rb +++ b/test/mri/excludes/TestAddressResolve.rb @@ -1,14 +1,14 @@ -exclude :test_addrinfo_tcp_domain_blocking, "hangs, no Fiber.set_scheduler" -exclude :test_addrinfo_getaddrinfo_pf_unspec_domain_blocking, "hangs, no Fiber.set_scheduler" -exclude :test_socket_getnameinfo_domain_blocking, "hangs, no Fiber.set_scheduler" -exclude :test_addrinfo_getaddrinfo_no_host_non_blocking, "hangs, no Fiber.set_scheduler" -exclude :test_addrinfo_getaddrinfo_ipv6_domain_blocking, "hangs, no Fiber.set_scheduler" -exclude :test_addrinfo_getaddrinfo_ipv4_domain_blocking, "hangs, no Fiber.set_scheduler" exclude :test_addrinfo_getaddrinfo_any_non_blocking, "hangs, no Fiber.set_scheduler" -exclude :test_addrinfo_ip_domain_blocking, "hangs, no Fiber.set_scheduler" exclude :test_addrinfo_getaddrinfo_full_domain_blocking, "hangs, no Fiber.set_scheduler" -exclude :test_addrinfo_udp_domain_blocking, "hangs, no Fiber.set_scheduler" -exclude :test_addrinfo_getaddrinfo_non_existing_domain_blocking, "hangs, no Fiber.set_scheduler" +exclude :test_addrinfo_getaddrinfo_ipv4_domain_blocking, "hangs, no Fiber.set_scheduler" +exclude :test_addrinfo_getaddrinfo_ipv6_domain_blocking, "hangs, no Fiber.set_scheduler" exclude :test_addrinfo_getaddrinfo_localhost, "hangs, no Fiber.set_scheduler" -exclude :test_ip_socket_getaddress_domain_blocking, "hangs, no Fiber.set_scheduler" +exclude :test_addrinfo_getaddrinfo_no_host_non_blocking, "hangs, no Fiber.set_scheduler" +exclude :test_addrinfo_getaddrinfo_non_existing_domain_blocking, "hangs, no Fiber.set_scheduler" exclude :test_addrinfo_getaddrinfo_numeric_non_blocking, "hangs, no Fiber.set_scheduler" +exclude :test_addrinfo_getaddrinfo_pf_unspec_domain_blocking, "hangs, no Fiber.set_scheduler" +exclude :test_addrinfo_ip_domain_blocking, "hangs, no Fiber.set_scheduler" +exclude :test_addrinfo_tcp_domain_blocking, "hangs, no Fiber.set_scheduler" +exclude :test_addrinfo_udp_domain_blocking, "hangs, no Fiber.set_scheduler" +exclude :test_ip_socket_getaddress_domain_blocking, "hangs, no Fiber.set_scheduler" +exclude :test_socket_getnameinfo_domain_blocking, "hangs, no Fiber.set_scheduler" diff --git a/test/mri/excludes/TestAlias.rb b/test/mri/excludes/TestAlias.rb index 1feae3e60913..118f97ce9473 100644 --- a/test/mri/excludes/TestAlias.rb +++ b/test/mri/excludes/TestAlias.rb @@ -1,3 +1 @@ -exclude :test_alias_class_method_added, "needs investigation" -exclude :test_alias_module_method_added, "needs investigation" -exclude :test_alias_inspect, "needs investigation" +exclude :test_alias_inspect, "<\"TestAlias::Alias4(TestAlias::Alias0)#foo1(foo)()\"> expected but was <\"TestAlias::Alias4#foo1()\">." diff --git a/test/mri/excludes/TestArgf.rb b/test/mri/excludes/TestArgf.rb index 2e762f1b9b55..f4ac3c9d0e80 100644 --- a/test/mri/excludes/TestArgf.rb +++ b/test/mri/excludes/TestArgf.rb @@ -1,28 +1,27 @@ -exclude :test_close_replace, "needs investigation" -exclude :test_argf, "needs investigation" -exclude :test_each_line_chomp, "needs investigation" -exclude :test_each_line_limit_0, "#each relies on IO#gets that doesn't raise error when limit=0" -exclude :test_encoding, "needs investigation" -exclude :test_eof, "needs investigation" -exclude :test_inplace, "needs investigation" -exclude :test_inplace2, "needs investigation" -exclude :test_inplace3, "needs investigation" -exclude :test_inplace_dup, "needs investigation" -exclude :test_inplace_invalid_backup, "needs investigation" -exclude :test_inplace_no_backup, "needs investigation" -exclude :test_inplace_nonascii, "needs investigation" -exclude :test_inplace_rename_impossible, "needs investigation" -exclude :test_inplace_stdin, "needs investigation" -exclude :test_inplace_stdin2, "needs investigation" -exclude :test_lineno, "needs investigation" -exclude :test_read3, "needs investigation" -exclude :test_read_nonblock, "needs investigation" -exclude :test_readbyte, "needs investigation" -exclude :test_readlines_limit_0, "#readlines relies on IO#gets that doesn't raise error when limit=0" -exclude :test_textmode, "needs investigation" -exclude :test_unreadable, "needs investigation" -exclude :test_inplace_suffix_encoding, "needs investigation" +exclude :test_argf, "<\"[\\\"1\\\", 1, \\\"1\\\", 1]\"> expected but was <\"[\\\"1\\\", 1, \\\"3\\\", 1]\">." +exclude :test_close_replace, "hangs" +exclude :test_each_line_chomp, "| core/type.rb:280:in `convert_type': no implicit conversion of Hash into Integer (TypeError)" +exclude :test_each_line_limit_0, "ArgumentError expected but nothing was raised." +exclude :test_encoding, "<\"true\\n\" + \"true\\n\" + \"true\\n\" + \"nil\\n\"> expected but was <\"true\\n\" + \"false\\n\" + \"true\\n\" + \"nil\\n\">." +exclude :test_eof, "<\"false\"> expected but was <\"nil\">." +exclude :test_inplace, "| -:2:in `
': undefined method `inplace_mode=' for # (NoMethodError)" +exclude :test_inplace2, "| -:2:in `
': undefined method `inplace_mode=' for # (NoMethodError)" +exclude :test_inplace3, "| truffleruby: the -i option is not implemented" exclude :test_inplace_bug_17117, "needs investigation" -exclude :test_readlines_chomp, "TypeError: wrong argument type Hash (expected Integer)" -exclude :test_gets_chomp, "TypeError: wrong argument type Hash (expected Integer)" -exclude :test_readline_chomp, "TypeError: wrong argument type Hash (expected Integer)" +exclude :test_inplace_dup, "| -:2:in `
': undefined method `inplace_mode=' for # (NoMethodError)" +exclude :test_inplace_invalid_backup, "[ArgumentError] exception expected, not #': undefined method `inplace_mode=' for # (NoMethodError)\"." +exclude :test_inplace_stdin, "| -:2:in `
': undefined method `inplace_mode=' for # (NoMethodError)" +exclude :test_inplace_stdin2, "| -:2:in `
': undefined method `inplace_mode=' for # (NoMethodError)" +exclude :test_inplace_suffix_encoding, "NoMethodError: undefined method `inplace_mode=' for #" +exclude :test_lineno, "<\"2001\"> expected but was <\"1003\">." +exclude :test_read3, "<\"nil\\n\" + \"\\\"\\\"\\n\"> expected but was <\"\\\"\\\"\\n\" + \"\\\"\\\"\\n\">." +exclude :test_read_nonblock, "<\"done with eof\\n\"> expected but was ." +exclude :test_readbyte, "<\"[49, 10, 50, 10, 51, 10, 52, 10, 53, 10, 54, 10]\\n\"> expected but was <\"[\\\"1\\\", \\\"\\\\n\\\", \\\"2\\\", \\\"\\\\n\\\", \\\"3\\\", \\\"\\\\n\\\", \\\"4\\\", \\\"\\\\n\\\", \\\"5\\\", \\\"\\\\n\\\", \\\"6\\\", \\\"\\\\n\\\"]\\n\">." +exclude :test_readline_chomp, "TypeError: no implicit conversion of Hash into Integer" +exclude :test_readlines_chomp, "TypeError: no implicit conversion of Hash into Integer" +exclude :test_readlines_limit_0, "[ArgumentError] exception expected, not #." +exclude :test_textmode, "<\"1\\n\" + \"2\\n\" + \"3\\n\" + \"4\\n\" + \"5\\n\" + \"6\\n\"> expected but was <\"1\\n\" + \"2\\n\" + \"3\\n\" + \"4\\n\" + \"5\\r\\n\" + \"6\\r\\n\">." +exclude :test_unreadable, "Exception(Errno::ENOENT) with message matches to /- \\/tmp\\/bug4274\\-20240907\\-971677\\-f4faiq\\z/." diff --git a/test/mri/excludes/TestArithmeticSequence.rb b/test/mri/excludes/TestArithmeticSequence.rb index 1007f460080b..f1e028de095e 100644 --- a/test/mri/excludes/TestArithmeticSequence.rb +++ b/test/mri/excludes/TestArithmeticSequence.rb @@ -1,9 +1,5 @@ -exclude :test_allocate, "needs investigation" -exclude :test_new, "needs investigation" -exclude :test_num_step_inspect, "needs investigation" -exclude :test_begin, "needs investigation" -exclude :test_complex, "needs investigation" -exclude :test_end, "needs investigation" -exclude :test_exclude_end_p, "needs investigation" -exclude :test_first, "needs investigation" -exclude :test_step, "needs investigation" +exclude :test_allocate, "TypeError expected but nothing was raised." +exclude :test_complex, "NoMethodError: undefined method `<' for (0+1i):Complex" +exclude :test_first, "NoMethodError: undefined method `step' for nil:NilClass" +exclude :test_new, "[NoMethodError] exception expected, not #." +exclude :test_num_step_inspect, "<\"(1.step(10, by: 2))\"> expected but was <\"(1.step(10, 2))\">." diff --git a/test/mri/excludes/TestArity.rb b/test/mri/excludes/TestArity.rb index cc1208f9c818..ae8e4b9d44f5 100644 --- a/test/mri/excludes/TestArity.rb +++ b/test/mri/excludes/TestArity.rb @@ -1,4 +1 @@ -exclude :test_message_change_issue_6085, "needs investigation" -exclude :test_method_err_mess, "needs investigation" -exclude :test_message_change_issue_6085, "needs investigation" -exclude :test_method_err_mess, "needs investigation" +exclude :test_message_change_issue_6085, "Expected Exception(ArgumentError) was raised, but the message doesn't match. Expected /wrong number of arguments \\(.*\\b(\\d+)\\b.* (\\d\\S*?)\\)/ to match \"method 'sub!': given 1, expected 2\"." diff --git a/test/mri/excludes/TestArray.rb b/test/mri/excludes/TestArray.rb index 9ab532114b2d..f77118e1a286 100644 --- a/test/mri/excludes/TestArray.rb +++ b/test/mri/excludes/TestArray.rb @@ -1,57 +1,41 @@ -exclude :test_OR, "needs investigation" -exclude :test_ary_new, "needs investigation" -exclude :test_aset_error, "needs investigation" -exclude :test_big_array_literal_with_kwsplat, "needs investigation" -exclude :test_bsearch_typechecks_return_values, "needs investigation" +exclude :test_OR, "Failed assertion, no message given." +exclude :test_ary_new, "ArgumentError expected but nothing was raised." +exclude :test_aset_error, "-2147483648 (java.lang.NegativeArraySizeException) from org.truffleruby.core.array.library.ObjectArrayStore$ObjectArrayAllocator.allocate" +exclude :test_big_array_literal_with_kwsplat, "<10000> expected but was <10001>." +exclude :test_bsearch_typechecks_return_values, "Expected Exception(TypeError) was raised, but the message doesn't match. Expected /C\\u{309a 26a1 26c4 1f300}/ to match \"wrong argument type (must be numeric, true, false or nil)\"." exclude :test_combination_clear, "hangs" -exclude :test_count, "needs investigation" -exclude :test_initialize, "needs investigation" -exclude :test_insert, "needs investigation" -exclude :test_join2, "needs investigation" -exclude :test_permutation_stack_error, "needs investigation" -exclude :test_product2, "needs investigation" -exclude :test_repeated_combination_stack_error, "needs investigation" -exclude :test_repeated_permutation_stack_error, "needs investigation" -exclude :test_reverse_each2, "needs investigation" -exclude :test_sample, "needs investigation" -exclude :test_sample_random, "needs investigation" -exclude :test_select!, "needs investigation" -exclude :test_shuffle, "needs investigation" -exclude :test_shuffle_random, "needs investigation" -exclude :test_sort_bang_with_freeze, "needs investigation" -exclude :test_sort_with_replace, "needs investigation" -exclude :test_times, "needs investigation" -exclude :test_to_ary, "needs investigation" -exclude :test_union, "needs investigation" -exclude :test_uniq_bang_with_freeze, "needs investigation" -exclude :test_zip, "needs investigation" -exclude :test_combination_with_callcc, "needs investigation" -exclude :test_flatten_recursive, "needs investigation" -exclude :test_flatten_respond_to_missing, "needs investigation" -exclude :test_flatten_with_callcc, "needs investigation" -exclude :test_permutation_with_callcc, "needs investigation" -exclude :test_product_with_callcc, "needs investigation" -exclude :test_reject_with_callcc, "needs investigation" -exclude :test_repeated_combination_with_callcc, "needs investigation" -exclude :test_repeated_permutation_with_callcc, "needs investigation" -exclude :test_sort_with_callcc, "needs investigation" -exclude :test_delete_if, "needs investigation" -exclude :test_join, "needs investigation" -exclude :test_join_recheck_array_length, "needs investigation" -exclude :test_join_recheck_elements_type, "needs investigation" -exclude :test_keep_if, "needs investigation" -exclude :test_max_uncomparable, "needs investigation" -exclude :test_min_uncomparable, "needs investigation" -exclude :test_reject!, "needs investigation" -exclude :test_slice_out_of_range, "needs investigation" -exclude :test_sort_uncomparable, "needs investigation" -exclude :test_uniq, "needs investigation" -exclude :test_freeze_inside_sort!, "needs investigation" -exclude :test_intersect_big_array, "needs investigation" -exclude :test_intersect?, "needs investigation" -exclude :test_pack_with_buffer, "ArgumentError: wrong number of arguments (given 2, expected 1)" -exclude :test_shuffle_random_invalid_generator, "NoMethodError expected but nothing was raised." -exclude :test_sample_random_generator, "<[]> expected but was" +exclude :test_combination_with_callcc, "RuntimeError: Continuations are unsupported on TruffleRuby" +exclude :test_count, "| | | Error while formatting Ruby exception: | core/post.rb:80:in `block in p': stack level too deep (SystemStackError)" +exclude :test_flatten_recursive, "ArgumentError: tried to flatten recursive array" +exclude :test_flatten_respond_to_missing, "ArgumentError: unknown event: raise" +exclude :test_flatten_with_callcc, "RuntimeError: Continuations are unsupported on TruffleRuby" +exclude :test_freeze_inside_sort!, "FrozenError expected but nothing was raised." +exclude :test_initialize, "[ArgumentError] exception expected, not #." +exclude :test_insert, "TypeError expected but nothing was raised." +exclude :test_join, "expected: /non-nil value/" +exclude :test_join2, "[ArgumentError] exception expected, not # expected but was <\"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaz\">." +exclude :test_join_recheck_elements_type, "<\"ab012z\"> expected but was <\"abcz\">." +exclude :test_permutation_stack_error, "Exception raised: Exception raised: <#>" +exclude :test_permutation_with_callcc, "RuntimeError: Continuations are unsupported on TruffleRuby" +exclude :test_product2, "Exception raised: <#>" +exclude :test_product_with_callcc, "RuntimeError: Continuations are unsupported on TruffleRuby" +exclude :test_reject_with_callcc, "RuntimeError: Continuations are unsupported on TruffleRuby" +exclude :test_repeated_combination_stack_error, "Exception raised: <#>" +exclude :test_repeated_combination_with_callcc, "RuntimeError: Continuations are unsupported on TruffleRuby" +exclude :test_repeated_permutation_stack_error, "Exception raised: <#>" +exclude :test_repeated_permutation_with_callcc, "RuntimeError: Continuations are unsupported on TruffleRuby" +exclude :test_replace_wb_variable_width_alloc, "NoMethodError: undefined method `verify_internal_consistency' for GC:Module" +exclude :test_reverse_each2, "<[5, 3, 1]> expected but was <[5, nil, nil, nil, nil, nil]>." +exclude :test_sample_random_generator, "<[]> expected but was <[nil]>." exclude :test_sample_random_invalid_generator, "NoMethodError expected but nothing was raised." +exclude :test_shuffle, "Exception(ArgumentError) with message matches to /unknown keyword/." exclude :test_shuffle_random_clobbering, "RuntimeError expected but nothing was raised." -exclude :test_replace_wb_variable_width_alloc, "NoMethodError: undefined method `verify_internal_consistency' for GC:Module" +exclude :test_shuffle_random_invalid_generator, "NoMethodError expected but nothing was raised." +exclude :test_slice_out_of_range, "Expected Exception(RangeError) was raised, but the message doesn't match. <\"((-101..-1).%(2)) out of range\"> expected but was <\"((-101..-1).step(2)) out of range\">." +exclude :test_sort_bang_with_freeze, "frozen during comparison." +exclude :test_sort_with_callcc, "RuntimeError: Continuations are unsupported on TruffleRuby" +exclude :test_sort_with_replace, "Exception raised: Exception raised: <#>" +exclude :test_times, "[ArgumentError] exception expected, not #." +exclude :test_union, "Failed assertion, no message given." +exclude :test_uniq_bang_with_freeze, "frozen during comparison." diff --git a/test/mri/excludes/TestAssignment.rb b/test/mri/excludes/TestAssignment.rb index c577a95edd47..ccce23913399 100644 --- a/test/mri/excludes/TestAssignment.rb +++ b/test/mri/excludes/TestAssignment.rb @@ -1,4 +1,2 @@ -exclude :test_assign_private_self, "needs investigation" -exclude :test_massign_order, "<[:x1, :y1, :x2, :r1, :r2, [:z=, :r1], [:[]=, 1, 2, 3, 6], [:[]=, 4, :r2]]> expected but was" -exclude :test_massign_const_order, "<[:x1, :y1, :x2, [:[], 1, 2, 3], [:[], 4], :r1, :r2]> expected but was" -exclude :test_const_assign_order, "[RuntimeError] exception expected, not #." +exclude :test_massign_const_order, "<[:x1, :y1, :x2, [:[], 1, 2, 3], [:[], 4], :r1, :r2]> expected but was <[:x1, :y1, [:[], 4], :r1, :r2, :x2, [:[], 1, 2, 3]]>." +exclude :test_massign_order, "<[:x1, :y1, :x2, :r1, :r2, [:z=, :r1], [:[]=, 1, 2, 3, [6, 7]], [:[]=, 4, :r2]]> expected but was <[:x1, :y1, :r1, :r2, [:z=, :r1], :x2, [:[]=, 1, 2, 3, [6, 7]], [:[]=, 4, :r2]]>." diff --git a/test/mri/excludes/TestAst.rb b/test/mri/excludes/TestAst.rb new file mode 100644 index 000000000000..4529ae7c0263 --- /dev/null +++ b/test/mri/excludes/TestAst.rb @@ -0,0 +1,55 @@ +exclude :test_allocate, "TypeError expected but nothing was raised." +exclude :test_args, "NoMethodError: undefined method `parse' for RubyVM::AbstractSyntaxTree:Module" +exclude :test_argument_forwarding, "NoMethodError: undefined method `parse' for RubyVM::AbstractSyntaxTree:Module" +exclude :test_block_arg, "NoMethodError: undefined method `parse' for RubyVM::AbstractSyntaxTree:Module" +exclude :test_call, "NoMethodError: undefined method `parse' for RubyVM::AbstractSyntaxTree:Module" +exclude :test_column_of_heredoc, "NoMethodError: undefined method `parse' for RubyVM::AbstractSyntaxTree:Module" +exclude :test_column_with_long_heredoc_identifier, "NoMethodError: undefined method `parse' for RubyVM::AbstractSyntaxTree:Module" +exclude :test_defn, "NoMethodError: undefined method `parse' for RubyVM::AbstractSyntaxTree:Module" +exclude :test_defn_endless, "NoMethodError: undefined method `parse' for RubyVM::AbstractSyntaxTree:Module" +exclude :test_defs, "NoMethodError: undefined method `parse' for RubyVM::AbstractSyntaxTree:Module" +exclude :test_defs_endless, "NoMethodError: undefined method `parse' for RubyVM::AbstractSyntaxTree:Module" +exclude :test_dstr, "NoMethodError: undefined method `parse' for RubyVM::AbstractSyntaxTree:Module" +exclude :test_e_option, "| -e:1:in `const_missing': uninitialized constant RubyVM (NameError)" +exclude :test_encoding_with_keep_script_lines, "NoMethodError: undefined method `parse' for RubyVM::AbstractSyntaxTree:Module" +exclude :test_error_tolerant, "NoMethodError: undefined method `parse' for RubyVM::AbstractSyntaxTree:Module" +exclude :test_error_tolerant_end_is_short_for_begin, "NoMethodError: undefined method `parse' for RubyVM::AbstractSyntaxTree:Module" +exclude :test_error_tolerant_end_is_short_for_case, "NoMethodError: undefined method `parse' for RubyVM::AbstractSyntaxTree:Module" +exclude :test_error_tolerant_end_is_short_for_class, "NoMethodError: undefined method `parse' for RubyVM::AbstractSyntaxTree:Module" +exclude :test_error_tolerant_end_is_short_for_do, "NoMethodError: undefined method `parse' for RubyVM::AbstractSyntaxTree:Module" +exclude :test_error_tolerant_end_is_short_for_do_LAMBDA, "NoMethodError: undefined method `parse' for RubyVM::AbstractSyntaxTree:Module" +exclude :test_error_tolerant_end_is_short_for_do_block, "NoMethodError: undefined method `parse' for RubyVM::AbstractSyntaxTree:Module" +exclude :test_error_tolerant_end_is_short_for_for, "NoMethodError: undefined method `parse' for RubyVM::AbstractSyntaxTree:Module" +exclude :test_error_tolerant_end_is_short_for_if, "NoMethodError: undefined method `parse' for RubyVM::AbstractSyntaxTree:Module" +exclude :test_error_tolerant_end_is_short_for_method_define, "NoMethodError: undefined method `parse' for RubyVM::AbstractSyntaxTree:Module" +exclude :test_error_tolerant_end_is_short_for_module, "NoMethodError: undefined method `parse' for RubyVM::AbstractSyntaxTree:Module" +exclude :test_error_tolerant_end_is_short_for_singleton_method_define, "NoMethodError: undefined method `parse' for RubyVM::AbstractSyntaxTree:Module" +exclude :test_error_tolerant_end_is_short_for_unless, "NoMethodError: undefined method `parse' for RubyVM::AbstractSyntaxTree:Module" +exclude :test_error_tolerant_end_is_short_for_until, "NoMethodError: undefined method `parse' for RubyVM::AbstractSyntaxTree:Module" +exclude :test_error_tolerant_end_is_short_for_while, "NoMethodError: undefined method `parse' for RubyVM::AbstractSyntaxTree:Module" +exclude :test_error_tolerant_expr_value_can_be_error, "NoMethodError: undefined method `parse' for RubyVM::AbstractSyntaxTree:Module" +exclude :test_error_tolerant_treat_end_as_keyword_based_on_indent, "NoMethodError: undefined method `parse' for RubyVM::AbstractSyntaxTree:Module" +exclude :test_fcall, "NoMethodError: undefined method `parse' for RubyVM::AbstractSyntaxTree:Module" +exclude :test_keep_script_lines_for_of, "NoMethodError: undefined method `of' for RubyVM::AbstractSyntaxTree:Module" +exclude :test_keep_script_lines_for_parse, "NoMethodError: undefined method `parse' for RubyVM::AbstractSyntaxTree:Module" +exclude :test_keyword_rest, "NoMethodError: undefined method `parse' for RubyVM::AbstractSyntaxTree:Module" +exclude :test_node_id_for_backtrace_location_raises_argument_error, "[TypeError] exception expected, not #." +exclude :test_node_id_for_location, "NoMethodError: undefined method `node_id_for_backtrace_location' for RubyVM::AbstractSyntaxTree:Module" +exclude :test_of_backtrace_location, "NoMethodError: undefined method `of' for RubyVM::AbstractSyntaxTree:Module" +exclude :test_of_backtrace_location_under_eval, "NoMethodError: undefined method `keep_script_lines=' for RubyVM:Class" +exclude :test_of_backtrace_location_under_eval_with_keep_script_lines, "NoMethodError: undefined method `keep_script_lines=' for RubyVM:Class" +exclude :test_of_c_method, "NoMethodError: undefined method `of' for RubyVM::AbstractSyntaxTree:Module" +exclude :test_of_error, "[TypeError] exception expected, not #." +exclude :test_of_proc_and_method, "NoMethodError: undefined method `of' for RubyVM::AbstractSyntaxTree:Module" +exclude :test_of_proc_and_method_under_eval, "NoMethodError: undefined method `keep_script_lines=' for RubyVM:Class" +exclude :test_of_proc_and_method_under_eval_with_keep_script_lines, "NoMethodError: undefined method `keep_script_lines=' for RubyVM:Class" +exclude :test_op_asgn2, "NoMethodError: undefined method `parse' for RubyVM::AbstractSyntaxTree:Module" +exclude :test_parse_argument_error, "[TypeError] exception expected, not #." +exclude :test_parse_file_raises_syntax_error, "Exception(SyntaxError) with message matches to /\\bend\\b/." +exclude :test_parse_raises_syntax_error, "Exception(SyntaxError) with message matches to /\\bend\\b/." +exclude :test_ranges_numbered_parameter, "NoMethodError: undefined method `parse' for RubyVM::AbstractSyntaxTree:Module" +exclude :test_rest_arg, "NoMethodError: undefined method `parse' for RubyVM::AbstractSyntaxTree:Module" +exclude :test_scope_local_variables, "NoMethodError: undefined method `parse' for RubyVM::AbstractSyntaxTree:Module" +exclude :test_until, "NoMethodError: undefined method `parse' for RubyVM::AbstractSyntaxTree:Module" +exclude :test_vcall, "NoMethodError: undefined method `parse' for RubyVM::AbstractSyntaxTree:Module" +exclude :test_while, "NoMethodError: undefined method `parse' for RubyVM::AbstractSyntaxTree:Module" diff --git a/test/mri/excludes/TestAutoload.rb b/test/mri/excludes/TestAutoload.rb index e4257988ee2e..a117f222847d 100644 --- a/test/mri/excludes/TestAutoload.rb +++ b/test/mri/excludes/TestAutoload.rb @@ -1,4 +1,4 @@ -exclude :test_source_location, "needs investigation" -exclude :test_threaded_accessing_inner_constant, "Exception raised:" +exclude :test_autoload_parallel_race, "slow" exclude :test_autoload_parent_namespace, "expected: /\\/some_const.rb to define SomeNamespace::SomeConst but it didn't/" -exclude :test_autoload_parallel_race, "transient timeout" +exclude :test_source_location, "<[\"-\", 8]> expected but was <[]>." +exclude :test_threaded_accessing_inner_constant, "spurious; <#>" diff --git a/test/mri/excludes/TestBacktrace.rb b/test/mri/excludes/TestBacktrace.rb index 8505101a055d..39b7f211eda4 100644 --- a/test/mri/excludes/TestBacktrace.rb +++ b/test/mri/excludes/TestBacktrace.rb @@ -1,9 +1,9 @@ -exclude :test_caller_locations_label, "needs investigation" -exclude :test_caller_to_enum, "needs investigation" -exclude :test_notty_backtrace, "needs investigation" -exclude :test_caller_lev, "needs investigation" -exclude :test_caller_lev_and_n, "needs investigation" -exclude :test_caller_limit_cfunc_iseq_no_pc, "needs investigation" -exclude :test_caller_location_inspect_cfunc_iseq_no_pc, "needs investigation" -exclude :test_caller_location_path_cfunc_iseq_no_pc, "needs investigation" -exclude :test_each_backtrace_location, "<[\"/home/eregon/code/truffleruby-ws/truffleruby/test/mri/tests/lib/test/unit/testcase.rb:200:in `run_test'\"," +exclude :test_caller_lev, "NoMethodError: undefined method `map' for nil:NilClass" +exclude :test_caller_lev_and_n, "NoMethodError: undefined method `map' for nil:NilClass" +exclude :test_caller_limit_cfunc_iseq_no_pc, "<{[\"each\", \"group_by\"]=>[1]}> expected but was <{[\"group_by\", \"each\"]=>[1]}>." +exclude :test_caller_location_inspect_cfunc_iseq_no_pc, "<\"[\\\"/home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/test/mri/tests/ruby/test_backtrace.rb:218:in `times'\\\"]\"> expected but was <\"[\\\" core/enumerable.rb:107:in `block in map'\\\"]\">." +exclude :test_caller_location_path_cfunc_iseq_no_pc, "<\"/home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/test/mri/tests/ruby/test_backtrace.rb\"> expected but was <\" core/enumerable.rb\">." +exclude :test_caller_locations_label, "<\"rescue in test_caller_locations_label\"> expected but was <\"test_caller_locations_label\">." +exclude :test_caller_to_enum, "| -:3:in `foo': unhandled exception" +exclude :test_each_backtrace_location, "<[\"/home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/test/mri/tests/lib/test/unit/testcase.rb:200:in `run_test'\"," +exclude :test_notty_backtrace, "| -:7:in `bar': bar! (RuntimeError)" diff --git a/test/mri/excludes/TestBasicInstructions.rb b/test/mri/excludes/TestBasicInstructions.rb index e4c25044c686..e69de29bb2d1 100644 --- a/test/mri/excludes/TestBasicInstructions.rb +++ b/test/mri/excludes/TestBasicInstructions.rb @@ -1,3 +0,0 @@ -exclude :test_opassign2_2, "needs investigation" -exclude :test_opassign2_3, "needs investigation" -exclude :test_const_path, "NameError expected but nothing was raised." diff --git a/test/mri/excludes/TestBeginEndBlock.rb b/test/mri/excludes/TestBeginEndBlock.rb index c2f90ebc6258..d283873f8f83 100644 --- a/test/mri/excludes/TestBeginEndBlock.rb +++ b/test/mri/excludes/TestBeginEndBlock.rb @@ -1,7 +1,3 @@ -exclude :test_begininclass, "needs investigation" -exclude :test_begininmethod, "needs investigation" -exclude :test_callcc_at_exit, "needs investigation" -exclude :test_errinfo_at_exit, "needs investigation" -exclude :test_propagate_signaled, "needs investigation" -exclude :test_rescue_at_exit, "needs investigation" -exclude :test_internal_errinfo_at_exit, "needs investigation" +exclude :test_callcc_at_exit, "| continuation.rb: warning: callcc is obsolete; use Fiber instead" +exclude :test_internal_errinfo_at_exit, "NotImplementedError: fork is not available" +exclude :test_propagate_signaled, "| Exception in thread \"SIGINT handler\" java.lang.IllegalStateException: Language environment is already disposed." diff --git a/test/mri/excludes/TestBigDecimal.rb b/test/mri/excludes/TestBigDecimal.rb index 06db52d42793..af8760af2fcb 100644 --- a/test/mri/excludes/TestBigDecimal.rb +++ b/test/mri/excludes/TestBigDecimal.rb @@ -1,3 +1,3 @@ -exclude :test_power, "needs investigation" -exclude :test_cmp_data, "needs investigation" -exclude :test_s_allocate, "needs investigation" +exclude :test_power, "hangs" +exclude :test_precs, "pid 366622 killed by SIGABRT (signal 6)" +exclude :test_s_allocate, "Exception(TypeError) with message matches to /allocator undefined for BigDecimal/." diff --git a/test/mri/excludes/TestBignum_Big2str.rb b/test/mri/excludes/TestBignum_Big2str.rb new file mode 100644 index 000000000000..ff4c84541da4 --- /dev/null +++ b/test/mri/excludes/TestBignum_Big2str.rb @@ -0,0 +1,2 @@ +exclude :test_big2str_generic, "undefined symbol: rb_big2str_generic" +exclude :test_big2str_poweroftwo, "undefined symbol: rb_big2str_poweroftwo" diff --git a/test/mri/excludes/TestBignum_BigZero.rb b/test/mri/excludes/TestBignum_BigZero.rb new file mode 100644 index 000000000000..c5c017919d9b --- /dev/null +++ b/test/mri/excludes/TestBignum_BigZero.rb @@ -0,0 +1 @@ +exclude :test_equal_0, "undefined symbol: rb_big_new" diff --git a/test/mri/excludes/TestBignum_Div.rb b/test/mri/excludes/TestBignum_Div.rb new file mode 100644 index 000000000000..b9f982a9f448 --- /dev/null +++ b/test/mri/excludes/TestBignum_Div.rb @@ -0,0 +1 @@ +exclude :test_divrem_normal, "undefined symbol: rb_big_divrem_normal" diff --git a/test/mri/excludes/TestBignum_Mul.rb b/test/mri/excludes/TestBignum_Mul.rb new file mode 100644 index 000000000000..ce9a23581207 --- /dev/null +++ b/test/mri/excludes/TestBignum_Mul.rb @@ -0,0 +1,20 @@ +exclude :test_mul_balance, "undefined symbol: rb_big_mul_balance" +exclude :test_mul_balance_2x16, "undefined symbol: rb_big_mul_normal" +exclude :test_mul_balance_2x17, "undefined symbol: rb_big_mul_normal" +exclude :test_mul_gmp, "undefined symbol: rb_big_mul_normal" +exclude :test_mul_karatsuba, "undefined symbol: rb_big_mul_karatsuba" +exclude :test_mul_karatsuba_borrow, "undefined symbol: rb_big_mul_normal" +exclude :test_mul_karatsuba_carry2, "undefined symbol: rb_big_mul_normal" +exclude :test_mul_karatsuba_odd_xy, "undefined symbol: rb_big_mul_normal" +exclude :test_mul_karatsuba_odd_y, "undefined symbol: rb_big_mul_normal" +exclude :test_mul_karatsuba_x1_gt_x0, "undefined symbol: rb_big_mul_normal" +exclude :test_mul_karatsuba_x1_gt_x0_and_y1_gt_y0, "undefined symbol: rb_big_mul_normal" +exclude :test_mul_karatsuba_y1_gt_y0, "undefined symbol: rb_big_mul_normal" +exclude :test_mul_normal, "undefined symbol: rb_big_mul_normal" +exclude :test_mul_normal_max_max, "undefined symbol: rb_big_mul_normal" +exclude :test_mul_normal_zero_in_x, "undefined symbol: rb_big_mul_normal" +exclude :test_mul_normal_zero_in_y, "undefined symbol: rb_big_mul_normal" +exclude :test_mul_toom3, "undefined symbol: rb_big_mul_normal" +exclude :test_sq_fast, "undefined symbol: rb_big_sq_fast" +exclude :test_sq_fast_max2, "undefined symbol: rb_big_mul_normal" +exclude :test_sq_fast_zero_in_middle, "undefined symbol: rb_big_mul_normal" diff --git a/test/mri/excludes/TestBignum_Pack.rb b/test/mri/excludes/TestBignum_Pack.rb new file mode 100644 index 000000000000..5b2c47df97ff --- /dev/null +++ b/test/mri/excludes/TestBignum_Pack.rb @@ -0,0 +1,19 @@ +exclude :test_numbits_2comp, "undefined symbol: rb_absint_numwords" +exclude :test_pack2comp_overflow, "<[-2, \"\\x0F\"]> expected but was <[-1, \"\\xEF\"]>." +exclude :test_pack_argument_check, "ArgumentError expected but nothing was raised." +exclude :test_pack_fixed_buffer, "<[1, \"\\x00\\x01\"]> expected but was <[1, \"\\x01\\x00\"]>." +exclude :test_pack_nail, "<[1, \"\\x01\\x00\\x00\\x00\\x01\\x01\"]> expected but was <[1, \"#\\x00\\x00\\x00\\x00\\x00\"]>." +exclude :test_pack_overflow, "<[-2, \"\\x01\"]> expected but was <[-1, \"\\x11\"]>." +exclude :test_pack_wordsize, "<[1, \"\\x00\\x01\"]> expected but was <[1, \"\\x01\\x00\"]>." +exclude :test_unpack2comp_negative_single_byte, "NotImplementedError: The C API function rb_integer_unpack is not implemented yet on TruffleRuby" +exclude :test_unpack2comp_negative_zero, "NotImplementedError: The C API function rb_integer_unpack is not implemented yet on TruffleRuby" +exclude :test_unpack2comp_sequence_of_ff, "NotImplementedError: The C API function rb_integer_unpack is not implemented yet on TruffleRuby" +exclude :test_unpack2comp_single_byte, "NotImplementedError: The C API function rb_integer_unpack is not implemented yet on TruffleRuby" +exclude :test_unpack_argument_check, "[ArgumentError] exception expected, not #." +exclude :test_unpack_nail, "NotImplementedError: The C API function rb_integer_unpack is not implemented yet on TruffleRuby" +exclude :test_unpack_native_endian, "NotImplementedError: The C API function rb_integer_unpack is not implemented yet on TruffleRuby" +exclude :test_unpack_orders, "NotImplementedError: The C API function rb_integer_unpack is not implemented yet on TruffleRuby" +exclude :test_unpack_sign, "NotImplementedError: The C API function rb_integer_unpack is not implemented yet on TruffleRuby" +exclude :test_unpack_wordorder_and_endian, "NotImplementedError: The C API function rb_integer_unpack is not implemented yet on TruffleRuby" +exclude :test_unpack_wordsize, "NotImplementedError: The C API function rb_integer_unpack is not implemented yet on TruffleRuby" +exclude :test_unpack_zero, "NotImplementedError: The C API function rb_integer_unpack is not implemented yet on TruffleRuby" diff --git a/test/mri/excludes/TestBignum_Str2big.rb b/test/mri/excludes/TestBignum_Str2big.rb new file mode 100644 index 000000000000..15eaf1bbab23 --- /dev/null +++ b/test/mri/excludes/TestBignum_Str2big.rb @@ -0,0 +1,3 @@ +exclude :test_str2big_karatsuba, "undefined symbol: rb_str2big_karatsuba" +exclude :test_str2big_normal, "undefined symbol: rb_str2big_normal" +exclude :test_str2big_poweroftwo, "undefined symbol: rb_str2big_poweroftwo" diff --git a/test/mri/excludes/TestBugReporter.rb b/test/mri/excludes/TestBugReporter.rb index 5c4c0503de19..3f5746423a7e 100644 --- a/test/mri/excludes/TestBugReporter.rb +++ b/test/mri/excludes/TestBugReporter.rb @@ -1 +1 @@ -exclude :test_bug_reporter_add, "needs investigation" +exclude :test_bug_reporter_add, "| core/kernel.rb:269:in `require': cannot load such file -- c/bug_reporter (LoadError)" diff --git a/test/mri/excludes/TestBundlerGem.rb b/test/mri/excludes/TestBundlerGem.rb new file mode 100644 index 000000000000..9193233c84d1 --- /dev/null +++ b/test/mri/excludes/TestBundlerGem.rb @@ -0,0 +1,7 @@ +exclude :test_auto_activation_of_specific_gemdeps_file, "Gem::GemNotFoundException: can't find gem bundler (= 2.4.19) with executable bundle" +exclude :test_auto_activation_of_used_gemdeps_file, "Gem::GemNotFoundException: can't find gem bundler (= 2.4.19) with executable bundle" +exclude :test_self_find_files_with_gemfile, "Gem::GemNotFoundException: can't find gem bundler (= 2.4.19) with executable bundle" +exclude :test_self_use_gemdeps, "Gem::GemNotFoundException: can't find gem bundler (= 2.4.19) with executable bundle" +exclude :test_use_gemdeps, "Gem::GemNotFoundException: can't find gem bundler (= 2.4.19) with executable bundle" +exclude :test_use_gemdeps_automatic, "Gem::GemNotFoundException: can't find gem bundler (= 2.4.19) with executable bundle" +exclude :test_use_gemdeps_specific, "Gem::GemNotFoundException: can't find gem bundler (= 2.4.19) with executable bundle" diff --git a/test/mri/excludes/TestCESU8.rb b/test/mri/excludes/TestCESU8.rb index d17160622636..e69de29bb2d1 100644 --- a/test/mri/excludes/TestCESU8.rb +++ b/test/mri/excludes/TestCESU8.rb @@ -1,2 +0,0 @@ -exclude :test_cesu8_ord, "needs investigation" -exclude :test_cesu8_valid_encoding, "needs investigation" diff --git a/test/mri/excludes/TestCSVEncodings.rb b/test/mri/excludes/TestCSVEncodings.rb index 7b31298cc9c8..e69de29bb2d1 100644 --- a/test/mri/excludes/TestCSVEncodings.rb +++ b/test/mri/excludes/TestCSVEncodings.rb @@ -1,9 +0,0 @@ -exclude :test_encoding_is_upgraded_during_writing_as_needed, "needs investigation" -exclude :test_encoding_is_upgraded_for_ascii_content_during_writing_as_needed, "needs investigation" -exclude :test_explicit_encoding, "needs investigation" -exclude :test_row_separator_detection_with_invalid_encoding, "needs investigation" -exclude :test_foreach_allows_you_to_set_encodings, "needs investigation" -exclude :test_open_allows_you_to_set_encodings, "needs investigation" -exclude :test_read_allows_you_to_set_encodings, "needs investigation" -exclude :test_read_with_default_encoding, "needs investigation" -exclude :test_encoding_with_default_internal, "needs investigation" diff --git a/test/mri/excludes/TestCSVInterfaceRead.rb b/test/mri/excludes/TestCSVInterfaceRead.rb index 06fcee288fd7..35e8d22b8c80 100644 --- a/test/mri/excludes/TestCSVInterfaceRead.rb +++ b/test/mri/excludes/TestCSVInterfaceRead.rb @@ -1,6 +1,6 @@ -exclude :test_open_encoding_nonexistent, "needs investigation" -exclude :test_open_with_invalid_replace, "needs investigation" -exclude :test_open_with_invalid_replace_and_replace_string, "needs investigation" -exclude :test_open_with_undef_replace, "needs investigation" -exclude :test_open_with_undef_replace_and_replace_string, "needs investigation" +exclude :test_open_encoding_nonexistent, "ArgumentError: unknown encoding name - nonexistent" +exclude :test_open_with_invalid_replace, "Encoding::InvalidByteSequenceError: \"\\x82\" on UTF-8" +exclude :test_open_with_invalid_replace_and_replace_string, "Encoding::InvalidByteSequenceError: \"\\x82\" on UTF-8" exclude :test_open_with_newline, "CSV::MalformedCSVError: Unquoted fields do not allow new line <\"\\n\"> in line 2." +exclude :test_open_with_undef_replace, "Encoding::UndefinedConversionError: \"\\xC2\\xB7\" to Windows-31J in conversion from UTF-8 to Windows-31J" +exclude :test_open_with_undef_replace_and_replace_string, "Encoding::UndefinedConversionError: \"\\xC2\\xB7\" to Windows-31J in conversion from UTF-8 to Windows-31J" diff --git a/test/mri/excludes/TestCSVParseInvalid.rb b/test/mri/excludes/TestCSVParseInvalid.rb index 47c54915d0be..419f7f56c9d3 100644 --- a/test/mri/excludes/TestCSVParseInvalid.rb +++ b/test/mri/excludes/TestCSVParseInvalid.rb @@ -1,2 +1,2 @@ -exclude :test_ignore_invalid_line, "needs investigation" +exclude :test_ignore_invalid_line, "FiberError: attempt to resume a terminated fiber" exclude :test_ignore_invalid_line_cr_lf, "FiberError: attempt to resume a terminated fiber" diff --git a/test/mri/excludes/TestCSVWriteGeneralGenerate.rb b/test/mri/excludes/TestCSVWriteGeneralGenerate.rb index e27bc0977bc6..29596db6dcdf 100644 --- a/test/mri/excludes/TestCSVWriteGeneralGenerate.rb +++ b/test/mri/excludes/TestCSVWriteGeneralGenerate.rb @@ -1,3 +1,3 @@ -exclude :test_encoding_euc_jp, "needs investigation" -exclude :test_encoding_utf8, "needs investigation" -exclude :test_with_default_internal, "needs investigation" +exclude :test_encoding_euc_jp, "<\"\\x{A4A2},\\x{A4A4},\\x{A4A6}\\n\"> expected but was <\"\\xA4\\xA2,\\xA4\\xA4,\\xA4\\xA6\\n\">." +exclude :test_encoding_utf8, "<\"あ,い,う\\n\"> expected but was <\"\\xE3\\x81\\x82,\\xE3\\x81\\x84,\\xE3\\x81\\x86\\n\">." +exclude :test_with_default_internal, "<\"\\x{A4A2},\\x{A4A4},\\x{A4A6}\\n\"> expected but was <\"\\xA4\\xA2,\\xA4\\xA4,\\xA4\\xA6\\n\">." diff --git a/test/mri/excludes/TestCall.rb b/test/mri/excludes/TestCall.rb index 0c98ce3abec1..e69de29bb2d1 100644 --- a/test/mri/excludes/TestCall.rb +++ b/test/mri/excludes/TestCall.rb @@ -1,2 +0,0 @@ -exclude :test_call_block_order, "needs investigation" -exclude :test_safe_call, "Exception raised:" diff --git a/test/mri/excludes/TestCase.rb b/test/mri/excludes/TestCase.rb index ff4e30ab9dbc..e69de29bb2d1 100644 --- a/test/mri/excludes/TestCase.rb +++ b/test/mri/excludes/TestCase.rb @@ -1 +0,0 @@ -exclude :test_case, "needs investigation" diff --git a/test/mri/excludes/TestCaseMappingPreliminary.rb b/test/mri/excludes/TestCaseMappingPreliminary.rb index 330ba19eca55..fde74f212f97 100644 --- a/test/mri/excludes/TestCaseMappingPreliminary.rb +++ b/test/mri/excludes/TestCaseMappingPreliminary.rb @@ -1,5 +1,5 @@ -exclude :test_cherokee, "needs investigation" -exclude :test_fold_option, "needs investigation" -exclude :test_georgian_capitalize, "needs investigation" -exclude :test_swapcase, "needs investigation" -exclude :test_titlecase, "needs investigation" +exclude :test_cherokee, "<\"ᎠᎡᎢᎣᎤᎥᎦᎧᎨᎩ\"> expected but was <\"ꭰꭱꭲꭳꭴꭵꭶꭷꭸꭹ\">." +exclude :test_fold_option, " expected but was <\"ss\">." +exclude :test_georgian_capitalize, "<\"აბგ\"> expected but was <\"Აბგ\">." +exclude :test_swapcase, "<\"dZ\"> expected but was <\"Dz\">." +exclude :test_titlecase, "<\"dz dž lj nj\"> expected but was <\"Dz Dž Lj Nj\">." diff --git a/test/mri/excludes/TestCaseOptions.rb b/test/mri/excludes/TestCaseOptions.rb index dd755895a752..8fab2ae4a038 100644 --- a/test/mri/excludes/TestCaseOptions.rb +++ b/test/mri/excludes/TestCaseOptions.rb @@ -1,2 +1,2 @@ -exclude :test_operation_specific, "needs investigation" -exclude :test_options_okay, "needs investigation" +exclude :test_operation_specific, "Exception raised: <#>" +exclude :test_options_okay, "Exception raised: <#>" diff --git a/test/mri/excludes/TestClass.rb b/test/mri/excludes/TestClass.rb index b0ba770c4f8a..74ef26014329 100644 --- a/test/mri/excludes/TestClass.rb +++ b/test/mri/excludes/TestClass.rb @@ -1,17 +1,9 @@ -exclude :test_cannot_reinitialize_class_with_initialize_copy, "needs investigation" -exclude :test_check_inheritable, "needs investigation" -exclude :test_invalid_break_from_class_definition, "needs investigation" -exclude :test_invalid_retry_from_class_definition, "needs investigation" -exclude :test_invalid_superclass, "needs investigation" -exclude :test_method_redefinition, "needs investigation" -exclude :test_redefine_private_class, "needs investigation" -exclude :test_redefinition_mismatch, "needs investigation" -exclude :test_singleton_class_of_frozen_object, "needs investigation" -exclude :test_uninitialized, "needs investigation" -exclude :test_visibility_inside_method, "needs investigation" -exclude :test_clone_when_method_exists_on_singleton_class_of_singleton_class, "needs investigation" -exclude :test_constant_access_from_method_in_cloned_class, "needs investigation" -exclude :test_invalid_yield_from_class_definition, "needs investigation" -exclude :test_subclass_gc, "NoMethodError: undefined method `subclasses' for #" -exclude :test_subclass_gc_stress, "NoMethodError: undefined method `subclasses' for #" -exclude :test_subclasses, "NoMethodError: undefined method `subclasses' for #" +exclude :test_check_inheritable, "TypeError expected but nothing was raised." +exclude :test_clone_when_method_exists_on_singleton_class_of_singleton_class, "NoMethodError: undefined method `s2_method' for #:0x5c8>>" +exclude :test_constant_access_from_method_in_cloned_class, "NameError: uninitialized constant TestClass::CloneTest::TEST" +exclude :test_invalid_superclass, "Expected Exception(TypeError) was raised, but the message doesn't match. Expected /M🗿/ to match \"superclass must be a Class\"." +exclude :test_method_redefinition, "Expected /:190: warning: method redefined; discarding old foo/ to match \"\"." +exclude :test_redefine_private_class, "NameError expected but nothing was raised." +exclude :test_redefinition_mismatch, "Expected \"1:Integer is not a class\" to include \"/home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/test/mri/tests/ruby/test_class.rb:698: previous definition\"." +exclude :test_uninitialized, "Exception(TypeError) with message matches to /prohibited/." +exclude :test_visibility_inside_method, "expected: /calling private without arguments inside a method may not have the intended effect/" diff --git a/test/mri/excludes/TestComparable.rb b/test/mri/excludes/TestComparable.rb index 7b8f14b1d7ab..fbaa2326fdae 100644 --- a/test/mri/excludes/TestComparable.rb +++ b/test/mri/excludes/TestComparable.rb @@ -1 +1 @@ -exclude :test_clamp_with_range, "needs investigation" +exclude :test_clamp_with_range, "ArgumentError: min argument must be smaller than max argument" diff --git a/test/mri/excludes/TestConst.rb b/test/mri/excludes/TestConst.rb index 54c31ed34f66..6e9656f8ad8c 100644 --- a/test/mri/excludes/TestConst.rb +++ b/test/mri/excludes/TestConst.rb @@ -1,2 +1,2 @@ -exclude :test_redefinition, "needs investigation" -exclude :test_toplevel_lookup, "needs investigation" +exclude :test_redefinition, "expected: \"/home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/test/mri/tests/ruby/test_const.rb:77: warning: already initialized constant #::X定数\\n\" +" +exclude :test_toplevel_lookup, "[Feature #11547]." diff --git a/test/mri/excludes/TestContinuation.rb b/test/mri/excludes/TestContinuation.rb index e39809373f75..6b590e5da451 100644 --- a/test/mri/excludes/TestContinuation.rb +++ b/test/mri/excludes/TestContinuation.rb @@ -1,4 +1,4 @@ -exclude :test_call, "needs investigation" -exclude :test_check_localvars, "needs investigation" -exclude :test_create, "needs investigation" -exclude :test_tracing_with_thread_set_trace_func, "needs investigation" +exclude :test_call, "ArgumentError: wrong number of arguments (given 1, expected 0)" +exclude :test_check_localvars, "RuntimeError: Continuations are unsupported on TruffleRuby" +exclude :test_create, "ArgumentError: wrong number of arguments (given 1, expected 0)" +exclude :test_tracing_with_thread_set_trace_func, "NoMethodError: private method `set_trace_func' called for #" diff --git a/test/mri/excludes/TestCoverage.rb b/test/mri/excludes/TestCoverage.rb index 793299650bda..3ffa2b724cd8 100644 --- a/test/mri/excludes/TestCoverage.rb +++ b/test/mri/excludes/TestCoverage.rb @@ -3,33 +3,31 @@ exclude :test_branch_coverage_for_pattern_matching, "needs investigation" exclude :test_branch_coverage_for_safe_method_invocation, "needs investigation" exclude :test_branch_coverage_for_while_statement, "needs investigation" +exclude :test_branch_coverage_in_ensure_clause, "needs investigation" exclude :test_clear_with_branches, "needs investigation" exclude :test_clear_with_lines, "needs investigation" exclude :test_clear_with_methods, "needs investigation" exclude :test_clear_with_oneshot_lines, "needs investigation" +exclude :test_coverage_ensure_if_return, "needs investigation" +exclude :test_coverage_in_main_script, "| /home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/test/mri/tests/coverage/main.rb:1:in `
': undefined method `[]' for nil:NilClass (NoMethodError)" exclude :test_coverage_optimized_branch, "needs investigation" +exclude :test_coverage_state, "| -:1:in `
': undefined method `state' for Coverage:Module (NoMethodError)" +exclude :test_coverage_supported, "Failed assertion, no message given." +exclude :test_coverage_suspendable, "| -:1:in `
': undefined method `setup' for Coverage:Module (NoMethodError)" +exclude :test_double_resume, "| -:2:in `
': undefined method `resume' for Coverage:Module (NoMethodError)" +exclude :test_double_suspend, "| -:1:in `
': undefined method `setup' for Coverage:Module (NoMethodError)" exclude :test_eval, "needs investigation" +exclude :test_eval_coverage, "| -:10:in `
': undefined method `[]' for nil:NilClass (NoMethodError)" exclude :test_line_coverage_for_multiple_lines, "needs investigation" +exclude :test_line_stub, "NoMethodError: undefined method `line_stub' for Coverage:Module" exclude :test_method_coverage, "needs investigation" exclude :test_method_coverage_for_alias, "needs investigation" exclude :test_method_coverage_for_define_method, "needs investigation" exclude :test_method_coverage_for_singleton_class, "needs investigation" exclude :test_oneshot_line_coverage, "needs investigation" exclude :test_restarting_coverage, "needs investigation" -exclude :test_stop_wrong_peephole_optimization, "needs investigation" -exclude :test_line_stub, "needs investigation" -exclude :test_branch_coverage_in_ensure_clause, "needs investigation" -exclude :test_double_resume, "pid 271370 exit 1" -exclude :test_coverage_with_asan, "pid 271410 exit 1" -exclude :test_coverage_state, "pid 271430 exit 1" -exclude :test_result_after_suspend, "pid 271450 exit 1" -exclude :test_result_without_resume, "pid 271490 exit 1" -exclude :test_resume_without_setup, "pid 271530 exit 1" -exclude :test_suspend_without_setup, "pid 271550 exit 1" -exclude :test_coverage_suspendable, "pid 271590 exit 1" -exclude :test_double_suspend, "pid 271610 exit 1" -exclude :test_coverage_supported, "NoMethodError: undefined method `supported?' for Coverage:Module" -exclude :test_eval_coverage, "pid 28392 exit 1" -exclude :test_tag_break_with_branch_coverage, "pid 28394 exit 1" -exclude :test_coverage_ensure_if_return, "pid 28398 exit 1" -exclude :test_coverage_in_main_script, "pid 28399 exit 1" +exclude :test_result_after_suspend, "| -:2:in `
': undefined method `suspend' for Coverage:Module (NoMethodError)" +exclude :test_result_without_resume, "| -:1:in `
': undefined method `setup' for Coverage:Module (NoMethodError)" +exclude :test_resume_without_setup, "| -:1:in `
': undefined method `resume' for Coverage:Module (NoMethodError)" +exclude :test_suspend_without_setup, "| -:1:in `
': undefined method `suspend' for Coverage:Module (NoMethodError)" +exclude :test_tag_break_with_branch_coverage, "needs investigation" diff --git a/test/mri/excludes/TestDRbObjectTimerIdConv.rb b/test/mri/excludes/TestDRbObjectTimerIdConv.rb index d2b63ccab107..84577bb2d74e 100644 --- a/test/mri/excludes/TestDRbObjectTimerIdConv.rb +++ b/test/mri/excludes/TestDRbObjectTimerIdConv.rb @@ -1 +1 @@ -exclude :test_DRbObject_id_dereference, "needs investigation" +exclude :test_DRbObject_id_dereference, "ArgumentError: wrong number of arguments (given 1, expected 2)" diff --git a/test/mri/excludes/TestDateConv.rb b/test/mri/excludes/TestDateConv.rb index b6f42e33cf3e..b091b8553904 100644 --- a/test/mri/excludes/TestDateConv.rb +++ b/test/mri/excludes/TestDateConv.rb @@ -1 +1 @@ -exclude :test_to_time__from_datetime, "needs investigation" +exclude :test_to_time__from_datetime, "<[2004, 9, 19, 1, 2, 3, (456789123456789123/1000000000000000000)]> expected but was <[2004, 9, 19, 1, 2, 3, (456789123/1000000000)]>." diff --git a/test/mri/excludes/TestDateMarshal.rb b/test/mri/excludes/TestDateMarshal.rb index 525b0537dd5d..e69de29bb2d1 100644 --- a/test/mri/excludes/TestDateMarshal.rb +++ b/test/mri/excludes/TestDateMarshal.rb @@ -1 +0,0 @@ -exclude :test_memsize, "needs investigation" diff --git a/test/mri/excludes/TestDateParse.rb b/test/mri/excludes/TestDateParse.rb index fa6bb5f60328..0c93a4e60e97 100644 --- a/test/mri/excludes/TestDateParse.rb +++ b/test/mri/excludes/TestDateParse.rb @@ -1 +1 @@ -exclude :test__parse_too_long_year, "<100000> expected but was" +exclude :test__parse_too_long_year, "<100000> expected but was ." diff --git a/test/mri/excludes/TestDefined.rb b/test/mri/excludes/TestDefined.rb index be95a9c00d62..c0b9a3977a4d 100644 --- a/test/mri/excludes/TestDefined.rb +++ b/test/mri/excludes/TestDefined.rb @@ -1,8 +1,4 @@ -exclude :test_defined_impl_specific, "needs investigation" -exclude :test_defined_matchdata, "needs investigation" -exclude :test_super_toplevel, "needs investigation" -exclude :test_top_level_constant_not_defined, "needs investigation" -exclude :test_respond_to, "needs investigation" -exclude :test_autoloaded_noload, "<\"constant\"> expected but was" -exclude :test_defined_method_single_call, "<2> expected but was" -exclude :test_autoloaded_subclass, "[ruby-core:35509]." +exclude :test_defined_matchdata, " expected but was <\"global-variable\">." +exclude :test_defined_method_single_call, "<2> expected but was <3>." +exclude :test_respond_to, "expected: /deprecated method signature.*\\n.*respond_to\\? is defined here/" +exclude :test_top_level_constant_not_defined, "Expected \"constant\" to be nil." diff --git a/test/mri/excludes/TestDigestExtend.rb b/test/mri/excludes/TestDigestExtend.rb index c58cf14fd01b..8176cacec039 100644 --- a/test/mri/excludes/TestDigestExtend.rb +++ b/test/mri/excludes/TestDigestExtend.rb @@ -1 +1 @@ -exclude :test_new, "needs investigation" +exclude :test_new, "<\"cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e\"> expected but was <\"4dff4ea340f0a823f15d3f4f01ab62eae0e5da579ccb851f8db9dfe84c58b2b37b89903a740e1ee172da793a6e79d560e5f7f9bd058a12a280433ed6fa46510a\">." diff --git a/test/mri/excludes/TestDir.rb b/test/mri/excludes/TestDir.rb index f326a65a0ad9..b71be3fe5988 100644 --- a/test/mri/excludes/TestDir.rb +++ b/test/mri/excludes/TestDir.rb @@ -1,12 +1,8 @@ -exclude :test_glob, "needs investigation" -exclude :test_chdir, "needs investigation" -exclude :test_glob_base, "needs investigation" -exclude :test_glob_base_dir, "needs investigation" -exclude :test_glob_cases, "fails on macOS in CI" -exclude :test_glob_gc_for_fd, "needs investigation" -exclude :test_glob_too_may_open_files, "needs investigation" -exclude :test_seek, "fails on macOS in CI" -exclude :test_unknown_keywords, "needs investigation" -exclude :test_chdir_conflict, "needs investigation" -exclude :test_foreach, "needs investigation" -exclude :test_glob_ignore_casefold_invalid_encoding, "Errno::EILSEQ: Invalid or incomplete multibyte or wide character - /Users/graal/slave/e/.tmp/__test_dir__20221104-21437-2t3gb2/�a123" +exclude :test_chdir, "[ArgumentError] exception expected, not #." +exclude :test_chdir_conflict, "Expected 0 to be an instance of RuntimeError, not Integer." +exclude :test_glob, "<[\"/tmp/__test_dir__20240905-75952-7c94h1/.\"," +exclude :test_glob_cases, "Dir.glob should return the filename with actual cases on the filesystem." if RUBY_PLATFORM.include?('darwin') +exclude :test_glob_gc_for_fd, "Expected [] to not be empty." +exclude :test_glob_ignore_casefold_invalid_encoding, "Errno::EILSEQ: Invalid or incomplete multibyte or wide character - /private/var/folders/gr/3kff5w4s7779h6ycnt4gxfgm0000gn/T/__test_dir__20240910-84824-6ncred/�a123" if RUBY_PLATFORM.include?('darwin') +exclude :test_glob_too_may_open_files, "Errno::EMFILE expected but nothing was raised." +exclude :test_unknown_keywords, "ArgumentError expected but nothing was raised." diff --git a/test/mri/excludes/TestDir_M17N.rb b/test/mri/excludes/TestDir_M17N.rb index 7393d3ad5bae..3e35a6e9b410 100644 --- a/test/mri/excludes/TestDir_M17N.rb +++ b/test/mri/excludes/TestDir_M17N.rb @@ -1,12 +1,12 @@ -exclude :test_filename_as_bytes_extutf8, "needs investigation" -exclude :test_filename_extutf8_inteucjp_representable, "needs investigation" -exclude :test_glob_warning_match_all, "needs investigation" -exclude :test_glob_warning_match_dir, "needs investigation" -exclude :test_glob_warning_opendir, "needs investigation" -exclude :test_filename_bytes_euc_jp, "needs investigation" -exclude :test_filename_euc_jp, "needs investigation" -exclude :test_filename_ext_euc_jp_and_int_utf_8, "needs investigation" -exclude :test_filename_extutf8_inteucjp_unrepresentable, "needs investigation" -exclude :test_filename_extutf8_invalid, "needs investigation" -exclude :test_glob_encoding, "needs investigation" -exclude :test_inspect_nonascii, "needs investigation" +exclude :test_filename_as_bytes_extutf8, "Exception raised: <#>" if RUBY_PLATFORM.include?('darwin') +exclude :test_filename_bytes_euc_jp, "Errno::EILSEQ: Invalid or incomplete multibyte or wide character - ��" if RUBY_PLATFORM.include?('darwin') +exclude :test_filename_euc_jp, "Errno::EILSEQ: Invalid or incomplete multibyte or wide character - ��" if RUBY_PLATFORM.include?('darwin') +exclude :test_filename_ext_euc_jp_and_int_utf_8, "Errno::EILSEQ: Invalid or incomplete multibyte or wide character - ��" if RUBY_PLATFORM.include?('darwin') +exclude :test_filename_extutf8_inteucjp_representable, "Exception raised: <#>" +exclude :test_filename_extutf8_inteucjp_unrepresentable, "Errno::ENOENT: No such file or directory - ��" +exclude :test_filename_extutf8_invalid, "NameError: uninitialized constant TestDir_M17N::Bug" +exclude :test_glob_encoding, "NameError: uninitialized constant TestDir_M17N::Bug" +exclude :test_glob_warning_match_all, "expected: /ΑΒΓΔΕ/" +exclude :test_glob_warning_match_dir, "expected: /ΑΒΓΔΕ/" +exclude :test_glob_warning_opendir, "expected: /ΑΒΓΔΕ/" +exclude :test_inspect_nonascii, "Errno::EILSEQ: Invalid or incomplete multibyte or wide character - ��" if RUBY_PLATFORM.include?('darwin') diff --git a/test/mri/excludes/TestERBCore.rb b/test/mri/excludes/TestERBCore.rb index 717614233bc4..e69de29bb2d1 100644 --- a/test/mri/excludes/TestERBCore.rb +++ b/test/mri/excludes/TestERBCore.rb @@ -1 +0,0 @@ -exclude :test_invalid_trim_mode, "needs investigation" diff --git a/test/mri/excludes/TestEncoding.rb b/test/mri/excludes/TestEncoding.rb index 23f11dbdd45a..7ce43981f110 100644 --- a/test/mri/excludes/TestEncoding.rb +++ b/test/mri/excludes/TestEncoding.rb @@ -1,6 +1,5 @@ -exclude :test_errinfo_after_autoload, "needs investigation" -exclude :test_nonascii_library_path, "needs investigation" -exclude :test_replicate, "needs investigation" -exclude :test_singleton, "needs investigation" -exclude :test_extra_encoding, "needs investigation" -exclude :test_exceed_encoding_table_size, "Failed assertion, no message given." +exclude :test_errinfo_after_autoload, "Expected Exception(SyntaxError) was raised, but the message doesn't match. Expected /unknown regexp option - Q/ to match \"(eval):1: unknown regexp option: Q\"." +exclude :test_extra_encoding, "ArgumentError expected but nothing was raised." +exclude :test_nonascii_library_path, "assert_separately failed with error message" +exclude :test_replicate, "ArgumentError expected but nothing was raised." +exclude :test_singleton, "TypeError expected but nothing was raised." diff --git a/test/mri/excludes/TestEncodingConverter.rb b/test/mri/excludes/TestEncodingConverter.rb index 489fbef179c1..8ec7eb3a540f 100644 --- a/test/mri/excludes/TestEncodingConverter.rb +++ b/test/mri/excludes/TestEncodingConverter.rb @@ -1,36 +1,36 @@ -exclude :test_invalid_replace2, "needs investigation" -exclude :test_nil_destination_bytesize_with_nonnil_byteoffset, "needs investigation" -exclude :test_output_region, "needs investigation" -exclude :test_s_new_fail, "needs investigation" -exclude :test_search_convpath, "needs investigation" -exclude :test_accumulate_dst1, "needs investigation" -exclude :test_accumulate_dst2, "needs investigation" -exclude :test_convpath, "needs investigation" -exclude :test_cr_newline, "needs investigation" -exclude :test_cr_newline2, "needs investigation" -exclude :test_crlf_newline, "needs investigation" -exclude :test_crlf_newline2, "needs investigation" -exclude :test_errors, "needs investigation" -exclude :test_eucjp_to_utf8, "needs investigation" -exclude :test_invalid, "needs investigation" -exclude :test_invalid2, "needs investigation" -exclude :test_invalid3, "needs investigation" -exclude :test_invalid_utf16be, "needs investigation" -exclude :test_invalid_utf16le, "needs investigation" -exclude :test_iso2022jp, "needs investigation" -exclude :test_newline_option, "needs investigation" -exclude :test_no_universal_newline1, "needs investigation" -exclude :test_no_universal_newline2, "needs investigation" -exclude :test_noconv, "needs investigation" -exclude :test_noconv_after_output, "needs investigation" -exclude :test_noconv_insert_output, "needs investigation" -exclude :test_noconv_partial, "needs investigation" -exclude :test_output_iso2022jp, "needs investigation" -exclude :test_s_new_convpath, "needs investigation" -exclude :test_universal_newline2, "needs investigation" -exclude :test_universal_newline3, "needs investigation" -exclude :test_xml_escape_attr_content, "needs investigation" -exclude :test_xml_escape_attr_quote, "needs investigation" -exclude :test_xml_escape_text, "needs investigation" -exclude :test_xml_hasharg, "needs investigation" -exclude :test_putback2, "UTF-16 string byte length is not a multiple of 2" +exclude :test_accumulate_dst1, "TypeError: wrong argument type NilClass (expected Hash)" +exclude :test_accumulate_dst2, "TypeError: wrong argument type NilClass (expected Hash)" +exclude :test_convpath, "ArgumentError: unknown encoding name - " +exclude :test_cr_newline, "TypeError: wrong argument type NilClass (expected Hash)" +exclude :test_cr_newline2, "ArgumentError: unknown encoding name - " +exclude :test_crlf_newline, "TypeError: wrong argument type NilClass (expected Hash)" +exclude :test_crlf_newline2, "ArgumentError: unknown encoding name - " +exclude :test_default_external, "very slow: 98.25s on truffleruby 24.2.0-dev-b555f590, like ruby 3.2.4, GraalVM CE JVM [x86_64-linux] with AMD Ryzen 7 3700X 8-Core Processor (16 vCPUs)" +exclude :test_errors, "TypeError: wrong argument type NilClass (expected Hash)" +exclude :test_eucjp_to_utf8, "TypeError: wrong argument type NilClass (expected Hash)" +exclude :test_invalid, "TypeError: wrong argument type NilClass (expected Hash)" +exclude :test_invalid2, "TypeError: wrong argument type NilClass (expected Hash)" +exclude :test_invalid3, "TypeError: wrong argument type NilClass (expected Hash)" +exclude :test_invalid_replace2, "ArgumentError expected but nothing was raised." +exclude :test_invalid_utf16be, "Encoding::CompatibilityError: incompatible character encodings: UTF-16BE and UTF-8" +exclude :test_invalid_utf16le, "Encoding::CompatibilityError: incompatible character encodings: UTF-16LE and UTF-8" +exclude :test_iso2022jp, "TypeError: wrong argument type NilClass (expected Hash)" +exclude :test_newline_option, "ArgumentError: unknown encoding name - " +exclude :test_nil_destination_bytesize_with_nonnil_byteoffset, "<\"abc。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。\"> expected but was <\"abc\\xA1。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。\">." +exclude :test_no_universal_newline1, "TypeError: wrong argument type NilClass (expected Hash)" +exclude :test_no_universal_newline2, "ArgumentError: unknown encoding name - " +exclude :test_noconv, "ArgumentError: unknown encoding name - " +exclude :test_noconv_after_output, "ArgumentError: unknown encoding name - " +exclude :test_noconv_insert_output, "ArgumentError: unknown encoding name - " +exclude :test_noconv_partial, "ArgumentError: unknown encoding name - " +exclude :test_output_iso2022jp, "NoMethodError: undefined method `insert_output' for #" +exclude :test_output_region, "<\"a\"> expected but was <\"ba\">." +exclude :test_putback2, "ArgumentError: UTF-16 string byte length is not a multiple of 2" +exclude :test_s_new_convpath, "ArgumentError: wrong number of arguments (given 1, expected 2..3)" +exclude :test_s_new_fail, "[Encoding::ConverterNotFoundError] exception expected, not #." +exclude :test_search_convpath, "<[[#, #]," +exclude :test_universal_newline2, "ArgumentError: unknown encoding name - " +exclude :test_universal_newline3, "ArgumentError: unknown encoding name - " +exclude :test_xml_escape_attr_content, "ArgumentError: unknown encoding name - " +exclude :test_xml_escape_attr_quote, "ArgumentError: unknown encoding name - " +exclude :test_xml_escape_text, "ArgumentError: unknown encoding name - " diff --git a/test/mri/excludes/TestEnumerable.rb b/test/mri/excludes/TestEnumerable.rb index d5020d0e1d5f..a4f5537d10f7 100644 --- a/test/mri/excludes/TestEnumerable.rb +++ b/test/mri/excludes/TestEnumerable.rb @@ -1,33 +1,22 @@ -exclude :test_all_with_unused_block, "needs investigation" -exclude :test_any_with_unused_block, "needs investigation" -exclude :test_callcc, "needs investigation" -exclude :test_first, "needs investigation" -exclude :test_none_with_unused_block, "needs investigation" -exclude :test_one_with_unused_block, "needs investigation" -exclude :test_to_h, "needs investigation" -exclude :test_to_h_block, "needs investigation" -exclude :test_cycle, "needs investigation" -exclude :test_detect, "needs investigation" -exclude :test_drop_while, "needs investigation" -exclude :test_each_entry, "needs investigation" -exclude :test_find, "needs investigation" -exclude :test_find_all, "needs investigation" -exclude :test_grep, "needs investigation" -exclude :test_grep_v, "needs investigation" -exclude :test_group_by, "needs investigation" -exclude :test_max_by, "needs investigation" -exclude :test_min_by, "needs investigation" -exclude :test_minmax_by, "needs investigation" -exclude :test_partition, "needs investigation" -exclude :test_reject, "needs investigation" -exclude :test_select, "needs investigation" -exclude :test_sort_by, "needs investigation" -exclude :test_take_while, "needs investigation" -exclude :test_zip, "needs investigation" -exclude :test_grep_optimization, "needs investigation" -exclude :test_inject, "needs investigation" +exclude :test_callcc, "Expected Exception(RuntimeError) was raised, but the message doesn't match. Expected /reentered/ to match \"Continuations are unsupported on TruffleRuby\"." +exclude :test_cycle, "ArgumentError: wrong number of arguments (given 1, expected 2)" +exclude :test_detect, "ArgumentError: wrong number of arguments (given 1, expected 2)" +exclude :test_drop_while, "ArgumentError: wrong number of arguments (given 1, expected 2)" +exclude :test_each_entry, "ArgumentError: wrong number of arguments (given 1, expected 2)" +exclude :test_find, "ArgumentError: wrong number of arguments (given 1, expected 2)" +exclude :test_find_all, "ArgumentError: wrong number of arguments (given 1, expected 2)" +exclude :test_first, "| " +exclude :test_grep, "ArgumentError: wrong number of arguments (given 1, expected 2)" +exclude :test_grep_optimization, "TypeError: can't define singleton" +exclude :test_grep_v, "ArgumentError: wrong number of arguments (given 1, expected 2)" +exclude :test_group_by, "ArgumentError: wrong number of arguments (given 1, expected 2)" exclude :test_inject_op_private, "needs investigation" -exclude :test_compact, "NoMethodError: undefined method `compact' for #" -exclude :test_tally, "ArgumentError: wrong number of arguments (given 1, expected 0)" -exclude :test_each_cons, "<1..5> expected but was" -exclude :test_each_slice, "<1..10> expected but was" +exclude :test_max_by, "ArgumentError: wrong number of arguments (given 1, expected 2)" +exclude :test_min_by, "ArgumentError: wrong number of arguments (given 1, expected 2)" +exclude :test_minmax_by, "ArgumentError: wrong number of arguments (given 1, expected 2)" +exclude :test_partition, "ArgumentError: wrong number of arguments (given 1, expected 2)" +exclude :test_reject, "ArgumentError: wrong number of arguments (given 1, expected 2)" +exclude :test_select, "ArgumentError: wrong number of arguments (given 1, expected 2)" +exclude :test_sort_by, "ArgumentError: wrong number of arguments (given 1, expected 2)" +exclude :test_take_while, "ArgumentError: wrong number of arguments (given 1, expected 2)" +exclude :test_zip, "ArgumentError: wrong number of arguments (given 1, expected 2)" diff --git a/test/mri/excludes/TestEnumerator.rb b/test/mri/excludes/TestEnumerator.rb index d281e10fdb96..eab8a466a94b 100644 --- a/test/mri/excludes/TestEnumerator.rb +++ b/test/mri/excludes/TestEnumerator.rb @@ -1,17 +1,16 @@ -exclude :test_each_slice_size, "needs investigation" -exclude :test_chain_each_lambda, "needs investigation" -exclude :test_each_arg, "needs investigation" -exclude :test_generator, "needs investigation" -exclude :test_initialize_copy, "needs investigation" -exclude :test_inspect, "needs investigation" -exclude :test_peek_modify, "needs investigation" -exclude :test_peek_values_modify, "needs investigation" -exclude :test_size, "needs investigation" -exclude :test_size_for_cycle, "needs investigation" -exclude :test_size_for_downup_to, "needs investigation" -exclude :test_uniq, "needs investigation" -exclude :test_initialize, "needs investigation" +exclude :test_chain_each_lambda, " expected but was ." +exclude :test_chain_undef_methods, "<0> expected but was <5>." +exclude :test_each_arg, " expected but was <1>." +exclude :test_each_slice_size, "FloatDomainError: Infinity" +exclude :test_generator, "[FrozenError] exception expected, not #." +exclude :test_initialize, "ArgumentError expected but nothing was raised." +exclude :test_initialize_copy, "TypeError expected but nothing was raised." +exclude :test_inspect, "<\"#\"> expected but was <\"#1})>\">." exclude :test_lazy_chain, "hangs" -exclude :test_chain_undef_methods, "<0> expected but was" -exclude :test_compact, "NoMethodError: undefined method `compact' for #" -exclude :test_stopiteration_rescue, "backtrace of StopIteration is not supposed to contain internal Ruby source files" \ No newline at end of file +exclude :test_peek_modify, "<[1, 2]> expected but was <[1, 2, 3]>." +exclude :test_peek_values_modify, "<[1, 2]> expected but was <[1, 2, 3]>." +exclude :test_size, "TypeError expected but nothing was raised." +exclude :test_size_for_cycle, "<0> expected but was ." +exclude :test_size_for_downup_to, "<0> expected but was ." +exclude :test_stopiteration_rescue, "Expected \" core/enumerator.rb:164:in `next'\" to include \"test_enumerator.rb:251:\"." +exclude :test_uniq, "<[0, 1]> expected but was <[]>." diff --git a/test/mri/excludes/TestEnumeratorKw.rb b/test/mri/excludes/TestEnumeratorKw.rb index 798f3e10771f..fd15d0e12a04 100644 --- a/test/mri/excludes/TestEnumeratorKw.rb +++ b/test/mri/excludes/TestEnumeratorKw.rb @@ -1 +1 @@ -exclude :test_enumerator_kw, "needs investigation" +exclude :test_enumerator_kw, "undefined symbol: rb_yield_values_kw" diff --git a/test/mri/excludes/TestEnv.rb b/test/mri/excludes/TestEnv.rb index 24565dd5e80f..640ef46dfec3 100644 --- a/test/mri/excludes/TestEnv.rb +++ b/test/mri/excludes/TestEnv.rb @@ -1,11 +1,9 @@ exclude :test_aset, "needs investigation" exclude :test_assoc, "needs investigation" +exclude :test_clone, "Exception(TypeError) with message matches to /Cannot clone ENV/." exclude :test_delete, "needs investigation" exclude :test_fetch, "needs investigation" -exclude :test_frozen_env, "needs investigation" +exclude :test_frozen_env, "TypeError expected but nothing was raised." exclude :test_getenv, "needs investigation" exclude :test_has_key, "needs investigation" -exclude :test_except, "needs investigation" -exclude :test_clone, "expected: /ENV\\.clone is deprecated; use ENV\\.to_h instead/" -exclude :test_dup, "TypeError expected but nothing was raised." exclude :test_update, "ArgumentError: wrong number of arguments (given 0, expected 1)" diff --git a/test/mri/excludes/TestErbCommand.rb b/test/mri/excludes/TestErbCommand.rb index bdc57ba4dfe3..e69de29bb2d1 100644 --- a/test/mri/excludes/TestErbCommand.rb +++ b/test/mri/excludes/TestErbCommand.rb @@ -1,3 +0,0 @@ -exclude :test_deprecated_option, "needs investigation" -exclude :test_template_file_encoding, "needs investigation" -exclude :test_var, "needs investigation" diff --git a/test/mri/excludes/TestEval.rb b/test/mri/excludes/TestEval.rb index f1be7350ebca..eca3e9b46a90 100644 --- a/test/mri/excludes/TestEval.rb +++ b/test/mri/excludes/TestEval.rb @@ -1,7 +1,4 @@ -exclude :test_eval_ascii_incompatible, "needs investigation" -exclude :test_eval_location_binding, "needs investigation" -exclude :test_eval_location_fstring, "needs investigation" -exclude :test_file_encoding, "needs investigation" -exclude :test_instance_eval_const, "needs investigation" -exclude :test_gced_eval_location, "needs investigation" -exclude :test_return_in_eval_lambda, "needs investigation" +exclude :test_eval_location_fstring, "Expected \"generated code\" (oid=1192) to be the same as \"generated code\" (oid=1208)." +exclude :test_file_encoding, "<\"\\x{A4A2}\"> expected but was <\"あ\">." +exclude :test_gced_eval_location, "NoMethodError: undefined method `mktmpdir' for Dir:Class" +exclude :test_return_in_eval_lambda, "LocalJumpError: unexpected return" diff --git a/test/mri/excludes/TestException.rb b/test/mri/excludes/TestException.rb index 25dde22359e8..d61d37eef14c 100644 --- a/test/mri/excludes/TestException.rb +++ b/test/mri/excludes/TestException.rb @@ -1,49 +1,21 @@ -exclude :test_anonymous_message, "needs investigation" -exclude :test_cause_at_end, "needs investigation" -exclude :test_cause_raised_in_rescue, "needs investigation" -exclude :test_circular_cause, "needs investigation" -exclude :test_circular_cause_handle, "needs investigation" -exclude :test_control_in_message, "needs investigation" -exclude :test_errat, "needs investigation" -exclude :test_errinfo_encoding_in_debug, "needs investigation" +exclude :test_cause_at_end, "| " +exclude :test_cause_raised_in_rescue, "cause should not be overwritten by reraise." +exclude :test_cause_thread_with_cause, "NoMethodError: undefined method `message' for nil:NilClass" +exclude :test_circular_cause, "Expected # to be nil." +exclude :test_circular_cause_handle, "Exception(ArgumentError) with message matches to /circular cause/." +exclude :test_errinfo_encoding_in_debug, "Expected \"\" to include \"#::Cエラー\"." exclude :test_errinfo_in_debug, "needs investigation" -exclude :test_frozen_error_message, "needs investigation" -exclude :test_frozen_error_receiver, "needs investigation" -exclude :test_inspect, "needs investigation" -exclude :test_kernel_warn_uplevel, "needs investigation" -exclude :test_machine_stackoverflow, "needs investigation" -exclude :test_machine_stackoverflow_by_define_method, "needs investigation" -exclude :test_name_error_info_const, "needs investigation" -exclude :test_name_error_info_parent_iseq_mark, "needs investigation" -exclude :test_non_exception_cause, "needs investigation" -exclude :test_output_string_encoding, "needs investigation" -exclude :test_too_many_args_in_eval, "needs investigation" -exclude :test_undefined_backtrace, "needs investigation" -exclude :test_warning_category, "needs investigation" -exclude :test_warning_warn_circular_require_backtrace, "needs investigation" -exclude :test_wrong_backtrace, "needs investigation" -exclude :test_cause_thread_with_cause, "needs investigation" -exclude :test_name_error_info_local_variables, "needs investigation" -exclude :test_name_error_info_method, "needs investigation" -exclude :test_name_error_info_method_missing, "needs investigation" -exclude :test_nomethod_error_new_name_args_priv, "needs investigation" -exclude :test_nomethod_error_new_receiver, "needs investigation" -exclude :test_blocking_backtrace, "needs investigation" -exclude :test_exception_in_message, "needs investigation" -exclude :test_full_message, "needs investigation" -exclude :test_warn_deprecated_backwards_compatibility_category, "needs investigation" -exclude :test_warn_deprecated_to_remove_category, "needs investigation" -exclude :test_warning_warn, "needs investigation" -exclude :test_warning_warn_super, "needs investigation" -exclude :test_warn_deprecated_category, "needs investigation" -exclude :test_warning_category_deprecated, "needs investigation" -exclude :test_warning_category_experimental, "needs investigation" -exclude :test_undef_Warning_warn, "[NoMethodError] exception expected, not #." exclude :test_exception_in_ensure_with_next, "NameError: uninitialized constant TestException::RubyVM" -exclude :test_stackoverflow, "[ruby-core:43794] [Feature #6216]." +exclude :test_inspect, "<\"#\"> expected but was ." +exclude :test_machine_stackoverflow, "assert_separately failed with error message" +exclude :test_machine_stackoverflow_by_define_method, "assert_separately failed with error message" exclude :test_marshal_circular_cause, "\"\\x04\\bo:\\x11RuntimeError\\b:\\tmesgI\\\"\\berr\\x06:\\x06ET:\\abt[\\x00:\\ncauseo:\\x0EException\\a;\\x060;\\b0\"." +exclude :test_non_exception_cause, "Exception(TypeError) with message matches to /exception/." +exclude :test_output_string_encoding, "<1> expected but was <0>." exclude :test_raise_with_cause, "[TypeError] exception expected, not #." -exclude :test_full_message_with_custom_detailed_message, "Expected /BOO!/ to match \"/home/eregon/code/truffleruby-ws/truffleruby/test/mri/tests/ruby/test_exception.rb:1469:in `test_full_message_with_custom_detailed_message': \\e[1mmessage (\\e[1;4mRuntimeError\\e[m\\e[1m)\\e[m\\n\"." -exclude :test_syntax_error_path, "NoMethodError: undefined method `path' for #" -exclude :test_detailed_message, "NoMethodError: undefined method `detailed_message' for #" -exclude :test_syntax_error_detailed_message, "pid 32232 exit 1" +exclude :test_stackoverflow, " (java.lang.IndexOutOfBoundsException) from com.oracle.svm.core.jni.functions.JNIFunctions$NewObjectWithObjectArrayArgFunctionPointer.invoke(JNIFunctions.java:-1)" +exclude :test_too_many_args_in_eval, "[SystemStackError] exception expected, not #." +exclude :test_undef_Warning_warn, "[NoMethodError] exception expected, not #." +exclude :test_undefined_backtrace, "assert_separately failed with error message" +exclude :test_warning_warn_circular_require_backtrace, "Expected /^\\tfrom \\/tmp\\/circular20240905\\-98331\\-tcktqz\\.rb:1:/ to match \"/tmp/circular20240905-98331-tcktqz.rb:1: warning: loading in progress, circular require considered harmful - /tmp/circular20240905-98331-tcktqz.rb\\n\"." +exclude :test_wrong_backtrace, "assert_separately failed with error message" diff --git a/test/mri/excludes/TestFiber.rb b/test/mri/excludes/TestFiber.rb index b06b81cda7e6..c57102008f47 100644 --- a/test/mri/excludes/TestFiber.rb +++ b/test/mri/excludes/TestFiber.rb @@ -1,11 +1,8 @@ -exclude :test_many_fibers, "OOM" -exclude :test_fatal_in_fiber, "inter-test dependency" -exclude :test_stack_size, "RubyVM-specific" -exclude :test_no_valid_cfp, "needs investigation" +exclude :test_fatal_in_fiber, "| core/kernel.rb:269:in `require': cannot load such file -- -test-/fatal/rb_fatal (LoadError)" exclude :test_fiber_transfer_segv, "RubyVM-specific" exclude :test_gc_root_fiber, "RubyVM-specific" -exclude :test_many_fibers_with_threads, "needs investigation" -exclude :test_to_s, "needs investigation" exclude :test_machine_stack_gc, "spurious" -exclude :test_error, "needs investigation" -exclude :test_raise, "needs investigation" +exclude :test_many_fibers, "OOM" +exclude :test_no_valid_cfp, "transient; Caused by: java.lang.AssertionError: null element in Object[] at index 0: [null]" +exclude :test_raise, "transient; (java.lang.AssertionError) from org.truffleruby.core.fiber.FiberManager.transferControlTo(FiberManager.java:289)" +exclude :test_stack_size, "RubyVM-specific" diff --git a/test/mri/excludes/TestFiberBacktrace.rb b/test/mri/excludes/TestFiberBacktrace.rb index f5080192cbfe..3da3e018ab2b 100644 --- a/test/mri/excludes/TestFiberBacktrace.rb +++ b/test/mri/excludes/TestFiberBacktrace.rb @@ -1,3 +1,3 @@ -exclude :test_backtrace, "needs investigation" -exclude :test_backtrace_locations, "needs investigation" -exclude :test_local_backtrace, "needs investigation" +exclude :test_backtrace, "NoMethodError: undefined method `backtrace' for #" +exclude :test_backtrace_locations, "NoMethodError: undefined method `backtrace_locations' for #" +exclude :test_local_backtrace, "NoMethodError: undefined method `backtrace' for #" diff --git a/test/mri/excludes/TestFiberIO.rb b/test/mri/excludes/TestFiberIO.rb index 88456d3141b7..a3ee2f3da618 100644 --- a/test/mri/excludes/TestFiberIO.rb +++ b/test/mri/excludes/TestFiberIO.rb @@ -1,7 +1,7 @@ -exclude :test_heavy_read, "needs investigation" -exclude :test_read_write_blocking, "hangs, no Fiber.set_scheduler" -exclude :test_tcp_connect, "hangs, no Fiber.set_scheduler" -exclude :test_tcp_accept, "hangs, no Fiber.set_scheduler" exclude :test_epipe_on_read, "NoMethodError: undefined method `set_scheduler' for Fiber:Class" -exclude :test_read, "NoMethodError: undefined method `set_scheduler' for Fiber:Class" +exclude :test_heavy_read, "NoMethodError: undefined method `set_scheduler' for Fiber:Class" exclude :test_puts_empty, "NoMethodError: undefined method `set_scheduler' for Fiber:Class" +exclude :test_read, "NoMethodError: undefined method `set_scheduler' for Fiber:Class" +exclude :test_read_write_blocking, "hangs, no Fiber.set_scheduler" +exclude :test_tcp_accept, "hangs, no Fiber.set_scheduler" +exclude :test_tcp_connect, "hangs, no Fiber.set_scheduler" diff --git a/test/mri/excludes/TestFiberMutex.rb b/test/mri/excludes/TestFiberMutex.rb index f6d24d53d7e1..3a5b64620c56 100644 --- a/test/mri/excludes/TestFiberMutex.rb +++ b/test/mri/excludes/TestFiberMutex.rb @@ -1,9 +1,9 @@ -exclude :test_mutex_deadlock, "Fiber.set_scheduler" -exclude :test_condition_variable, "Fiber.set_scheduler" -exclude :test_mutex_fiber_raise, "Fiber.set_scheduler" -exclude :test_mutex_interleaved_locking, "Fiber.set_scheduler" -exclude :test_mutex_synchronize, "Fiber.set_scheduler" -exclude :test_mutex_thread, "Fiber.set_scheduler" -exclude :test_queue, "Fiber.set_scheduler" -exclude :test_queue_pop_waits, "hangs" +exclude :test_condition_variable, "NoMethodError: undefined method `set_scheduler' for Fiber:Class" +exclude :test_mutex_deadlock, "| # terminated with exception (report_on_exception is true): | -:6:in `block in
': undefined method `set_scheduler' for Fiber:Class (NoMethodError)" exclude :test_mutex_fiber_deadlock_no_scheduler, "hangs" +exclude :test_mutex_fiber_raise, "NoMethodError: undefined method `set_scheduler' for Fiber:Class" +exclude :test_mutex_interleaved_locking, "NoMethodError: undefined method `set_scheduler' for Fiber:Class" +exclude :test_mutex_synchronize, "NoMethodError: undefined method `set_scheduler' for Fiber:Class" +exclude :test_mutex_thread, "NoMethodError: undefined method `set_scheduler' for Fiber:Class" +exclude :test_queue, "NoMethodError: undefined method `set_scheduler' for Fiber:Class" +exclude :test_queue_pop_waits, "hangs" diff --git a/test/mri/excludes/TestFiberScheduler.rb b/test/mri/excludes/TestFiberScheduler.rb index 6e804a8884ca..caae64608917 100644 --- a/test/mri/excludes/TestFiberScheduler.rb +++ b/test/mri/excludes/TestFiberScheduler.rb @@ -1,12 +1,10 @@ -exclude :test_close_at_exit, "needs investigation" -exclude :test_fiber_without_scheduler, "needs investigation" -exclude :test_closed_at_thread_exit, "needs investigation" -exclude :test_closed_when_set_to_nil, "needs investigation" -exclude :test_fiber_new, "needs investigation" -exclude :test_fiber_new_with_options, "needs investigation" -exclude :test_optional_close, "needs investigation" -exclude :test_minimal_interface, "needs investigation" +exclude :test_autoload, "NoMethodError: undefined method `set_scheduler' for Fiber:Class" +exclude :test_close_at_exit, "| -:5:in `
': undefined method `set_scheduler' for Fiber:Class (NoMethodError)" +exclude :test_closed_at_thread_exit, "NoMethodError: undefined method `set_scheduler' for Fiber:Class" +exclude :test_closed_when_set_to_nil, "NoMethodError: undefined method `set_scheduler' for Fiber:Class" exclude :test_current_scheduler, "hangs, no Fiber.set_scheduler" exclude :test_deadlock, "NoMethodError: undefined method `set_scheduler' for Fiber:Class" -exclude :test_autoload, "NoMethodError: undefined method `set_scheduler' for Fiber:Class" exclude :test_fiber_blocking, "NoMethodError: undefined method `blocking' for Fiber:Class" +exclude :test_fiber_new_with_options, "ArgumentError: unknown keyword: :pool" +exclude :test_fiber_without_scheduler, "[RuntimeError] exception expected, not #." +exclude :test_minimal_interface, "NoMethodError: undefined method `set_scheduler' for Fiber:Class" diff --git a/test/mri/excludes/TestFiberSleep.rb b/test/mri/excludes/TestFiberSleep.rb index 3285f2518ee8..f42a7bfa0f57 100644 --- a/test/mri/excludes/TestFiberSleep.rb +++ b/test/mri/excludes/TestFiberSleep.rb @@ -1,3 +1,3 @@ -exclude :test_sleep, "needs investigation" -exclude :test_sleep_returns_seconds_slept, "needs investigation" -exclude :test_broken_sleep, "needs investigation" +exclude :test_broken_sleep, "[RuntimeError] exception expected, not #." +exclude :test_sleep, "NoMethodError: undefined method `set_scheduler' for Fiber:Class" +exclude :test_sleep_returns_seconds_slept, "NoMethodError: undefined method `set_scheduler' for Fiber:Class" diff --git a/test/mri/excludes/TestFiberStorage.rb b/test/mri/excludes/TestFiberStorage.rb index 8d28c23851cf..b54ea168eb93 100644 --- a/test/mri/excludes/TestFiberStorage.rb +++ b/test/mri/excludes/TestFiberStorage.rb @@ -1,10 +1,10 @@ -exclude :test_storage_assignment_type_error, "[TypeError] exception expected, not #." -exclude :test_storage_only_allow_access_from_same_fiber, "[ArgumentError] exception expected, not #>." +exclude :test_enumerator_count, "NoMethodError: undefined method `[]=' for Fiber:Class" +exclude :test_enumerator_inherited_storage, "NoMethodError: undefined method `[]=' for Fiber:Class" +exclude :test_inherited_storage, "ArgumentError: unknown keyword: :storage" exclude :test_storage, "NoMethodError: undefined method `[]=' for Fiber:Class" -exclude :test_storage_assignment, "NoMethodError: undefined method `storage=' for #" +exclude :test_storage_assignment, "NoMethodError: undefined method `storage=' for #" +exclude :test_storage_assignment_type_error, "[TypeError] exception expected, not #." +exclude :test_storage_inherited, "NoMethodError: undefined method `[]=' for Fiber:Class" +exclude :test_storage_only_allow_access_from_same_fiber, "[ArgumentError] exception expected, not #>." exclude :test_thread_inherited_storage, "NoMethodError: undefined method `[]=' for Fiber:Class" exclude :test_variable_assignment, "NoMethodError: undefined method `[]=' for Fiber:Class" -exclude :test_enumerator_inherited_storage, "NoMethodError: undefined method `[]=' for Fiber:Class" -exclude :test_storage_inherited, "NoMethodError: undefined method `[]=' for Fiber:Class" -exclude :test_inherited_storage, "ArgumentError: unknown keyword: :storage" -exclude :test_enumerator_count, "NoMethodError: undefined method `[]=' for Fiber:Class" diff --git a/test/mri/excludes/TestFiberThread.rb b/test/mri/excludes/TestFiberThread.rb index c499f89c379d..6e60c04523b9 100644 --- a/test/mri/excludes/TestFiberThread.rb +++ b/test/mri/excludes/TestFiberThread.rb @@ -2,5 +2,5 @@ exclude :test_thread_join, "NoMethodError: undefined method `set_scheduler' for Fiber:Class" exclude :test_thread_join_blocking, "NoMethodError: undefined method `set_scheduler' for Fiber:Class" exclude :test_thread_join_hang, "NoMethodError: undefined method `set_scheduler' for Fiber:Class" +exclude :test_thread_join_implicit, "spurious; hangs" exclude :test_thread_join_timeout, "NoMethodError: undefined method `set_scheduler' for Fiber:Class" -exclude :test_thread_join_implicit, "NoMethodError: undefined method `set_scheduler' for Fiber:Class" diff --git a/test/mri/excludes/TestFiddle.rb b/test/mri/excludes/TestFiddle.rb index a7737fc570ea..48c32b3ec2fd 100644 --- a/test/mri/excludes/TestFiddle.rb +++ b/test/mri/excludes/TestFiddle.rb @@ -1,3 +1,3 @@ -exclude :test_nil_true_etc, "NameError: uninitialized constant Fiddle::Qtrue" exclude :test_dlopen_linker_script_group_linux, "NotImplementedError: NotImplementedError" exclude :test_dlopen_linker_script_input_linux, "NotImplementedError: NotImplementedError" +exclude :test_nil_true_etc, "NameError: uninitialized constant Fiddle::Qtrue" diff --git a/test/mri/excludes/TestFile.rb b/test/mri/excludes/TestFile.rb index c744a7fb35b3..3a31a08d04c8 100644 --- a/test/mri/excludes/TestFile.rb +++ b/test/mri/excludes/TestFile.rb @@ -1,12 +1,8 @@ -exclude :test_bom_8, "needs investigation" -exclude :test_eof_0, "needs investigation" -exclude :test_eof_0_seek, "needs investigation" -exclude :test_eof_1, "needs investigation" -exclude :test_gets_para_extended_file, "needs investigation" -exclude :test_realpath_encoding, "needs investigation" -exclude :test_uninitialized, "needs investigation" -exclude :test_file_share_delete, "needs investigation" -exclude :test_stat, "needs investigation" -exclude :test_realpath_special_symlink, "needs investigation" -exclude :test_open_tempfile_path, "@path is currently set even with File::TMPFILE" -exclude :test_file_open_newline_option, "<\"a\\r\\n\" + \"b\\r\\n\"> expected but was" +exclude :test_file_open_newline_option, "<\"a\\r\\n\" + \"b\\r\\n\"> expected but was <\"a\\n\" + \"b\\n\">." +exclude :test_file_share_delete, "NameError: uninitialized constant IO::SHARE_DELETE" +exclude :test_gets_para_extended_file, "mode = <{}>." +exclude :test_open_tempfile_path, "Expected \"/tmp/test_open_tempfile_path20240905-318505-znpzmo\" to be nil." +exclude :test_realpath_encoding, "<\"/tmp/rubytest-realpath20240905-318505-15g1eg/AΑАԱႠאⰀあ\"> expected but was <\"/tmp/rubytest-realpath20240905-318505-15g1eg/A\\xCE\\x91\\xD0\\x90\\xD4\\xB1\\xE1\\x82\\xA0\\xD7\\x90\\xE2\\xB0\\x80\\xE3\\x81\\x82\">." +exclude :test_realpath_special_symlink, "Errno::ENOENT: No such file or directory - /dev/fd/41" +exclude :test_stat, "NoMethodError: undefined method `birthtime' for #" +exclude :test_uninitialized, "[TypeError] exception expected, not #." diff --git a/test/mri/excludes/TestFileExhaustive.rb b/test/mri/excludes/TestFileExhaustive.rb index ed5979be9899..a4dcb220fc24 100644 --- a/test/mri/excludes/TestFileExhaustive.rb +++ b/test/mri/excludes/TestFileExhaustive.rb @@ -1,19 +1,15 @@ -exclude :test_basename_encoding, "needs investigation" -exclude :test_closed_io_identical_p, "needs investigation" -exclude :test_expand_path_converts_a_dot_with_unc_dir, "needs investigation" -exclude :test_expand_path_preserves_unc_path_root, "needs investigation" -exclude :test_join_ascii_incompatible, "needs investigation" -exclude :test_utime_symlinkfile, "needs investigation" -exclude :test_atime, "needs investigation" -exclude :test_expand_path_hfs, "needs investigation" -exclude :test_expand_path_memsize, "needs investigation" -exclude :test_join_with_changed_separator, "needs investigation" -exclude :test_sgid, "needs investigation" -exclude :test_sticky, "needs investigation" -exclude :test_suid, "needs investigation" -exclude :test_test, "needs investigation" -exclude :test_expand_path_for_existent_username, "needs investigation" -exclude :test_readlink_long_path, "needs investigation" -exclude :test_utime, "needs investigation" -exclude :test_flock_shared, "Zlib::InProgressError: zlib stream is in progress" -exclude :test_flock_exclusive, "Zlib::InProgressError: zlib stream is in progress" +exclude :test_atime, "hangs; symbol lookup error: truffleruby/.ext/c/file.so: undefined symbol: rb_str_encode_ospath" +exclude :test_basename_encoding, "Encoding::CompatibilityError: incompatible character encodings: UTF-8 and Windows-31J" +exclude :test_closed_io_identical_p, "IOError expected but nothing was raised." +exclude :test_expand_path_converts_a_dot_with_unc_dir, "<\"//\"> expected but was <\"/\">." +exclude :test_expand_path_for_existent_username, "<\"/b/b/e/.home\"> expected but was <\"/buildslave\">." +exclude :test_expand_path_hfs, "dyld: missing symbol called" if RUBY_PLATFORM.include?('darwin') +exclude :test_expand_path_memsize, "NameError: uninitialized constant GC::INTERNAL_CONSTANTS" +exclude :test_expand_path_preserves_unc_path_root, "<\"//\"> expected but was <\"/\">." +exclude :test_join_ascii_incompatible, "Encoding::CompatibilityError expected but nothing was raised." +exclude :test_join_with_changed_separator, "NameError: uninitialized constant File::SEPARATOR" +exclude :test_readlink_long_path, "<\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo\"> expected but was <\"foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoof\">." if RUBY_PLATFORM.include?('linux') +exclude :test_sgid, "TypeError: no implicit conversion of nil into String" +exclude :test_sticky, "TypeError: no implicit conversion of nil into String" +exclude :test_suid, "TypeError: no implicit conversion of nil into String" +exclude :test_test, "NotImplementedError: command ?b not implemented" diff --git a/test/mri/excludes/TestFixnum.rb b/test/mri/excludes/TestFixnum.rb index 10a224d7a505..e4c19a66e6af 100644 --- a/test/mri/excludes/TestFixnum.rb +++ b/test/mri/excludes/TestFixnum.rb @@ -1,2 +1 @@ -exclude :test_div, "needs investigation" -exclude :test_power_of_0, "needs investigation" +exclude :test_power_of_0, "ZeroDivisionError expected but nothing was raised." diff --git a/test/mri/excludes/TestFlip.rb b/test/mri/excludes/TestFlip.rb index c5116581fd17..cae6346ffcfa 100644 --- a/test/mri/excludes/TestFlip.rb +++ b/test/mri/excludes/TestFlip.rb @@ -1,2 +1,2 @@ -exclude :test_input_line_number_range, "needs investigation" -exclude :test_shared_thread, "needs investigation" +exclude :test_input_line_number_range, "<[nil, \"2\", \"3\", \"4\", nil]> expected but was <[\"1\", \"2\", \"3\", \"4\", \"5\"]>." +exclude :test_shared_thread, "flip-flop should be separated per threads." diff --git a/test/mri/excludes/TestFloat.rb b/test/mri/excludes/TestFloat.rb index 7132c862ab01..68a26ccd560d 100644 --- a/test/mri/excludes/TestFloat.rb +++ b/test/mri/excludes/TestFloat.rb @@ -1,13 +1,9 @@ -exclude :test_Float, "needs investigation" -exclude :test_Float_with_exception_keyword, "needs investigation" -exclude :test_Float_with_invalid_exception, "needs investigation" -exclude :test_aliased_quo_recursion, "needs investigation" -exclude :test_cmp_int, "needs investigation" -exclude :test_div, "needs investigation" -exclude :test_floor_ceil_round_truncate, "needs investigation" -exclude :test_hash_0, "needs investigation" -exclude :test_round_half_even, "needs investigation" -exclude :test_round_with_precision, "needs investigation" -exclude :test_step_excl, "needs investigation" -exclude :test_strtod, "needs investigation" -exclude :test_round_half_invalid, "needs investigation" +exclude :test_Float, "Expected |0.0 - 0.125| (0.125) to be <= 1.0e-05." +exclude :test_Float_with_exception_keyword, "Exception raised: <#>" +exclude :test_Float_with_invalid_exception, "ArgumentError expected but nothing was raised." +exclude :test_aliased_quo_recursion, "NameError expected but nothing was raised." +exclude :test_cmp_int, "Expected 9.007199254740992e+15 to be < 9007199254740993." +exclude :test_hash_0, "<7540533174418835121> expected but was <4807890945532695971>." +exclude :test_round_half_invalid, "Expected Exception(Encoding::CompatibilityError) was raised, but the message doesn't match. Expected /ASCII incompatible/ to match \"incompatible character encodings: UTF-8 and UTF-16BE\"." +exclude :test_round_with_precision, "<1.0e-300> expected but was <1.1e-300>." +exclude :test_strtod, "ArgumentError expected but nothing was raised." diff --git a/test/mri/excludes/TestFnmatch.rb b/test/mri/excludes/TestFnmatch.rb index a3bb0ef1707c..a11ecfe7c8a9 100644 --- a/test/mri/excludes/TestFnmatch.rb +++ b/test/mri/excludes/TestFnmatch.rb @@ -1 +1 @@ -exclude :test_unicode, "needs investigation" +exclude :test_unicode, "Expected file \"[a-あ]*\" not to be fnmatch(\"ぃ\")" diff --git a/test/mri/excludes/TestFrozenError.rb b/test/mri/excludes/TestFrozenError.rb index 33393267febb..44b0471b928a 100644 --- a/test/mri/excludes/TestFrozenError.rb +++ b/test/mri/excludes/TestFrozenError.rb @@ -1,2 +1 @@ -exclude :test_message, "needs investigation" -exclude :test_receiver, "needs investigation" +exclude :test_receiver, "Expected # (oid=1000) to be the same as #> (oid=1016)." diff --git a/test/mri/excludes/TestFuncall.rb b/test/mri/excludes/TestFuncall.rb index c4c8914a482c..f2fc9deb038c 100644 --- a/test/mri/excludes/TestFuncall.rb +++ b/test/mri/excludes/TestFuncall.rb @@ -1,5 +1,4 @@ -exclude :test_funcall_extra_args, "needs investigation" -exclude :test_with_funcall_passing_block, "needs investigation" -exclude :test_with_funcall_passing_block_kw, "needs investigation" -exclude :test_with_funcallv_public_kw, "needs investigation" -exclude :test_with_yield_splat_kw, "needs investigation" +exclude :test_with_funcall_passing_block, "undefined symbol: rb_funcall_passing_block" +exclude :test_with_funcall_passing_block_kw, "undefined symbol: rb_funcall_passing_block_kw" +exclude :test_with_funcallv_public_kw, "undefined symbol: rb_funcallv_public_kw" +exclude :test_with_yield_splat_kw, "undefined symbol: rb_yield_splat_kw" diff --git a/test/mri/excludes/TestGB18030.rb b/test/mri/excludes/TestGB18030.rb index ffbf37c4b770..12a6f90ffc4a 100644 --- a/test/mri/excludes/TestGB18030.rb +++ b/test/mri/excludes/TestGB18030.rb @@ -1 +1 @@ -exclude :test_left_adjust_char_head, "needs investigation" +exclude :test_left_adjust_char_head, "NoMethodError: undefined method `ord' for nil:NilClass" diff --git a/test/mri/excludes/TestGCCompact.rb b/test/mri/excludes/TestGCCompact.rb index b6b75110c10c..c81ac9427f0c 100644 --- a/test/mri/excludes/TestGCCompact.rb +++ b/test/mri/excludes/TestGCCompact.rb @@ -1,15 +1,15 @@ -exclude :test_ast_compacts, "needs investigation" -exclude :test_compact_count, "needs investigation" -exclude :test_complex_hash_keys, "needs investigation" -exclude :test_gc_compact_stats, "needs investigation" -exclude :test_moving_strings_up_size_pools, "NameError: uninitialized constant GC::OPTS" -exclude :test_updating_references_for_heap_allocated_frozen_shared_arrays, "NameError: uninitialized constant GC::OPTS" -exclude :test_updating_references_for_embed_frozen_shared_arrays, "NameError: uninitialized constant GC::OPTS" -exclude :test_moving_arrays_down_size_pools, "NameError: uninitialized constant GC::OPTS" +exclude :test_ast_compacts, "NameError: uninitialized constant GC::OPTS" +exclude :test_compact_count, "NameError: uninitialized constant GC::OPTS" exclude :test_compacting_from_trace_point, "NameError: uninitialized constant GC::OPTS" -exclude :test_updating_references_for_embed_shared_arrays, "NameError: uninitialized constant GC::OPTS" +exclude :test_complex_hash_keys, "NameError: uninitialized constant GC::OPTS" +exclude :test_gc_compact_stats, "NameError: uninitialized constant GC::OPTS" +exclude :test_moving_arrays_down_size_pools, "NameError: uninitialized constant GC::OPTS" exclude :test_moving_arrays_up_size_pools, "NameError: uninitialized constant GC::OPTS" +exclude :test_moving_objects_between_size_pools, "NameError: uninitialized constant GC::OPTS" exclude :test_moving_objects_between_size_pools_keeps_shape_frozen_status, "NameError: uninitialized constant GC::OPTS" exclude :test_moving_strings_down_size_pools, "NameError: uninitialized constant GC::OPTS" +exclude :test_moving_strings_up_size_pools, "NameError: uninitialized constant GC::OPTS" +exclude :test_updating_references_for_embed_frozen_shared_arrays, "NameError: uninitialized constant GC::OPTS" +exclude :test_updating_references_for_embed_shared_arrays, "NameError: uninitialized constant GC::OPTS" +exclude :test_updating_references_for_heap_allocated_frozen_shared_arrays, "NameError: uninitialized constant GC::OPTS" exclude :test_updating_references_for_heap_allocated_shared_arrays, "NameError: uninitialized constant GC::OPTS" -exclude :test_moving_objects_between_size_pools, "NameError: uninitialized constant GC::OPTS" diff --git a/test/mri/excludes/TestGc.rb b/test/mri/excludes/TestGc.rb index f8ee41441533..8212d63d34ac 100644 --- a/test/mri/excludes/TestGc.rb +++ b/test/mri/excludes/TestGc.rb @@ -1,22 +1,22 @@ -exclude :test_finalizer_passed_object_id, "needs investigation" -exclude :test_finalizing_main_thread, "needs investigation" -exclude :test_gc_parameter, "needs investigation" -exclude :test_stat, "needs investigation" -exclude :test_stat_argument, "needs investigation" -exclude :test_stat_constraints, "needs investigation" -exclude :test_stat_single, "needs investigation" -exclude :test_gc_internals, "needs investigation" -exclude :test_interrupt_in_finalizer, "needs investigation" -exclude :test_latest_gc_info, "needs investigation" -exclude :test_latest_gc_info_argument, "needs investigation" -exclude :test_start_full_mark, "needs investigation" -exclude :test_start_immediate_sweep, "needs investigation" -exclude :test_verify_internal_consistency, "needs investigation" +exclude :test_ast_node_buffer, "SyntaxError: (eval):2: YARPTranslator does not know how to translate ShareableConstantNode at (eval):2" +exclude :test_exception_in_finalizer_method, "needs investigation" exclude :test_exception_in_finalizer_procs, "transient" -exclude :test_exception_in_finalizer_method, "pid 277840 exit 0." +exclude :test_finalizer_passed_object_id, "needs investigation" +exclude :test_finalizing_main_thread, "| -:1:in `define_finalizer': wrong number of arguments (given 1, expected 2) (ArgumentError)" +exclude :test_gc_internals, "NameError: uninitialized constant GC::INTERNAL_CONSTANTS" +exclude :test_gc_parameter, "slow: 32.16s on truffleruby 24.2.0-dev-b555f590, like ruby 3.2.4, GraalVM CE JVM [x86_64-linux] with AMD Ryzen 7 3700X 8-Core Processor: (16 vCPUs)" +exclude :test_interrupt_in_finalizer, "spurious; TypeError: no implicit conversion of nil into Integer" +exclude :test_latest_gc_info, "NameError: uninitialized constant GC::INTERNAL_CONSTANTS" +exclude :test_latest_gc_info_argument, "NoMethodError: undefined method `latest_gc_info' for GC:Module" +exclude :test_latest_gc_info_need_major_by, "NameError: uninitialized constant GC::OPTS" +exclude :test_start_full_mark, "NameError: uninitialized constant GC::OPTS" +exclude :test_start_immediate_sweep, "NoMethodError: undefined method `latest_gc_info' for GC:Module" +exclude :test_stat, "NoMethodError: undefined method `count_objects' for ObjectSpace:Module" +exclude :test_stat_argument, "Exception(ArgumentError) with message matches to /\\u{30eb 30d3 30fc}/." +exclude :test_stat_constraints, "<191157664> expected but was <0>." exclude :test_stat_heap, "NoMethodError: undefined method `stat_heap' for GC:Module" -exclude :test_stat_heap_constraints, "NoMethodError: undefined method `stat_heap' for GC:Module" exclude :test_stat_heap_all, "NoMethodError: undefined method `stat_heap' for GC:Module" -exclude :test_latest_gc_info_need_major_by, "NameError: uninitialized constant GC::OPTS" +exclude :test_stat_heap_constraints, "NoMethodError: undefined method `stat_heap' for GC:Module" +exclude :test_stat_single, "ArgumentError expected but nothing was raised." exclude :test_thrashing_for_young_objects, "NoMethodError: undefined method `stat_heap' for GC:Module" -exclude :test_ast_node_buffer, "SyntaxError: (eval):2: YARPTranslator does not know how to translate ShareableConstantNode at (eval):2" +exclude :test_verify_internal_consistency, "NoMethodError: undefined method `verify_internal_consistency' for GC:Module" diff --git a/test/mri/excludes/TestGem.rb b/test/mri/excludes/TestGem.rb index 2d09d8cab4a4..810675da1d70 100644 --- a/test/mri/excludes/TestGem.rb +++ b/test/mri/excludes/TestGem.rb @@ -1,12 +1,3 @@ -exclude :test_self_prefix, "needs investigation" -exclude :test_self_find_latest_files, "needs investigation" -exclude :test_self_find_files, "needs investigation" -exclude :test_auto_activation_of_used_gemdeps_file, "needs investigation" -exclude :test_self_use_gemdeps, "needs investigation" -exclude :test_self_find_files_with_gemfile, "needs investigation" -exclude :test_auto_activation_of_specific_gemdeps_file, "needs investigation" -exclude :test_use_gemdeps, "needs investigation" -exclude :test_use_gemdeps_automatic, "needs investigation" -exclude :test_use_gemdeps_specific, "needs investigation" -exclude :test_looks_for_gemdeps_files_automatically_on_start, "needs investigation" -exclude :test_looks_for_gemdeps_files_automatically_on_start_in_parent_dir, "needs investigation" +exclude :test_self_find_files, "<[\"/home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/test/mri/test/rubygems/sff/discover.rb\"," +exclude :test_self_find_latest_files, "<[\"/home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/test/mri/test/rubygems/sff/discover.rb\"," +exclude :test_self_prefix, "<\"/home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/test/mri\"> expected but was ." diff --git a/test/mri/excludes/TestGemCommandsBuildCommand.rb b/test/mri/excludes/TestGemCommandsBuildCommand.rb index 7f759ded8f52..e69de29bb2d1 100644 --- a/test/mri/excludes/TestGemCommandsBuildCommand.rb +++ b/test/mri/excludes/TestGemCommandsBuildCommand.rb @@ -1 +0,0 @@ -exclude :test_execute_bad_spec, "Expected /invalid date format in specification/ to match \"\"." diff --git a/test/mri/excludes/TestGemCommandsEnvironmentCommand.rb b/test/mri/excludes/TestGemCommandsEnvironmentCommand.rb index 474e959e91ec..ee8895fc2a65 100644 --- a/test/mri/excludes/TestGemCommandsEnvironmentCommand.rb +++ b/test/mri/excludes/TestGemCommandsEnvironmentCommand.rb @@ -1 +1 @@ -exclude :test_execute, "needs investigation" +exclude :test_execute, "Expected /RUBYGEMS PREFIX: / to match \"RubyGems Environment:\\n\" +" diff --git a/test/mri/excludes/TestGemCommandsSetupCommand.rb b/test/mri/excludes/TestGemCommandsSetupCommand.rb index 656e8875f52d..f4a74ba1a314 100644 --- a/test/mri/excludes/TestGemCommandsSetupCommand.rb +++ b/test/mri/excludes/TestGemCommandsSetupCommand.rb @@ -1,2 +1 @@ -exclude :test_execute_informs_about_installed_executables, "needs investigation" exclude :test_destdir_flag_does_not_try_to_write_to_the_default_gem_home, "too slow, pretty much hangs, tries to generate RDoc for way too much files" diff --git a/test/mri/excludes/TestGemCommandsUpdateCommand.rb b/test/mri/excludes/TestGemCommandsUpdateCommand.rb index 6d0eb615ba81..d6c38117d4ca 100644 --- a/test/mri/excludes/TestGemCommandsUpdateCommand.rb +++ b/test/mri/excludes/TestGemCommandsUpdateCommand.rb @@ -1 +1 @@ -exclude :test_update_rubygems_arguments, "needs investigation" +exclude :test_update_rubygems_arguments, "<\"--prefix\"> expected but was <\"--no-document\">." diff --git a/test/mri/excludes/TestGemExit.rb b/test/mri/excludes/TestGemExit.rb index 6bfa72bec7ac..ae3da25cb81e 100644 --- a/test/mri/excludes/TestGemExit.rb +++ b/test/mri/excludes/TestGemExit.rb @@ -1 +1 @@ -exclude :test_exit, "<2> expected but was" +exclude :test_exit, "<2> expected but was <1>." diff --git a/test/mri/excludes/TestGemInstaller.rb b/test/mri/excludes/TestGemInstaller.rb new file mode 100644 index 000000000000..81f6315f098f --- /dev/null +++ b/test/mri/excludes/TestGemInstaller.rb @@ -0,0 +1 @@ +exclude :test_keeps_plugins_up_to_date, "slow: 40.28s on truffleruby 24.2.0-dev-b555f590, like ruby 3.2.4, GraalVM CE JVM [x86_64-linux] with AMD Ryzen 7 3700X 8-Core Processor: (16 vCPUs)" diff --git a/test/mri/excludes/TestGemKernel.rb b/test/mri/excludes/TestGemKernel.rb index 6715d1f55fe4..dbe901fcd482 100644 --- a/test/mri/excludes/TestGemKernel.rb +++ b/test/mri/excludes/TestGemKernel.rb @@ -1 +1 @@ -exclude :test_gem_failing_inside_require_doesnt_cause_double_exceptions, "<1> expected but was" +exclude :test_gem_failing_inside_require_doesnt_cause_double_exceptions, "<1> expected but was <0>." diff --git a/test/mri/excludes/TestGemPackage.rb b/test/mri/excludes/TestGemPackage.rb index 39793f7fa9ca..e69de29bb2d1 100644 --- a/test/mri/excludes/TestGemPackage.rb +++ b/test/mri/excludes/TestGemPackage.rb @@ -1 +0,0 @@ -exclude :test_verify_entry, "<\"Exception while verifying /b/b/e/main/tmp/test_rubygems_20221027-43275-3smyi4/gemhome/cache/a-2.gem\\n\"> expected but was" diff --git a/test/mri/excludes/TestGemRequire.rb b/test/mri/excludes/TestGemRequire.rb index 0c3703fcca38..ba8677bc2a36 100644 --- a/test/mri/excludes/TestGemRequire.rb +++ b/test/mri/excludes/TestGemRequire.rb @@ -1,8 +1,4 @@ -exclude :test_realworld_default_gem, "needs investigation" -exclude :test_no_kernel_require_in_Kernel_warn_with_uplevel, "needs investigation" -exclude :test_no_other_behavioral_changes_with_Kernel_warn, "needs investigation" -exclude :test_no_other_behavioral_changes_with_warn, "needs investigation" -exclude :test_no_kernel_require_in_warn_with_uplevel, "needs investigation" -exclude :test_normal_gems_with_overridden_load_error_message, "needs investigation" -exclude :test_realworld_upgraded_default_gem, "needs investigation" +exclude :test_normal_gems_with_overridden_load_error_message, "Require failed due to core/kernel.rb:269:in `require': Overridden message (LoadError)" +exclude :test_realworld_default_gem, "Failed assertion, no message given." +exclude :test_realworld_upgraded_default_gem, "Failed assertion, no message given." exclude :test_require_does_not_crash_when_utilizing_bundler_version_finder, "Require failed due to ." diff --git a/test/mri/excludes/TestHash.rb b/test/mri/excludes/TestHash.rb index 43f61fffa500..f6b44ddd3985 100644 --- a/test/mri/excludes/TestHash.rb +++ b/test/mri/excludes/TestHash.rb @@ -1,30 +1,31 @@ -exclude :test_ar2st, "mutating Hash during key.hash" -exclude :test_iterlevel_in_ivar_bug19589, "'SystemStackError: stack level too deep' - in ruby-test-mri-asserts only job on CI (e.g. builds #27957758, #27955816)" -exclude :test_to_proc, " expected but was" -exclude :test_huge_iter_level, "RuntimeError expected but nothing was raised." -exclude :test_merge!, "FrozenError expected but nothing was raised." +exclude :test_AREF_fstring_key, "NoMethodError: undefined method `count_objects' for ObjectSpace:Module" +exclude :test_ASET_fstring_key, "Expected \"abc\" (oid=1032) to be the same as \"abc\" (oid=1048)." +exclude :test_ASET_fstring_non_literal_key, "Expected \"abc_def\" (oid=1080) to be the same as \"abc_def\" (oid=1096)." +exclude :test_NEWHASH_fstring_key, "Expected \"ABC\" (oid=1160) to be the same as \"ABC\" (oid=32)." +exclude :test_any_hash_fixable, "very slow: 178.88s on truffleruby 24.2.0-dev-b555f590, like ruby 3.2.4, GraalVM CE JVM [x86_64-linux] with AMD Ryzen 7 3700X 8-Core Processor (16 vCPUs)" +exclude :test_ar2st, " (java.lang.AssertionError) from org.truffleruby.core.hash.library.PackedHashStoreLibrary.verify(PackedHashStoreLibrary.java:396)" +exclude :test_callcc, "RuntimeError: Continuations are unsupported on TruffleRuby" +exclude :test_callcc_escape, "Exception raised: <#>" +exclude :test_callcc_iter_level, "RuntimeError: Continuations are unsupported on TruffleRuby" +exclude :test_callcc_reenter, "Exception raised: <#>" exclude :test_create, "ArgumentError expected but nothing was raised." -exclude :test_callcc_reenter, "[ruby-dev:47803] [Bug #9105]." -exclude :test_select_reject_will_not_rehash, "<1> expected but was" -exclude :test_reject_on_identhash, "<{}> expected but was" -exclude :test_select_on_identhash, "<{\"str\"=>1, \"str\"=>2}> expected but was" -exclude :test_slice_on_identhash, "<{\"str\"=>1, \"str\"=>2}> expected but was" -exclude :test_shift2, "<:foo> expected but was" -exclude :test_NEWHASH_fstring_key, "Expected \"ABC\" (oid=4680) to be the same as \"ABC\" (oid=48)." -exclude :test_inverse_hash, "[ruby-core:34334]." +exclude :test_fetch_error, "Expected /\\.\\.\\.\\z/ to match \"key not found: \\\"gumbygumbygumbygumbygumbygumbygumbygumbygumbygumbygumbygumbygumbygumbygumbygumbygumbygumbygumbygumby\\\"\"." +exclude :test_float_hash_random, "very slow: 70.52s on truffleruby 24.2.0-dev-b555f590, like ruby 3.2.4, GraalVM CE JVM [x86_64-linux] with AMD Ryzen 7 3700X 8-Core Processor (16 vCPUs)" +exclude :test_huge_iter_level, "spurious; RuntimeError expected but nothing was raised." +exclude :test_integer_hash_random, "very slow: 69.57s on truffleruby 24.2.0-dev-b555f590, like ruby 3.2.4, GraalVM CE JVM [x86_64-linux] with AMD Ryzen 7 3700X 8-Core Processor (16 vCPUs)" +exclude :test_inverse_hash, "<3732844395273875856> expected to be != to" +exclude :test_iterlevel_in_ivar_bug19589, "SystemStackError: stack level too deep" +exclude :test_merge!, "FrozenError expected but nothing was raised." +exclude :test_recursive_hash_value_struct, "Exception raised: <#(HeapCharBuffer.java:85)>>" exclude :test_rehash2, "RuntimeError expected but nothing was raised." -exclude :test_shift_none, "<\"FOO\"> expected but was" -exclude :test_update5, "FrozenError expected but nothing was raised." -exclude :test_transform_values_on_identhash, "<{1=>2, 3=>4, 5=>6, \"str\"=>1, \"str\"=>2}> expected but was" -exclude :test_s_AREF_from_pairs, "ArgumentError expected but nothing was raised." -exclude :test_any_hash_fixable, "too slow" -exclude :test_recursive_hash_value_struct, "[ruby-core:58567] [Bug #9151]." exclude :test_reject, "Expected 42 to be nil." -exclude :test_transform_keys_bang, "<{false=>1, :b=>2, :c=>3}> expected but was" -exclude :test_callcc_escape, "[ruby-dev:47803] [Bug #9105]." -exclude :test_ASET_fstring_key, "Expected \"abc\" (oid=39832) to be the same as \"abc\" (oid=39848)." -exclude :test_fetch_error, "Expected /\\.\\.\\.\\z/ to match \"key not found: \\\"gumbygumbygumbygumbygumbygumbygumbygumbygumbygumbygumbygumbygumbygumbygumbygumbygumbygumbygumbygumby\\\"\"." -exclude :test_ASET_fstring_non_literal_key, "Expected \"abc_def\" (oid=40568) to be the same as \"abc_def\" (oid=40584)." -exclude :test_callcc, "RuntimeError: Continuations are unsupported on TruffleRuby" -exclude :test_AREF_fstring_key, "NoMethodError: undefined method `count_objects' for ObjectSpace:Module" -exclude :test_callcc_iter_level, "RuntimeError: Continuations are unsupported on TruffleRuby" +exclude :test_reject_on_identhash, "<{}> expected but was <{\"str\"=>1, \"str\"=>2}>." +exclude :test_s_AREF_from_pairs, "ArgumentError expected but nothing was raised." +exclude :test_select_on_identhash, "<{\"str\"=>1, \"str\"=>2}> expected but was <{\"str\"=>2}>." +exclude :test_select_reject_will_not_rehash, "<1> expected but was <2>." +exclude :test_slice_on_identhash, "<{\"str\"=>1, \"str\"=>2}> expected but was <{\"str\"=>2}>." +exclude :test_symbol_hash_random, "slow: 43.82s on truffleruby 24.2.0-dev-b555f590, like ruby 3.2.4, GraalVM CE JVM [x86_64-linux] with AMD Ryzen 7 3700X 8-Core Processor (16 vCPUs)" +exclude :test_to_proc, " expected but was ." +exclude :test_transform_keys_bang, "<{false=>1, :b=>2, :c=>3}> expected but was <{false=>1}>." +exclude :test_transform_values_on_identhash, "<{1=>2, 3=>4, 5=>6, \"str\"=>1, \"str\"=>2}> expected but was <{1=>2, 3=>4, 5=>6, \"str\"=>2}>." +exclude :test_update5, "FrozenError expected but nothing was raised." diff --git a/test/mri/excludes/TestHash/TestSubHash.rb b/test/mri/excludes/TestHash/TestSubHash.rb index 8081fadbb96b..56bef99960cd 100644 --- a/test/mri/excludes/TestHash/TestSubHash.rb +++ b/test/mri/excludes/TestHash/TestSubHash.rb @@ -1,29 +1,33 @@ +exclude :test_AREF_fstring_key, "NoMethodError: undefined method `count_objects' for ObjectSpace:Module" +exclude :test_ASET_fstring_key, "Expected \"abc\" (oid=84584) to be the same as \"abc\" (oid=84600)." +exclude :test_ASET_fstring_non_literal_key, "Expected \"abc_def\" (oid=85320) to be the same as \"abc_def\" (oid=85336)." +exclude :test_NEWHASH_fstring_key, "Expected \"ABC\" (oid=44424) to be the same as \"ABC\" (oid=48)." +exclude :test_any_hash_fixable, "too slow" exclude :test_ar2st, "mutating Hash during key.hash" -exclude :test_to_proc, " expected but was" +exclude :test_callcc, "RuntimeError: Continuations are unsupported on TruffleRuby" +exclude :test_callcc_escape, "[ruby-dev:47803] [Bug #9105]." +exclude :test_callcc_iter_level, "RuntimeError: Continuations are unsupported on TruffleRuby" +exclude :test_callcc_reenter, "[ruby-dev:47803] [Bug #9105]." +exclude :test_create, "ArgumentError expected but nothing was raised." +exclude :test_fetch_error, "Expected /\\.\\.\\.\\z/ to match \"key not found: \\\"gumbygumbygumbygumbygumbygumbygumbygumbygumbygumbygumbygumbygumbygumbygumbygumbygumbygumbygumbygumby\\\"\"." +exclude :test_float_hash_random, "very slow: 72.11s on truffleruby 24.2.0-dev-b555f590, like ruby 3.2.4, GraalVM CE JVM [x86_64-linux] with AMD Ryzen 7 3700X 8-Core Processor: (16 vCPUs)" exclude :test_huge_iter_level, "RuntimeError expected but nothing was raised." +exclude :test_integer_hash_random, "very slow: 70.44s on truffleruby 24.2.0-dev-b555f590, like ruby 3.2.4, GraalVM CE JVM [x86_64-linux] with AMD Ryzen 7 3700X 8-Core Processor: (16 vCPUs)" +exclude :test_inverse_hash, "[ruby-core:34334]." +exclude :test_iterlevel_in_ivar_bug19589, "SystemStackError: stack level too deep" exclude :test_merge!, "FrozenError expected but nothing was raised." -exclude :test_create, "ArgumentError expected but nothing was raised." -exclude :test_callcc_reenter, "[ruby-dev:47803] [Bug #9105]." -exclude :test_select_reject_will_not_rehash, "<1> expected but was" +exclude :test_recursive_hash_value_struct, "[ruby-core:58567] [Bug #9151]." +exclude :test_rehash2, "RuntimeError expected but nothing was raised." +exclude :test_reject, "Expected {1=>\"one\", 2=>false, true=>\"true\", \"cat\"=>99} to be an instance of Hash, not TestHash::TestSubHash::SubHash." exclude :test_reject_on_identhash, "<{}> expected but was" +exclude :test_s_AREF_from_pairs, "ArgumentError expected but nothing was raised." exclude :test_select_on_identhash, "<{\"str\"=>1, \"str\"=>2}> expected but was" -exclude :test_slice_on_identhash, "<{\"str\"=>1, \"str\"=>2}> expected but was" +exclude :test_select_reject_will_not_rehash, "<1> expected but was" exclude :test_shift2, "<:foo> expected but was" -exclude :test_NEWHASH_fstring_key, "Expected \"ABC\" (oid=44424) to be the same as \"ABC\" (oid=48)." -exclude :test_inverse_hash, "[ruby-core:34334]." -exclude :test_rehash2, "RuntimeError expected but nothing was raised." exclude :test_shift_none, "<\"FOO\"> expected but was" -exclude :test_update5, "FrozenError expected but nothing was raised." -exclude :test_transform_values_on_identhash, "<{1=>2, 3=>4, 5=>6, \"str\"=>1, \"str\"=>2}> expected but was" -exclude :test_s_AREF_from_pairs, "ArgumentError expected but nothing was raised." -exclude :test_any_hash_fixable, "too slow" -exclude :test_recursive_hash_value_struct, "[ruby-core:58567] [Bug #9151]." -exclude :test_reject, "Expected {1=>\"one\", 2=>false, true=>\"true\", \"cat\"=>99} to be an instance of Hash, not TestHash::TestSubHash::SubHash." +exclude :test_slice_on_identhash, "<{\"str\"=>1, \"str\"=>2}> expected but was" +exclude :test_symbol_hash_random, "slow: 42.13s on truffleruby 24.2.0-dev-b555f590, like ruby 3.2.4, GraalVM CE JVM [x86_64-linux] with AMD Ryzen 7 3700X 8-Core Processor: (16 vCPUs)" +exclude :test_to_proc, " expected but was" exclude :test_transform_keys_bang, "<{false=>1, :b=>2, :c=>3}> expected but was" -exclude :test_callcc_escape, "[ruby-dev:47803] [Bug #9105]." -exclude :test_ASET_fstring_key, "Expected \"abc\" (oid=84584) to be the same as \"abc\" (oid=84600)." -exclude :test_fetch_error, "Expected /\\.\\.\\.\\z/ to match \"key not found: \\\"gumbygumbygumbygumbygumbygumbygumbygumbygumbygumbygumbygumbygumbygumbygumbygumbygumbygumbygumbygumby\\\"\"." -exclude :test_ASET_fstring_non_literal_key, "Expected \"abc_def\" (oid=85320) to be the same as \"abc_def\" (oid=85336)." -exclude :test_callcc, "RuntimeError: Continuations are unsupported on TruffleRuby" -exclude :test_AREF_fstring_key, "NoMethodError: undefined method `count_objects' for ObjectSpace:Module" -exclude :test_callcc_iter_level, "RuntimeError: Continuations are unsupported on TruffleRuby" +exclude :test_transform_values_on_identhash, "<{1=>2, 3=>4, 5=>6, \"str\"=>1, \"str\"=>2}> expected but was" +exclude :test_update5, "FrozenError expected but nothing was raised." diff --git a/test/mri/excludes/TestIO.rb b/test/mri/excludes/TestIO.rb index 4984c53dee25..ae2e40af199b 100644 --- a/test/mri/excludes/TestIO.rb +++ b/test/mri/excludes/TestIO.rb @@ -1,68 +1,64 @@ -exclude :test_DATA_binmode, "needs investigation" -exclude :test_advise, "needs investigation" -exclude :test_cloexec, "needs investigation" -exclude :test_close_uninitialized, "needs investigation" -exclude :test_copy_stream_dst_rbuf, "needs investigation" -exclude :test_copy_stream_pipe_nonblock, "needs investigation" -exclude :test_copy_stream_rbuf, "needs investigation" -exclude :test_copy_stream_socket6, "needs investigation" -exclude :test_copy_stream_strio_off, "needs investigation" -exclude :test_copy_stream_strio_to_tempfile, "needs investigation" -exclude :test_cross_thread_close_fd, "needs investigation" -exclude :test_exclusive_mode, "needs investigation" -exclude :test_flag, "needs investigation" -exclude :test_gets_limit_extra_arg, "needs investigation" -exclude :test_invalid_advise, "needs investigation" -exclude :test_new_with_block, "needs investigation" -exclude :test_open_flag, "needs investigation" -exclude :test_open_flag_binary, "needs investigation" -exclude :test_print_separators, "needs investigation" -exclude :test_puts_old_write, "needs investigation" -exclude :test_race_closed_stream, "needs investigation" -exclude :test_read, "needs investigation" -exclude :test_read_command, "needs investigation" -exclude :test_read_lock, "needs investigation" -exclude :test_read_nonblock_invalid_exception, "needs investigation" -exclude :test_readpartial_lock, "needs investigation" -exclude :test_readpartial_locktmp, "needs investigation" -exclude :test_reinitialize, "needs investigation" -exclude :test_reopen, "needs investigation" -exclude :test_reopen_encoding, "needs investigation" -exclude :test_reopen_opt, "needs investigation" -exclude :test_reopen_opt_encoding, "needs investigation" -exclude :test_set_stdout, "needs investigation" -exclude :test_ungetc, "needs investigation" -exclude :test_uninitialized, "needs investigation" -exclude :test_write_nonblock_invalid_exception, "needs investigation" -exclude :test_autoclose_true_closed_by_finalizer, "needs investigation" -exclude :test_binmode_pipe, "needs investigation" -exclude :test_close_on_exec, "needs investigation" -exclude :test_close_read, "needs investigation" -exclude :test_close_read_write_separately, "needs investigation" -exclude :test_close_write, "needs investigation" -exclude :test_copy_stream_socket7, "needs investigation" -exclude :test_copy_stream_to_duplex_io, "needs investigation" -exclude :test_cross_thread_close_stdio, "needs investigation" -exclude :test_dup, "needs investigation" -exclude :test_dup_many, "needs investigation" -exclude :test_open_redirect_keyword, "needs investigation" -exclude :test_pid_after_close_read, "needs investigation" -exclude :test_recycled_fd_close, "needs investigation" -exclude :"test_reopen_nonascii(EUC-JP)", "needs investigation" -exclude :"test_reopen_nonascii(Shift_JIS)", "needs investigation" -exclude :test_seek, "NameError: uninitialized constant TestIO::Bug" -exclude :test_seek_symwhence, "needs investigation" -exclude :test_ungetbyte, "needs investigation" -exclude :test_advise_pipe, "needs investigation - fails on Linux" -exclude :test_fcntl_lock_linux, "needs investigation - fails on Linux" -exclude :test_race_gets_and_close, "transient" +exclude :test_DATA_binmode, "assert_separately failed with error message" +exclude :test_advise, "tmpfs on Linux 6.8.0-41-generic." +exclude :test_advise_pipe, "[Errno::ESPIPE, Errno::EINVAL] exception expected, not #." +exclude :test_autoclose_false_closed_by_finalizer, "too slow" +exclude :test_autoclose_true_closed_by_finalizer, "Errno::EBADF expected but nothing was raised." +exclude :test_binmode_pipe, "Expected # to be binmode?." +exclude :test_cloexec, "Expected # to be close_on_exec?." +exclude :test_close_on_exec, "TypeError: wrong argument type NilClass (expected Integer)" +exclude :test_close_read, "TypeError: wrong argument type NilClass (expected Integer)" +exclude :test_close_read_write_separately, "slow: 33.15s on truffleruby 24.2.0-dev-48f958a9*, like ruby 3.2.4, GraalVM CE JVM [arm64-darwin23] with Apple M1 Max: (10 vCPUs)" +exclude :test_close_uninitialized, "IOError expected but nothing was raised." +exclude :test_close_write, "TypeError: wrong argument type NilClass (expected Integer)" +exclude :test_copy_stream_dst_rbuf, "<\"abxyz\"> expected but was <\"abcxyz\">." exclude :test_copy_stream_megacontent_nonblock, "transient, and very slow on aarch64-darwin" +exclude :test_copy_stream_pipe_nonblock, "retain-on-retag; very long string mismatch" +exclude :test_copy_stream_rbuf, "<3> expected but was <2>." +exclude :test_copy_stream_socket6, "retain-on-retag; very long string mismatch" +exclude :test_copy_stream_socket7, "NotImplementedError: fork is not available" +exclude :test_copy_stream_strio_off, "ArgumentError expected but nothing was raised." +exclude :test_copy_stream_to_duplex_io, "IOError: not opened for writing" +exclude :test_cross_thread_close_fd, "hangs" +exclude :test_cross_thread_close_stdio, "hangs" +exclude :test_dup, "TypeError: wrong argument type NilClass (expected Integer)" +exclude :test_dup_many, "ArgumentError: unknown exec option: :rlimit_nofile" +exclude :test_dup_timeout, "NoMethodError: undefined method `timeout=' for #" +exclude :test_each_line, "<[\"foo\\n\"]> expected but was <[\"foo\"]>." +exclude :test_exclusive_mode, "[Errno::EEXIST] exception expected, not #." +exclude :test_explicit_path, "Expected /Fake Path/ to match \"#\"." +exclude :test_fcntl_lock_linux, "NotImplementedError: fork is not available" if RUBY_PLATFORM.include?('linux') +exclude :test_flag, "ArgumentError expected but nothing was raised." +exclude :test_gets_chomp_rs_nil, "<\"a\\n\" + \"\\n\" + \"b\\n\" + \"\\n\"> expected but was <\"a\\n\" + \"\\n\" + \"b\\n\">." +exclude :test_gets_limit_extra_arg, "TypeError expected but nothing was raised." +exclude :test_invalid_advise, "Expected Exception(NotImplementedError) was raised, but the message doesn't match. Expected /:Normal/ to match \"Unsupported advice: Normal\"." +exclude :test_new_with_block, "expected: /IO入出力/" +exclude :test_pid_after_close_read, "IOError: closed stream" +exclude :test_print_separators, "<\"a:b:c\\n\"> expected but was <\"abc\\n\">." +exclude :test_puts_old_write, "expected: /[.#]write is outdated/" +exclude :test_race_closed_stream, "transient" +exclude :test_race_gets_and_close, "transient" +exclude :test_read_command, "[Errno::ENOENT, Errno::EINVAL] expected but nothing was raised." +exclude :test_read_lock, "RuntimeError expected but nothing was raised." +exclude :test_read_nonblock_invalid_exception, "[ArgumentError] exception expected, not #." exclude :test_read_nonblock_zero_size, "Expected \"01234567\" to be empty." +exclude :test_readpartial_lock, "RuntimeError expected but nothing was raised." +exclude :test_readpartial_locktmp, "<100> expected but was <0>." +exclude :test_recycled_fd_close, "\"bad\" reader timeout." +exclude :test_reinitialize, "[RuntimeError] exception expected, not #." +exclude :test_reopen, "<\"baz\\n\"> expected but was ." +exclude :test_reopen_encoding, "<#> expected but was <#>." +exclude :"test_reopen_nonascii(EUC-JP)", "Errno::EILSEQ: Invalid or incomplete multibyte or wide character - ��ӡ�" if RUBY_PLATFORM.include?('darwin') +exclude :"test_reopen_nonascii(Shift_JIS)", "Errno::EILSEQ: Invalid or incomplete multibyte or wide character - ���r�[" if RUBY_PLATFORM.include?('darwin') +exclude :test_reopen_opt, "Exception raised: <#>" +exclude :test_reopen_opt_encoding, "Exception raised: <#>" +exclude :test_seek, "NameError: uninitialized constant TestIO::Bug" if RUBY_PLATFORM.include?('linux') +exclude :test_seek_symwhence, "TypeError: unsupported type [:SET]" +exclude :test_select_exceptfds, "Truffle::IOOperations.poll(acc, Truffle::IOOperations::POLLIN_SET | Truffle::IOOperations::POLLEX_SET, nil) returns POLLRDNORM|POLLPRI|POLLIN on Linux (correct) but POLLRDNORM|POLLIN on macOS (bug). With events=POLLPRI it hangs on macOS. It seems a bug of macOS poll() not handling TCP MSG_OOB. MSG_OOB is poorly supported across platforms anyway." if RUBY_PLATFORM.include?('darwin') +exclude :test_set_stdout, "Expected Exception(TypeError) was raised, but the message doesn't match. Expected /\\$標準出力 must.*, Xほげ given/ to match \"$stdout must have a write method, Xほげ given\"." exclude :test_sysread_locktmp, "Exception(RuntimeError) with message matches to /can't modify string; temporarily locked/." -exclude :test_autoclose_false_closed_by_finalizer, "too slow" exclude :test_sysread_with_negative_length, "[ArgumentError] exception expected, not #." -exclude :test_gets_chomp_rs_nil, "[Bug #18770]." -exclude :test_each_line, "[Bug #18770]." -exclude :test_explicit_path, "Expected /Fake Path/ to match \"#\"." -exclude :test_dup_timeout, "NoMethodError: undefined method `timeout=' for #" -exclude :test_select_exceptfds, "Truffle::IOOperations.poll(acc, Truffle::IOOperations::POLLIN_SET | Truffle::IOOperations::POLLEX_SET, nil) returns POLLRDNORM|POLLPRI|POLLIN on Linux (correct) but POLLRDNORM|POLLIN on macOS (bug). With events=POLLPRI it hangs on macOS. It seems a bug of macOS poll() not handling TCP MSG_OOB. MSG_OOB is poorly supported across platforms anyway." if RUBY_PLATFORM.include?('darwin') +exclude :test_threaded_flush, "slow: 32.30s on truffleruby 24.2.0-dev-b555f590, like ruby 3.2.4, GraalVM CE JVM [x86_64-linux] with AMD Ryzen 7 3700X 8-Core Processor: (16 vCPUs)" +exclude :test_ungetbyte, "Errno::EINVAL: Invalid argument" +exclude :test_ungetc, "IOError expected but nothing was raised." +exclude :test_uninitialized, "IOError expected but nothing was raised." +exclude :test_write_nonblock_invalid_exception, "ArgumentError expected but nothing was raised." diff --git a/test/mri/excludes/TestIOBuffer.rb b/test/mri/excludes/TestIOBuffer.rb index 25355fdb6d14..176c0aa49a2f 100644 --- a/test/mri/excludes/TestIOBuffer.rb +++ b/test/mri/excludes/TestIOBuffer.rb @@ -1,42 +1,39 @@ -exclude :test_file_mapped, "NameError: uninitialized constant IO::Buffer" +exclude :test_clear, "NameError: uninitialized constant IO::Buffer" +exclude :test_compare_different_size, "NameError: uninitialized constant IO::Buffer" +exclude :test_compare_same_size, "NameError: uninitialized constant IO::Buffer" +exclude :test_default_size, "NameError: uninitialized constant IO::Buffer" +exclude :test_each, "NameError: uninitialized constant IO::Buffer" +exclude :test_each_byte, "NameError: uninitialized constant IO::Buffer" exclude :test_endian, "NameError: uninitialized constant IO::Buffer" -exclude :test_new_readonly, "NameError: uninitialized constant IO::Buffer" -exclude :test_new_mapped, "NameError: uninitialized constant IO::Buffer" +exclude :test_file_mapped, "NameError: uninitialized constant IO::Buffer" +exclude :test_file_mapped_invalid, "[NoMethodError] exception expected, not #." exclude :test_flags, "NameError: uninitialized constant IO::Buffer" -exclude :test_default_size, "NameError: uninitialized constant IO::Buffer" -exclude :test_compare_same_size, "NameError: uninitialized constant IO::Buffer" -exclude :test_slice, "NameError: uninitialized constant IO::Buffer" -exclude :test_write, "NameError: uninitialized constant IO::Buffer" -exclude :test_pwrite, "NameError: uninitialized constant IO::Buffer" -exclude :test_read, "NameError: uninitialized constant IO::Buffer" -exclude :test_slice_bounds, "NameError: uninitialized constant IO::Buffer" -exclude :test_clear, "NameError: uninitialized constant IO::Buffer" -exclude :test_string_mapped, "NameError: uninitialized constant IO::Buffer" +exclude :test_get_set_value, "NameError: uninitialized constant IO::Buffer" +exclude :test_get_set_values, "NameError: uninitialized constant IO::Buffer" +exclude :test_get_string, "NameError: uninitialized constant IO::Buffer" +exclude :test_inplace_operators, "NameError: uninitialized constant IO::Buffer" exclude :test_invalidation, "NameError: uninitialized constant IO::Buffer" -exclude :test_pread, "NameError: uninitialized constant IO::Buffer" exclude :test_locked, "NameError: uninitialized constant IO::Buffer" -exclude :test_get_string, "NameError: uninitialized constant IO::Buffer" -exclude :test_resize_preserve, "NameError: uninitialized constant IO::Buffer" -exclude :test_compare_different_size, "NameError: uninitialized constant IO::Buffer" -exclude :test_string_mapped_frozen, "NameError: uninitialized constant IO::Buffer" -exclude :test_resize_mapped, "NameError: uninitialized constant IO::Buffer" -exclude :test_get_set_primitives, "NameError: uninitialized constant IO::Buffer" exclude :test_new_internal, "NameError: uninitialized constant IO::Buffer" -exclude :test_file_mapped_invalid, "[NoMethodError] exception expected, not #." +exclude :test_new_mapped, "NameError: uninitialized constant IO::Buffer" +exclude :test_new_readonly, "NameError: uninitialized constant IO::Buffer" exclude :test_non_string, "[TypeError] exception expected, not #." -exclude :test_string_mapped_mutable, "NameError: uninitialized constant IO::Buffer" -exclude :test_slice_bounds_error, "NameError: uninitialized constant IO::Buffer" -exclude :test_pwrite_offset, "NameError: uninitialized constant IO::Buffer" -exclude :test_get_set_value, "NameError: uninitialized constant IO::Buffer" +exclude :test_operators, "NameError: uninitialized constant IO::Buffer" +exclude :test_pread, "NameError: uninitialized constant IO::Buffer" exclude :test_pread_offset, "NameError: uninitialized constant IO::Buffer" -exclude :test_each_byte, "NameError: uninitialized constant IO::Buffer" -exclude :test_inplace_operators, "NameError: uninitialized constant IO::Buffer" -exclude :test_slice_arguments, "NameError: uninitialized constant IO::Buffer" +exclude :test_pwrite, "NameError: uninitialized constant IO::Buffer" +exclude :test_pwrite_offset, "NameError: uninitialized constant IO::Buffer" +exclude :test_read, "NameError: uninitialized constant IO::Buffer" +exclude :test_resize_mapped, "NameError: uninitialized constant IO::Buffer" +exclude :test_resize_preserve, "NameError: uninitialized constant IO::Buffer" exclude :test_resize_zero_external, "NameError: uninitialized constant IO::Buffer" exclude :test_resize_zero_internal, "NameError: uninitialized constant IO::Buffer" exclude :test_shared, "NameError: uninitialized constant IO::Buffer" -exclude :test_operators, "NameError: uninitialized constant IO::Buffer" -exclude :test_get_set_values, "NameError: uninitialized constant IO::Buffer" -exclude :test_each, "NameError: uninitialized constant IO::Buffer" +exclude :test_slice, "NameError: uninitialized constant IO::Buffer" +exclude :test_slice_arguments, "NameError: uninitialized constant IO::Buffer" +exclude :test_slice_bounds_error, "NameError: uninitialized constant IO::Buffer" +exclude :test_string_mapped, "NameError: uninitialized constant IO::Buffer" +exclude :test_string_mapped_frozen, "NameError: uninitialized constant IO::Buffer" +exclude :test_string_mapped_mutable, "NameError: uninitialized constant IO::Buffer" exclude :test_values, "NameError: uninitialized constant IO::Buffer" -exclude :test_io_buffer_read_write, "NameError: uninitialized constant IO::Buffer" +exclude :test_write, "NameError: uninitialized constant IO::Buffer" diff --git a/test/mri/excludes/TestIOTimeout.rb b/test/mri/excludes/TestIOTimeout.rb index 2e48ea78fdb7..201959ad6aa5 100644 --- a/test/mri/excludes/TestIOTimeout.rb +++ b/test/mri/excludes/TestIOTimeout.rb @@ -1,4 +1,4 @@ -exclude :test_timeout_puts, "NoMethodError: undefined method `timeout=' for #" -exclude :test_timeout_read_exception, "NoMethodError: undefined method `timeout=' for #" -exclude :test_timeout_gets_exception, "NoMethodError: undefined method `timeout=' for #" -exclude :test_timeout_attribute, "NoMethodError: private method `timeout' called for #" +exclude :test_timeout_attribute, "spurious; NoMethodError: private method `timeout' called for #" +exclude :test_timeout_gets_exception, "spurious: NoMethodError: undefined method `timeout=' for #" +exclude :test_timeout_puts, "spurious; NoMethodError: undefined method `timeout=' for #" +exclude :test_timeout_read_exception, "spurious; NoMethodError: undefined method `timeout=' for #" \ No newline at end of file diff --git a/test/mri/excludes/TestIOWait.rb b/test/mri/excludes/TestIOWait.rb index 0e1b25afd216..da0aeb319337 100644 --- a/test/mri/excludes/TestIOWait.rb +++ b/test/mri/excludes/TestIOWait.rb @@ -1,4 +1,4 @@ -exclude :test_nread, "buffered reads are not implemented" -exclude :test_nread_buffered, "buffered reads are not implemented" -exclude :test_wait_buffered, "buffered reads are not implemented" -exclude :test_wait_readable_buffered, "buffered reads are not implemented" +exclude :test_nread, "<1> expected but was <0>." +exclude :test_nread_buffered, "<1> expected but was <0>." +exclude :test_wait_buffered, " expected but was <#>." +exclude :test_wait_readable_buffered, " expected but was <#>." diff --git a/test/mri/excludes/TestIOWaitUncommon.rb b/test/mri/excludes/TestIOWaitUncommon.rb index 096ea2591fe3..e69de29bb2d1 100644 --- a/test/mri/excludes/TestIOWaitUncommon.rb +++ b/test/mri/excludes/TestIOWaitUncommon.rb @@ -1 +0,0 @@ -exclude :test_fifo_wait, "needs investigation" diff --git a/test/mri/excludes/TestIO_Console.rb b/test/mri/excludes/TestIO_Console.rb index 22e38c5b26ee..a7a096cba123 100644 --- a/test/mri/excludes/TestIO_Console.rb +++ b/test/mri/excludes/TestIO_Console.rb @@ -1 +1,2 @@ -exclude :test_getch_timeout, "Expected \"\\n\" to be nil." +exclude :test_close, "Exception raised: <#>" +exclude :test_sync, "console should be unbuffered" diff --git a/test/mri/excludes/TestIO_M17N.rb b/test/mri/excludes/TestIO_M17N.rb index a6ab8c937c85..dcc9b8e47619 100644 --- a/test/mri/excludes/TestIO_M17N.rb +++ b/test/mri/excludes/TestIO_M17N.rb @@ -1,72 +1,66 @@ -exclude :test_binmode, "needs investigation" -exclude :test_binmode2, "needs investigation" -exclude :test_binmode_decode_universal_newline, "needs investigation" -exclude :test_binmode_write_ascii_incompat_internal, "needs investigation" -exclude :test_bom_non_reading, "needs investigation" -exclude :test_bom_non_utf, "needs investigation" -exclude :test_cbuf, "needs investigation" -exclude :test_cr_decorator_on_stdout, "needs investigation" -exclude :test_crlf_decorator_on_stdout, "needs investigation" -exclude :test_default_mode_decode_universal_newline_gets, "needs investigation" -exclude :test_each_codepoint_need_more, "needs investigation" -exclude :test_getc_invalid, "needs investigation" -exclude :test_getc_invalid2, "needs investigation" -exclude :test_getc_invalid3, "needs investigation" -exclude :test_getc_stateful_conversion, "needs investigation" -exclude :test_gets_invalid, "needs investigation" -exclude :test_ignored_encoding_option, "needs investigation" -exclude :test_invalid_w, "needs investigation" -exclude :test_nonascii_terminator, "needs investigation" -exclude :test_pipe_terminator_conversion, "needs investigation" -exclude :test_read_all_invalid, "needs investigation" -exclude :test_read_mode, "needs investigation" -exclude :test_read_newline_conversion_error, "needs investigation" -exclude :test_s_foreach_open_args_enc, "needs investigation" -exclude :test_s_foreach_open_args_enc_enc, "needs investigation" -exclude :test_s_foreach_open_args_enc_enc_in_opt, "needs investigation" -exclude :test_s_foreach_open_args_enc_enc_in_opt2, "needs investigation" -exclude :test_s_foreach_open_args_enc_in_opt, "needs investigation" -exclude :test_s_foreach_open_args_enc_in_opt2, "needs investigation" -exclude :test_set_encoding_binmode, "needs investigation" -exclude :test_set_encoding_unsupported, "needs investigation" -exclude :"test_strip_bom:UTF-16LE", "needs investigation" -exclude :test_terminator_conversion, "needs investigation" -exclude :test_terminator_stateful_conversion, "needs investigation" -exclude :test_text_mode, "needs investigation" -exclude :test_textmode_decode_universal_newline_getc, "needs investigation" -exclude :test_textmode_decode_universal_newline_gets, "needs investigation" -exclude :test_textmode_decode_universal_newline_read, "needs investigation" -exclude :test_textmode_decode_universal_newline_utf16, "needs investigation" -exclude :test_textmode_paragraph_binaryread, "needs investigation" -exclude :test_textmode_paragraphmode, "needs investigation" -exclude :test_undef_w_stateful, "needs investigation" -exclude :test_undef_w_stateless, "needs investigation" -exclude :test_ungetc_stateful_conversion2, "needs investigation" -exclude :test_w_xml_attr, "needs investigation" -exclude :test_write_mode, "needs investigation" -exclude :test_bom_too_long_utfname, "needs investigation" -exclude :test_dup_undef, "needs investigation" -exclude :test_getc_newlineconv_invalid, "needs investigation" -exclude :test_gets_limit, "needs investigation" -exclude :test_inspect_nonascii, "needs investigation" -exclude :test_invalid_r, "needs investigation" -exclude :test_marshal, "needs investigation" -exclude :test_pipe, "needs investigation" -exclude :test_pipe_convert_partial_read, "needs investigation" -exclude :test_puts_widechar, "needs investigation" -exclude :test_read_newline_conversion_with_encoding_conversion, "needs investigation" -exclude :test_read_stateful, "needs investigation" -exclude :test_s_pipe_invalid, "needs investigation" -exclude :test_s_pipe_undef, "needs investigation" -exclude :test_s_pipe_undef_replace_string, "needs investigation" -exclude :test_set_encoding_invalid, "needs investigation" -exclude :test_set_encoding_undef, "needs investigation" -exclude :test_set_encoding_undef_replace, "needs investigation" -exclude :test_undef_r, "needs investigation" -exclude :test_write_conversion_anyenc_stateful, "needs investigation" -exclude :test_write_conversion_anyenc_stateful_nosync, "needs investigation" -exclude :test_write_conversion_anyenc_stateless, "needs investigation" -exclude :test_write_conversion_fixenc, "needs investigation" -exclude :test_stdout, " expected but was" -exclude :test_stderr, " expected but was" +exclude :test_binmode, "<\"\\n\"> expected but was <\"\\r\">." +exclude :test_binmode2, "<\"\\n\"> expected but was <\"\\r\">." +exclude :test_binmode_decode_universal_newline, "ArgumentError expected but nothing was raised." +exclude :test_bom_non_reading, "Exception raised: <#>" +exclude :test_bom_non_utf, "expected: /BOM/" +exclude :test_bom_too_long_utfname, "ArgumentError: unknown encoding name - utf-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" +exclude :test_cbuf, "IOError expected but nothing was raised." +exclude :test_cr_decorator_on_stdout, "<\"abc\\r\"> expected but was <\"abc\\n\">." +exclude :test_crlf_decorator_on_stdout, "<\"abc\\r\\n\"> expected but was <\"abc\\n\">." +exclude :test_default_mode_decode_universal_newline_gets, "<\"a\\n\"> expected but was <\"a\\r\\n\">." +exclude :test_dup_undef, "Encoding::UndefinedConversionError: \"\\xEF\\xBF\\xBD\" to EUC-JP in conversion from UTF-8 to EUC-JP" +exclude :test_each_codepoint_need_more, "| core/kernel.rb:132:in `Integer': can't convert nil into Integer (TypeError)" +exclude :test_getc_invalid, "Encoding::InvalidByteSequenceError expected but nothing was raised." +exclude :test_getc_invalid2, "Encoding::InvalidByteSequenceError expected but nothing was raised." +exclude :test_getc_invalid3, "ArgumentError: UTF-16 string byte length is not a multiple of 2" +exclude :test_getc_newlineconv_invalid, "NoMethodError: undefined method `valid_encoding?' for nil:NilClass" +exclude :test_getc_stateful_conversion, "<\"\\x{A3B0}\"> expected but was <\"\">." +exclude :test_gets_invalid, "<\"\\x{A4A6}\\x{A4A8}\"> expected but was ." +exclude :test_gets_limit, "<\"\\x{A4A2}\"> expected but was <\"\\xA4\">." +exclude :test_ignored_encoding_option, "expected: /エンコーディング/" +exclude :test_inspect_nonascii, "Errno::EILSEQ: Invalid or incomplete multibyte or wide character - ��" if RUBY_PLATFORM.include?('darwin') +exclude :test_invalid_r, "Encoding::InvalidByteSequenceError: \"\\x80\" on UTF-8" +exclude :test_invalid_w, "Exception raised: <#>" +exclude :test_nonascii_terminator, "ArgumentError expected but nothing was raised." +exclude :test_pipe, "Exception(ArgumentError) with message matches to /invalid encoding name/." +exclude :test_pipe_convert_partial_read, "Errno::EPIPE: Broken pipe" +exclude :test_pipe_terminator_conversion, "<\"before □\"> expected but was <\"before □ after\">." exclude :test_popenv_r_enc_enc_in_opt2, "transient: <\"\\x{8EA1}\"> expected but was" +exclude :test_puts_widechar, "<\"\\x00\\x00\\x01\\n\" + \"\\n\"> expected but was <\"\\x00\\x00\\x01\\n\" + \"\\x00\">." +exclude :test_read_all_invalid, "<\"\\x{A4A6}\\x{A4A8}\"> expected but was <\"\">." +exclude :test_read_mode, "<\"a\\n\" + \"b\\n\" + \"c\\n\" + \"¢\"> expected but was <\"a\\rb\\r\\n\" + \"c\\n\" + \"¢\">." +exclude :test_read_newline_conversion_error, "ArgumentError expected but nothing was raised." +exclude :test_read_newline_conversion_with_encoding_conversion, "Encoding::CompatibilityError: incompatible character encodings: UTF-16BE and UTF-8" +exclude :test_read_stateful, "Encoding::CompatibilityError: incompatible character encodings: ISO-2022-JP and UTF-8" +exclude :test_s_foreach_open_args_enc, "<#> expected but was <#>." +exclude :test_s_foreach_open_args_enc_enc, "<#> expected but was <#>." +exclude :test_s_foreach_open_args_enc_enc_in_opt, "<#> expected but was <#>." +exclude :test_s_foreach_open_args_enc_enc_in_opt2, "<#> expected but was <#>." +exclude :test_s_foreach_open_args_enc_in_opt, "<#> expected but was <#>." +exclude :test_s_foreach_open_args_enc_in_opt2, "<#> expected but was <#>." +exclude :test_s_pipe_invalid, "Encoding::InvalidByteSequenceError: \"\\x80\" on UTF-8" +exclude :test_s_pipe_undef, "Encoding::UndefinedConversionError: \"\\xEF\\xBF\\xBD\" to EUC-JP in conversion from UTF-8 to EUC-JP" +exclude :test_s_pipe_undef_replace_string, "Encoding::UndefinedConversionError: \"\\xEF\\xBF\\xBD\" to EUC-JP in conversion from UTF-8 to EUC-JP" +exclude :test_set_encoding_binmode, "ArgumentError expected but nothing was raised." +exclude :test_set_encoding_invalid, "Encoding::InvalidByteSequenceError: \"\\x80\" on UTF-8" +exclude :test_set_encoding_undef, "Encoding::UndefinedConversionError: \"\\xEF\\xBF\\xBD\" to EUC-JP in conversion from UTF-8 to EUC-JP" +exclude :test_set_encoding_undef_replace, "Encoding::UndefinedConversionError: \"\\xEF\\xBF\\xBD\" to EUC-JP in conversion from UTF-8 to EUC-JP" +exclude :test_set_encoding_unsupported, "Exception raised: <#>" +exclude :"test_strip_bom:UTF-16LE", "UTF-16LE." +exclude :test_terminator_conversion, "\"before \\xFF\".force_encoding(\"ISO-8859-1\") expected but not equal to" +exclude :test_terminator_stateful_conversion, "\"before \\xA3\\xB0\\xA3\\xB1 after\".force_encoding(\"EUC-JP\") expected but not equal to" +exclude :test_text_mode, "<\"\\n\"> expected but was <\"\\r\\n\">." +exclude :test_textmode_decode_universal_newline_getc, "<\"\\n\"> expected but was <\"\\r\">." +exclude :test_textmode_decode_universal_newline_gets, "<\"a\\n\"> expected but was <\"a\\r\\n\">." +exclude :test_textmode_decode_universal_newline_read, "<\"a\\n\" + \"b\\n\" + \"c\\n\"> expected but was <\"a\\r\\n\" + \"b\\r\\n\" + \"c\\r\\n\">." +exclude :test_textmode_decode_universal_newline_utf16, "<\"a\\n\" + \"b\\n\" + \"c\\n\"> expected but was <\"a\\r\\n\" + \"b\\r\\n\" + \"c\\r\\n\">." +exclude :test_textmode_paragraph_binaryread, "<\"a\\n\" + \"\\n\"> expected but was <\"a\\r\\n\" + \"\\r\\n\" + \"\\r\\n\" + \"cdefgh\">." +exclude :test_textmode_paragraphmode, "<\"a\\n\" + \"\\n\"> expected but was <\"a\\r\\n\" + \"\\r\\n\" + \"\\r\\n\" + \"c\">." +exclude :test_undef_r, "Encoding::UndefinedConversionError: \"\\xEF\\xBF\\xBD\" to EUC-JP in conversion from UTF-8 to EUC-JP" +exclude :test_undef_w_stateful, "Exception raised: <#>" +exclude :test_undef_w_stateless, "Exception raised: <#>" +exclude :test_ungetc_stateful_conversion2, "<\"before \\x{A3B0}\"> expected but was <\"before \\x{A3B0}\\x{A3B1} after\">." +exclude :test_w_xml_attr, "<\"\\\"&<>"'\\xE4\\xB8\\x82\\xE3\\x81\\x82\\n\" + \"\\\"\"> expected but was <\"&<>\\\"'\\xE4\\xB8\\x82\\xE3\\x81\\x82\\n\">." +exclude :test_write_conversion_anyenc_stateful, "<\"\\e$B$\\\"$$\\e(B\"> expected but was <\"\\e$B$\\\"\\e(B\\e$B$$\\e(B\">." +exclude :test_write_conversion_anyenc_stateful_nosync, "<\"\\e$B$\\\"$$\\e(B\"> expected but was <\"\\e$B$\\\"\\e(B\\e$B$$\\e(B\">." +exclude :test_write_conversion_fixenc, "<\"\\e$B$\\\"$$\\e(B\"> expected but was <\"\\e$B$\\\"\\e(B\\e$B$$\\e(B\">." diff --git a/test/mri/excludes/TestIRB/TestColor.rb b/test/mri/excludes/TestIRB/TestColor.rb new file mode 100644 index 000000000000..f6d77a36a01c --- /dev/null +++ b/test/mri/excludes/TestIRB/TestColor.rb @@ -0,0 +1 @@ +exclude :test_colorize_code_with_local_variables, "Case: colorize_code(\"a /(b +1)/i\")" diff --git a/test/mri/excludes/TestIRB/TestCompletion/TestRequireComepletion.rb b/test/mri/excludes/TestIRB/TestCompletion/TestRequireComepletion.rb index 781142ff4b94..5afbca7871e6 100644 --- a/test/mri/excludes/TestIRB/TestCompletion/TestRequireComepletion.rb +++ b/test/mri/excludes/TestIRB/TestCompletion/TestRequireComepletion.rb @@ -1 +1,4 @@ +exclude :test_complete_require, "spurious; Expected [] to include \"'irb/init\"." exclude :test_complete_require_relative, "Expected [] to include \"'lib/irb/init\"." +exclude :test_complete_require_with_pathname_in_load_path, "spurious; Expected [] to include \"'foo\"." +exclude :test_complete_require_with_string_convertable_in_load_path, "spurious; TypeError: no implicit conversion of Object into String" \ No newline at end of file diff --git a/test/mri/excludes/TestInteger.rb b/test/mri/excludes/TestInteger.rb index 1b02e7f64e25..87284ed5458d 100644 --- a/test/mri/excludes/TestInteger.rb +++ b/test/mri/excludes/TestInteger.rb @@ -1,15 +1,12 @@ -exclude :test_Integer, "needs investigation" -exclude :test_Integer_with_invalid_exception, "needs investigation" -exclude :test_ceil, "needs investigation" -exclude :test_round, "needs investigation" -exclude :test_square_root, "needs investigation" -exclude :test_Integer_with_exception_keyword, "needs investigation" -exclude :test_bitwise_and_with_integer_coercion, "needs investigation" -exclude :test_bitwise_or_with_integer_coercion, "needs investigation" -exclude :test_bitwise_xor_with_integer_coercion, "needs investigation" -exclude :test_pow, "needs investigation" -exclude :test_chr, "needs investigation" -exclude :test_try_convert, "NoMethodError: undefined method `try_convert' for Integer:Class" -exclude :test_times_bignum_redefine_plus_lt, "[ruby-core:106361]." +exclude :test_Integer, "[Encoding::CompatibilityError] exception expected, not #." exclude :test_Integer_when_to_str, "TypeError: can't convert Object into Integer" -exclude :test_ceildiv, "NoMethodError: undefined method `ceildiv' for 0:Integer" +exclude :test_Integer_with_exception_keyword, "RuntimeError: " +exclude :test_Integer_with_invalid_exception, "ArgumentError expected but nothing was raised." +exclude :test_bitwise_and_with_integer_coercion, "TypeError: # can't be coerced into Integer" +exclude :test_bitwise_or_with_integer_coercion, "TypeError: # can't be coerced into Integer" +exclude :test_bitwise_xor_with_integer_coercion, "TypeError: # can't be coerced into Integer" +exclude :test_ceil, "<11110> expected but was <11120>." +exclude :test_pow, "FloatDomainError: Infinity" +exclude :test_round, "<300> expected but was <200>." +exclude :test_square_root, "10**33." +exclude :test_times_bignum_redefine_plus_lt, " expected but was ." diff --git a/test/mri/excludes/TestIntegerComb.rb b/test/mri/excludes/TestIntegerComb.rb index 90e52ba47acb..3c120bbdcb75 100644 --- a/test/mri/excludes/TestIntegerComb.rb +++ b/test/mri/excludes/TestIntegerComb.rb @@ -1,8 +1,6 @@ -exclude :test_pow, "needs investigation" -exclude :test_divmod, "needs investigation" -exclude :test_pack_utf8, "needs investigation" -exclude :test_printf_b, "needs investigation" -exclude :test_printf_o, "needs investigation" -exclude :test_remainder, "needs investigation" -exclude :test_rshift, "needs investigation" -exclude :test_lshift, "needs investigation" +exclude :test_divmod, "<0> expected but was <-6277101735386680763835789423207666416102355444464034512898>." +exclude :test_pack_utf8, "RangeError expected but nothing was raised." +exclude :test_pow, "Bignum in long range : 1 (java.lang.AssertionError) from org.truffleruby.core.numeric.RubyBignum.(RubyBignum.java:34)" +exclude :test_printf_b, "sprintf('%b', -18446744073709551615) = \"..100000001\"." +exclude :test_printf_o, "sprintf('%o', -1073741825) = \"..727777777777\"." +exclude :test_remainder, "-6277101735386680763835789423207666416102355444464034512898.remainder(-6277101735386680763835789423207666416102355444464034512898)." diff --git a/test/mri/excludes/TestIter/YieldBlock.rb b/test/mri/excludes/TestIter/YieldBlock.rb index ff997aa8b5cc..acfa7cc21816 100644 --- a/test/mri/excludes/TestIter/YieldBlock.rb +++ b/test/mri/excludes/TestIter/YieldBlock.rb @@ -1,2 +1,2 @@ -exclude :test_yield_block, "needs investigation" -exclude :test_yield_lambda, "needs investigation" +exclude :test_yield_block, "NoMethodError: undefined method `yield_block' for #" +exclude :test_yield_lambda, "NoMethodError: undefined method `yield_block' for #" diff --git a/test/mri/excludes/TestIterator.rb b/test/mri/excludes/TestIterator.rb index 079bb08bcb44..e69de29bb2d1 100644 --- a/test/mri/excludes/TestIterator.rb +++ b/test/mri/excludes/TestIterator.rb @@ -1 +0,0 @@ -exclude :test_ljump, "needs investigation" diff --git a/test/mri/excludes/TestKeyError.rb b/test/mri/excludes/TestKeyError.rb index 3473b042f5c7..96d3e70bc07b 100644 --- a/test/mri/excludes/TestKeyError.rb +++ b/test/mri/excludes/TestKeyError.rb @@ -1,2 +1,2 @@ -exclude :test_key, "needs investigation" -exclude :test_receiver, "needs investigation" +exclude :test_key, "ArgumentError expected but nothing was raised." +exclude :test_receiver, "ArgumentError expected but nothing was raised." diff --git a/test/mri/excludes/TestKeywordArguments.rb b/test/mri/excludes/TestKeywordArguments.rb index 29bb188e0277..0bdcb13b8efe 100644 --- a/test/mri/excludes/TestKeywordArguments.rb +++ b/test/mri/excludes/TestKeywordArguments.rb @@ -1,6 +1,4 @@ -exclude :test_arity_error_message, "needs investigation" -exclude :test_dig_method_missing_kwsplat, "needs investigation" -exclude :test_rb_call_super_kw_method_missing_kwsplat, "needs investigation" -exclude :test_rb_yield_block_kwsplat, "needs investigation" -exclude :test_unset_hash_flag, "<{:a=>1}>" -exclude :test_rest_keyrest, "[ruby-core:55203] [Bug #8463]." +exclude :test_arity_error_message, "Expected Exception(ArgumentError) was raised, but the message doesn't match. Expected /required keyword: x\\)/ to match \"wrong number of arguments (given 1, expected 0)\"." +exclude :test_dig_method_missing_kwsplat, "TypeError: Object does not have #dig method" +exclude :test_rb_call_super_kw_method_missing_kwsplat, "NameError: uninitialized constant TestKeywordArguments::Bug" +exclude :test_rb_yield_block_kwsplat, "NameError: uninitialized constant TestKeywordArguments::Bug" diff --git a/test/mri/excludes/TestLambdaParameters.rb b/test/mri/excludes/TestLambdaParameters.rb index 342563967d5c..4cb62ac5485e 100644 --- a/test/mri/excludes/TestLambdaParameters.rb +++ b/test/mri/excludes/TestLambdaParameters.rb @@ -1,6 +1,6 @@ -exclude :test_brace_lambda_source_location, "needs investigation" -exclude :test_do_lambda_source_location, "needs investigation" -exclude :test_lambda_as_iterator, "needs investigation" +exclude :test_brace_lambda_source_location, "must be at the beginning of the block." +exclude :test_do_lambda_source_location, "must be at the beginning of the block." +exclude :test_lambda_as_iterator, "Exception raised: <#>" +exclude :test_proc_inside_lambda2_inside_method_return_outside_lambda1_inside_method, "LocalJumpError expected but nothing was raised." exclude :test_proc_inside_lambda_inside_method_return_outside_lambda_inside_method, "LocalJumpError expected but nothing was raised." exclude :test_proc_inside_lambda_inside_method_return_outside_lambda_outside_method, "LocalJumpError expected but nothing was raised." -exclude :test_proc_inside_lambda2_inside_method_return_outside_lambda1_inside_method, "LocalJumpError expected but nothing was raised." diff --git a/test/mri/excludes/TestLastThread.rb b/test/mri/excludes/TestLastThread.rb index 61697f91598f..fa6c2630aae2 100644 --- a/test/mri/excludes/TestLastThread.rb +++ b/test/mri/excludes/TestLastThread.rb @@ -1 +1 @@ -exclude :test_last_thread, "needs investigation" +exclude :test_last_thread, "Expected |1.0 - 1.176943| (0.17694300000000007) to be <= 0.16." diff --git a/test/mri/excludes/TestLazyEnumerator.rb b/test/mri/excludes/TestLazyEnumerator.rb index 25549568a138..1a5e7ca4d948 100644 --- a/test/mri/excludes/TestLazyEnumerator.rb +++ b/test/mri/excludes/TestLazyEnumerator.rb @@ -1,12 +1,12 @@ -exclude :test_drop_nested, "needs investigation" -exclude :test_drop_while_nested, "needs investigation" -exclude :test_inspect, "needs investigation" -exclude :test_lazy_to_enum_lazy_methods, "needs investigation" -exclude :test_size, "needs investigation" -exclude :test_take_nested, "needs investigation" -exclude :test_take_recycle, "needs investigation" -exclude :test_with_index, "needs investigation" -exclude :test_zip_nested, "needs investigation" -exclude :test_laziness_conservation, "needs investigation" -exclude :test_take_rewound, "needs investigation" -exclude :test_uniq, "needs investigation" +exclude :test_drop_nested, "<[6," +exclude :test_drop_while_nested, "<[6," +exclude :test_inspect, "<\"#\"> expected but was <\"# core/enumerator.rb:365>>:each>\">." +exclude :test_laziness_conservation, "ArgumentError: wrong number of arguments (given 1, expected 0)" +exclude :test_lazy_to_enum_lazy_methods, "<[nil, 4]> expected but was <[nil]>." +exclude :test_size, "<0> expected but was ." +exclude :test_take_nested, "<[1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5]> expected but was <[1, 2, 3, 4, 5]>." +exclude :test_take_recycle, "<[1, 2, 3, 4, 5]> expected but was <[]>." +exclude :test_take_rewound, "StopIteration: iteration reached end" +exclude :test_uniq, "RuntimeError: too big" +exclude :test_with_index, "<[0, 1]> expected but was <[[[-1, 2], [0, 3]], [[-1, 2], [0, 3]]]>." +exclude :test_zip_nested, "<[[1, \"a\", \"a\"]," diff --git a/test/mri/excludes/TestLogDevice.rb b/test/mri/excludes/TestLogDevice.rb index 8324bc2d473e..81fc66462fd7 100644 --- a/test/mri/excludes/TestLogDevice.rb +++ b/test/mri/excludes/TestLogDevice.rb @@ -1 +1,2 @@ -exclude :test_shifting_size_not_rotate_too_much, "needs investigation" +exclude :test_open_logfile_in_multiprocess, "very slow: 164.10s on truffleruby 24.2.0-dev-b555f590, like ruby 3.2.4, GraalVM CE JVM [x86_64-linux] with AMD Ryzen 7 3700X 8-Core Processor: (16 vCPUs)" +exclude :test_shifting_size_not_rotate_too_much, "Expected file \"/tmp/d20240906-588524-7rk01t/log.0\" to be identical?(#)" diff --git a/test/mri/excludes/TestM17N.rb b/test/mri/excludes/TestM17N.rb index 1936904d4440..977d6c505984 100644 --- a/test/mri/excludes/TestM17N.rb +++ b/test/mri/excludes/TestM17N.rb @@ -1,31 +1,23 @@ -exclude :test_sprintf_c, "needs investigation" -exclude :test_valid_encoding, "needs investigation" -exclude :test_array_to_s, "needs investigation" -exclude :test_encoding_to_s, "needs investigation" -exclude :test_false_to_s, "needs investigation" -exclude :test_greek_capital_gap, "needs investigation" -exclude :test_hash_to_s, "needs investigation" -exclude :test_index, "needs investigation" -exclude :test_nil_inspect, "needs investigation" -exclude :test_nil_to_s, "needs investigation" -exclude :test_nonascii_method_name, "needs investigation" -exclude :test_regexp_embed, "needs investigation" -exclude :test_scrub_modification_inside_block, "needs investigation" -exclude :test_scrub_replace_block, "needs investigation" -exclude :test_scrub_widechar, "needs investigation" -exclude :test_setbyte_range, "needs investigation" -exclude :test_sprintf_p, "needs investigation" -exclude :test_str_aref_substr, "needs investigation" -exclude :test_str_dump, "needs investigation" -exclude :test_true_to_s, "needs investigation" -exclude :test_upto, "needs investigation" -exclude :"test_utf_16_32_codepoints(UTF-16LE)", "needs investigation" -exclude :"test_utf_16_32_codepoints(UTF-32LE)", "needs investigation" -exclude :"test_utf_16_32_ord(UTF-16LE)", "needs investigation" -exclude :"test_utf_16_32_ord(UTF-32LE)", "needs investigation" -exclude :test_regexp_ascii, "needs investigation" -exclude :test_split, "needs investigation" -exclude :test_sprintf_s, "needs investigation" -exclude :test_string_inspect_encoding, "needs investigation" -exclude :test_utf_dummy_are_like_regular_dummy_encodings, "<[0, 0, 254, 255]> expected but was" -exclude :test_string_mixed_unicode, "prism" +exclude :test_array_to_s, "<#> expected but was <#>." +exclude :test_encoding_to_s, "<#> expected but was <#>." +exclude :test_false_to_s, "<#> expected but was <#>." +exclude :test_greek_capital_gap, "<\"Σ\"> expected but was <\"ΎΎ\">." +exclude :test_hash_to_s, "<#> expected but was <#>." +exclude :test_nil_inspect, "<#> expected but was <#>." +exclude :test_nil_to_s, "<#> expected but was <#>." +exclude :test_nonascii_method_name, "<\"\\x{C2A1}\"> expected but was <\"臓\">." +exclude :test_regexp_ascii, "SyntaxError: (eval):1: cannot eval() a String with binary encoding, with no magic encoding comment and containing a non-US-ASCII character: \\xC2" +exclude :test_regexp_embed, "RegexpError expected but nothing was raised." +exclude :test_scrub_modification_inside_block, "RuntimeError expected but nothing was raised." +exclude :test_scrub_replace_block, "ArgumentError expected but nothing was raised." +exclude :test_scrub_widechar, "ArgumentError: UTF-32 string byte length is not a multiple of 4" +exclude :test_setbyte_range, "Exception raised: <#>" +exclude :test_sprintf_c, "[ArgumentError] exception expected, not #." +exclude :test_sprintf_p, "<#> expected but was <#>." +exclude :test_sprintf_s, "<#> expected but was <#>." +exclude :test_str_aref_substr, " expected but was <\"\\xA1\\xC2\">." +exclude :test_str_dump, "<\"\\xFE\"> (EUC-JP) expected but was <\"\\xFE\"> (ASCII-8BIT)." +exclude :test_string_inspect_encoding, " (java.lang.AssertionError) from org.truffleruby.core.string.StringNodes$CharacterPrintablePrimitiveNode.isCharacterPrintable" +exclude :test_true_to_s, "<#> expected but was <#>." +exclude :test_utf_dummy_are_like_regular_dummy_encodings, "<[0, 0, 254, 255]> expected but was <[0, 65279]>." +exclude :test_valid_encoding, " expected but was ." diff --git a/test/mri/excludes/TestM17NComb.rb b/test/mri/excludes/TestM17NComb.rb index 62cb5763d783..db0d4ce352e5 100644 --- a/test/mri/excludes/TestM17NComb.rb +++ b/test/mri/excludes/TestM17NComb.rb @@ -1,27 +1,15 @@ -exclude :test_str_assign_range2, "crashes vm" -exclude :test_str_assign_range3, "crashes vm" -exclude :test_str_center, "crashes vm" -exclude :test_str_center, "crashes vm" -exclude :test_str_include?, "crashes vm" -exclude :test_str_index, "crashes vm" -exclude :test_str_insert, "crashes vm" -exclude :test_str_ljust, "crashes vm" -exclude :test_str_partition, "crashes vm" -exclude :test_str_rjust, "crashes vm" -exclude :test_str_times, "crashes vm" -exclude :test_str_aref_substr, "needs investigation" -exclude :test_str_assign, "needs investigation" -exclude :test_str_assign_len, "needs investigation" -exclude :test_str_chop, "needs investigation" -exclude :test_str_count, "needs investigation" -exclude :test_str_dump, "needs investigation" -exclude :test_str_each_line, "needs investigation" -exclude :test_str_end_with?, "needs investigation" -exclude :test_str_rindex, "needs investigation" -exclude :test_str_rpartition, "needs investigation" -exclude :test_str_split, "needs investigation" -exclude :test_str_squeeze, "needs investigation" -exclude :test_str_start_with?, "needs investigation" -exclude :test_sprintf_s, "needs investigation" -exclude :test_str_smart_chomp, "needs investigation" -exclude :test_str_casecmp?, "needs investigation" +exclude :test_sprintf_s, "<#> expected but was <#>." +exclude :test_str_aref_substr, "ArgumentError: regexp preprocess failed: invalid multibyte character" +exclude :test_str_assign, "[Encoding::CompatibilityError] exception expected, not #." +exclude :test_str_assign_len, "[Encoding::CompatibilityError] exception expected, not #." +exclude :test_str_chop, "\"\\xA1\".force_encoding(\"EUC-JP\").chop." +exclude :test_str_count, "\"\".force_encoding(\"ASCII-8BIT\").count(\"\\xA1\".force_encoding(\"EUC-JP\"))." +exclude :test_str_end_with?, "\"\\x80\".force_encoding(\"UTF-8\").end_with?(\"\\x80\".force_encoding(\"UTF-8\"))." +exclude :test_str_include?, "already checked in the caller, String#index (java.lang.AssertionError) from org.truffleruby.core.string.StringNodes$StringCharacterIndexNode.singleByteOptimizable(StringNodes.java:3830)" +exclude :test_str_index, "already checked in the caller, String#index (java.lang.AssertionError) from org.truffleruby.core.string.StringNodes$StringCharacterIndexNode.singleByteOptimizable(StringNodes.java:3830)" +exclude :test_str_partition, "already checked in the caller, String#index (java.lang.AssertionError) from org.truffleruby.core.string.StringNodes$StringCharacterIndexNode.singleByteOptimizable(StringNodes.java:3830)" +exclude :test_str_rindex, "Encoding::CompatibilityError expected but nothing was raised." +exclude :test_str_rpartition, "\"\\x80\".force_encoding(\"ASCII-8BIT\").rpartition(\"\\xC2\\xA1\".force_encoding(\"Windows-31J\"))." +exclude :test_str_smart_chomp, "Encoding::CompatibilityError: incompatible character encodings: ASCII-8BIT and UTF-16BE" +exclude :test_str_split, "[ArgumentError, RegexpError] expected but nothing was raised." +exclude :test_str_squeeze, "\"\".force_encoding(\"ASCII-8BIT\").squeeze(\"\\xA1\".force_encoding(\"EUC-JP\"))." diff --git a/test/mri/excludes/TestMarshal.rb b/test/mri/excludes/TestMarshal.rb index c4c289528b27..2aaf0ca56534 100644 --- a/test/mri/excludes/TestMarshal.rb +++ b/test/mri/excludes/TestMarshal.rb @@ -1,37 +1,36 @@ -exclude :test_module_ivar, "TypeError expected but nothing was raised." -exclude :test_marshal_dump_ivar, "FrozenError expected but nothing was raised." -exclude :test_marshal_honor_post_proc_value_for_link, "<[\"X\", \"X\"]> expected but was" -exclude :test_marshal_load_ivar, "TestMarshal::LoadData." -exclude :test_unloadable_userdef, "Exception(TypeError) with message matches to /Userdef\\u{23F0 23F3}/." -exclude :test_marshal_load_r_prepare_reference_crash, "Exception(ArgumentError) with message matches to /bad link/." exclude :test_change_class_name, "[TypeError] exception expected, not #." -exclude :test_marshal_nameerror, "<:unknown_method> expected but was" -exclude :test_object_prepend, "[ruby-core:53202] [Bug #8041](/Users/andrykonchin/projects/truffleruby-ws/truffleruby/test/mri/tests/ruby/marshaltestlib.rb:45:in `marshal_equal_with_ancestry')." -exclude :test_too_long_string, "[ruby-dev:32054]." -exclude :test_modify_array_during_dump, "RuntimeError expected but nothing was raised." +exclude :test_change_struct, "[TypeError] exception expected, not #." +exclude :test_class_ivar, "TypeError expected but nothing was raised." +exclude :test_class_nonascii, "Encoding::CompatibilityError: incompatible character encodings: UTF-8 and ISO-8859-1" +exclude :test_continuation, "Expected Exception(RuntimeError) was raised, but the message doesn't match. Expected /Marshal\\.dump reentered at marshal_dump/ to match \"Continuations are unsupported on TruffleRuby\"." +exclude :test_inconsistent_struct, "[TypeError] exception expected, not #." +exclude :test_load_range_as_struct, "GH-6832." +exclude :test_marshal_complex, "ArgumentError expected but nothing was raised." exclude :test_marshal_dump_adding_instance_variable, "Exception(RuntimeError) with message matches to /instance variable added/." +exclude :test_marshal_dump_ivar, "FrozenError expected but nothing was raised." +exclude :test_marshal_dump_recursion, "Exception(RuntimeError) with message matches to /same class instance/." +exclude :test_marshal_dump_removing_instance_variable, "Exception(RuntimeError) with message matches to /instance variable removed/." +exclude :test_marshal_honor_post_proc_value_for_link, "<[\"X\", \"X\"]> expected but was <[\"X\", \"x\"]>." exclude :test_marshal_load_extended_class_crash, "Exception(ArgumentError) with message matches to /undefined/." +exclude :test_marshal_load_ivar, "TestMarshal::LoadData." +exclude :test_marshal_load_r_prepare_reference_crash, "Exception(ArgumentError) with message matches to /bad link/." +exclude :test_marshal_nameerror, "<:unknown_method> expected but was ." exclude :test_marshal_rational, "ArgumentError expected but nothing was raised." -exclude :test_unloadable_usrmarshal, "Exception(TypeError) with message matches to /UsrMarshal\\u{23F0 23F3}/." -exclude :test_change_struct, "[TypeError] exception expected, not #." +exclude :test_marshal_string_encoding, "<[\"foo\", \"bar\", \"bar\"]> expected but was <[\"foo\", \"bar\", \"EUC-JP\"]>." +exclude :test_marshal_with_ruby2_keywords_hash, "ArgumentError: wrong number of arguments (given 1, expected 0)" +exclude :test_modify_array_during_dump, "RuntimeError expected but nothing was raised." +exclude :test_module_ivar, "TypeError expected but nothing was raised." exclude :test_no_internal_ids, "Expected \"ERROR: Invalid argument --debug=frozen-string-literal specified. Invalid boolean option value 'frozen-string-literal'. The value of the option must be 'true' or 'false'.\\n\" to be empty." -exclude :test_marshal_string_encoding, "[ruby-dev:40388]." -exclude :test_inconsistent_struct, "[ruby-dev:31709]." -exclude :test_marshal_dump_removing_instance_variable, "Exception(RuntimeError) with message matches to /instance variable removed/." -exclude :test_marshal_complex, "ArgumentError expected but nothing was raised." -exclude :test_marshal_dump_recursion, "Exception(RuntimeError) with message matches to /same class instance/." -exclude :test_continuation, "Exception(RuntimeError) with message matches to /Marshal\\.dump reentered at marshal_dump/." +exclude :test_object_prepend, "<[MarshalTestLib::Mod1," +exclude :test_range_cyclic, "ArgumentError: dump format error (unlinked)" +exclude :test_range_subclass, "ArgumentError: wrong number of arguments (given 4, expected 2..3)" +exclude :test_regexp, "<\"/\\xE3\\x81\\x82/\"> expected but was <\"/\\u3042/\">." +exclude :test_regexp2, "RegexpError: too short escape sequence: /\\u/" +exclude :test_regexp_subclass, "TypeError: no implicit conversion of Integer into String" exclude :test_singleton, "TypeError expected but nothing was raised." -exclude :test_struct_invalid_members, "[ruby-dev:31759]." -exclude :test_unloadable_data, "Exception(TypeError) with message matches to /Unloadable\\u{23F0 23F3}/." -exclude :test_class_ivar, "TypeError expected but nothing was raised." +exclude :test_struct_invalid_members, "TypeError expected but nothing was raised." exclude :test_symlink_in_ivar, "ArgumentError: bad symbol" -exclude :test_marshal_with_ruby2_keywords_hash, "ArgumentError: wrong number of arguments (given 1, expected 0)" exclude :test_time_subclass, "ArgumentError: year too big to marshal: 10" -exclude :test_regexp, "RegexpError: incompatible character encoding" -exclude :test_range_cyclic, "ArgumentError: dump format error (unlinked)" -exclude :test_class_nonascii, "Encoding::CompatibilityError: incompatible character encodings: UTF-8 and ISO-8859-1" -exclude :test_regexp_subclass, "TypeError: no implicit conversion of Integer into String" -exclude :test_regexp2, "RegexpError: too short escape sequence" -exclude :test_range_subclass, "ArgumentError: wrong number of arguments (given 4, expected 2..3)" -exclude :test_load_range_as_struct, "GH-6832." +exclude :test_unloadable_data, "Exception(TypeError) with message matches to /Unloadable\\u{23F0 23F3}/." +exclude :test_unloadable_userdef, "Exception(TypeError) with message matches to /Userdef\\u{23F0 23F3}/." +exclude :test_unloadable_usrmarshal, "Exception(TypeError) with message matches to /UsrMarshal\\u{23F0 23F3}/." diff --git a/test/mri/excludes/TestMath.rb b/test/mri/excludes/TestMath.rb index c81e2f242bf8..e3ebf89e25ac 100644 --- a/test/mri/excludes/TestMath.rb +++ b/test/mri/excludes/TestMath.rb @@ -1,5 +1,5 @@ -exclude :test_log, "needs investigation" -exclude :test_override_bignum_to_f, "needs investigation" -exclude :test_override_integer_to_f, "needs investigation" -exclude :test_sqrt, "needs investigation" -exclude :test_lgamma, "Expected Exception(Math::DomainError) was raised, but the message doesn't match." +exclude :test_lgamma, "Expected Exception(Math::DomainError) was raised, but the message doesn't match. Expected /\\blgamma\\b/ to match \"Numerical argument is out of domain - \\\"log2\\\"\"." +exclude :test_log, "Math::DomainError expected but nothing was raised." +exclude :test_override_bignum_to_f, "Expected |0.9988862206605801 - -0.9997215163885841| (1.9986077370491642) to be <= 5.682758890023843e-14." +exclude :test_override_integer_to_f, "Expected |0.5403023058681398 - 1.0| (0.45969769413186023) to be <= 5.6843418860808015e-14." +exclude :test_sqrt, "<\"0.0\"> expected but was <\"-0.0\">." diff --git a/test/mri/excludes/TestMethod.rb b/test/mri/excludes/TestMethod.rb index 7499542d70aa..5df34fc9c214 100644 --- a/test/mri/excludes/TestMethod.rb +++ b/test/mri/excludes/TestMethod.rb @@ -1,37 +1,28 @@ -exclude :test___dir__, "needs investigation" -exclude :test_alias_owner, "needs investigation" -exclude :test_arity_special, "needs investigation" -exclude :test_bmethod_bound_parameters, "needs investigation" -exclude :test_bmethod_unbound_parameters, "needs investigation" -exclude :test_body, "needs investigation" -exclude :test_bound_parameters, "needs investigation" -exclude :test_callee, "needs investigation" +exclude :test_argument_error_location, "<\"(eval):1:in `block in
'\"> expected but was <\"(eval):1:in `block (2 levels) in '\">." +exclude :test_arity_special, "<-1> expected but was <-2>." +exclude :test_body, "<#>" +exclude :test_callee, "Expected :\"\" to be nil." exclude :test_callee_top_level, "needs investigation" -exclude :test_caller_negative_level, "needs investigation" -exclude :test_curry_from_proc, "needs investigation" -exclude :test_curry_method, "needs investigation" -exclude :test_define_method, "needs investigation" -exclude :test_eq, "needs investigation" -exclude :test_inspect, "needs investigation" -exclude :test_instance_method, "needs investigation" -exclude :test_method_parameters_inspect, "needs investigation" -exclude :test_super_method_removed, "needs investigation" -exclude :test_unbound_method_parameters_inspect, "needs investigation" -exclude :test_unbound_parameters, "needs investigation" -exclude :test_visibility, "needs investigation" -exclude :test_argument_error_location, "needs investigation" -exclude :test_clone, "needs investigation" -exclude :test_curry_from_proc_var_args, "needs investigation" -exclude :test_curry_var_args, "needs investigation" -exclude :test_receiver_name_owner, "needs investigation" -exclude :test_super_method_bind_unbind_clone, "needs investigation" -exclude :test_super_method_module, "needs investigation" -exclude :test_public_methods_with_extended, "needs investigation" -exclude :test_method_list, "needs investigation" +exclude :test_caller_negative_level, "ArgumentError expected but nothing was raised." +exclude :test_clone, "TypeError: allocator undefined for Method" +exclude :test_curry_from_proc, "Expected Exception(ArgumentError) was raised, but the message doesn't match. Expected /wrong number/ to match \"Wrong number of arguments (2 for 3)\"." +exclude :test_curry_from_proc_var_args, "NoMethodError: undefined method `call' for [1]:Array" +exclude :test_curry_method, "Expected Exception(ArgumentError) was raised, but the message doesn't match. Expected /wrong number/ to match \"Wrong number of arguments (2 for 3)\"." +exclude :test_curry_var_args, "NoMethodError: undefined method `call' for [1]:Array" +exclude :test_define_method, "Expected Exception(TypeError) was raised, but the message doesn't match. Expected /X\\u{1F431}/ to match \"# is not a symbol nor a string\"." +exclude :test_eq, "<#.foo() /home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/test/mri/tests/ruby/test_method.rb:191>> expected to be != to" +exclude :test_inspect, "<\"#(#)#foo() /home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/test/mri/tests/ruby/test_method.rb:462>\"> expected but was <\"##foo() /home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/test/mri/tests/ruby/test_method.rb:462>\">." +exclude :test_instance_method, "Expected Exception(TypeError) was raised, but the message doesn't match. Expected /X\\u{1F431}/ to match \"no implicit conversion of Class into String\"." +exclude :test_method_list, "spurious; TypeError: no implicit conversion of Array into Integer" +exclude :test_method_parameters_inspect, "Expected \"#\" to include \"(a, b=..., *, d, &e)\"." exclude :test_override_optimized_method_on_class_using_prepend, "NoMethodError: undefined method `unpack1' for nil:NilClass" -exclude :test_method_visibility_predicates, "NoMethodError: undefined method `public?' for #" -exclude :test_unbound_method_visibility_predicates, "NoMethodError: undefined method `public?' for #" -exclude :test_zsuper_method_redefined_bind_call, "<[:bar2]> expected but was" -exclude :test_super_method_removed_public, "[ruby-core:62202] [Feature #9781]." -exclude :test_zsuper_method_removed, "<\"#\"> expected but was" -exclude :test_zsuper_method_removed_higher_method, "<\"#\"> expected but was" +exclude :test_public_methods_with_extended, "spurious; <[:m1, :a]> expected but was <[:a, :m1]>." +exclude :test_receiver_name_owner, "NoMethodError: undefined method `original_name' for #" +exclude :test_super_method_bind_unbind_clone, "TypeError: allocator undefined for Method" +exclude :test_super_method_module, "NoMethodError: undefined method `owner' for nil:NilClass" +exclude :test_super_method_removed_public, "Expected ##foo() /home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/test/mri/tests/ruby/test_method.rb:1060> to be nil." +exclude :test_unbound_method_parameters_inspect, "Expected \"#\" to include \"(a, b=..., *, d, &e)\"." +exclude :test_visibility, " expected but was <\"method\">." +exclude :test_zsuper_method_redefined_bind_call, "<[:bar2]> expected but was <[:foo, :bar]>." +exclude :test_zsuper_method_removed, "<\"#\"> expected but was <\"#\">." +exclude :test_zsuper_method_removed_higher_method, "<\"#\"> expected but was <\"#\">." diff --git a/test/mri/excludes/TestMixedUnicodeEscape.rb b/test/mri/excludes/TestMixedUnicodeEscape.rb index f1ee6eeeae21..b730a477d4af 100644 --- a/test/mri/excludes/TestMixedUnicodeEscape.rb +++ b/test/mri/excludes/TestMixedUnicodeEscape.rb @@ -1 +1 @@ -exclude :test_basic, "prism" +exclude :test_basic, "[SyntaxError] exception expected, not #." diff --git a/test/mri/excludes/TestModule.rb b/test/mri/excludes/TestModule.rb index 6673a8a9db19..7f500ae24dc1 100644 --- a/test/mri/excludes/TestModule.rb +++ b/test/mri/excludes/TestModule.rb @@ -1,38 +1,37 @@ -exclude :test_alias, "pid 57958 exit 0." -exclude :test_ancestors, "The JSON pure implementation is used so String class includes a JSON::Pure-specific module when JSON library is required" -exclude :test_ancestry_of_duped_classes, "Expected #<#:0x588> to not be a kind of #." +exclude :test_alias, "needs investigation" +exclude :test_ancestors, "spurious; <[String, Comparable, Object, Kernel, BasicObject]> expected but was <[String, JSON::Pure::Generator::GeneratorMethods::String, Comparable, Object, Kernel, BasicObject]>." +exclude :test_ancestry_of_duped_classes, "Expected #<#:0x598> to not be a kind of #." exclude :test_attr, "NameError expected but nothing was raised." -exclude :test_bad_constants_get, "[Bug #7573]: wrong constant name \"String::\" to get." -exclude :test_class_variable_in_dup_class, "[ruby-core:17019]." +exclude :test_bad_constants_get, "NameError expected but nothing was raised." +exclude :test_class_variable_in_dup_class, "<\"A\"> expected but was <\"B\">." +exclude :test_classpath, "NameError: constant TestModule::M not defined" exclude :test_const_defined?, "[EncodingError] exception expected, not #." exclude :test_const_set_invalid_name, "NameError expected but nothing was raised." +exclude :test_constant_access_from_method_in_cloned_module, "NameError: uninitialized constant TestModule::CloneTestM0::TEST" exclude :test_define_module_under_private_constant, "NameError expected but nothing was raised." -exclude :test_deprecate_constant, "expected: /#::FOO is deprecated/" -exclude :test_frozen_visibility, "[ruby-core:70828] [Bug #11532]." -exclude :test_include_into_module_already_included, "<[:sc, :m1, :m2, :c]> expected but was" -exclude :test_included_modules, "The JSON pure implementation is used so String class includes a JSON::Pure-specific module when JSON library is required" +exclude :test_deprecate_constant, "expected: /#::FOO is deprecated/" +exclude :test_frozen_visibility, "FrozenError expected but nothing was raised." +exclude :test_include_into_module_already_included, "<[:sc, :m1, :m2, :c]> expected but was <[:sc, :m1, :c]>." +exclude :test_included_modules, "spurious; <[Comparable, Kernel]> expected but was [JSON::Pure::Generator::GeneratorMethods::String, Comparable, Kernel]>." exclude :test_initialize_copy, "TypeError expected but nothing was raised." exclude :test_initialize_copy_empty, "TypeError expected but nothing was raised." -exclude :test_inspect_segfault, "[ruby-core:65214] [Bug #10282]." +exclude :test_inspect_segfault, "<\"#\"> expected but was <\"#\">." exclude :test_invalid_attr, "NameError expected but nothing was raised." exclude :test_method_redefinition, "Expected /:1876: warning: method redefined; discarding old foo/ to match \"\"." -exclude :test_module_function_inside_method, "[ruby-core:79751]." -exclude :test_module_name_in_singleton_method, "[Bug #14895]." +exclude :test_module_function_inside_method, "expected: /calling module_function without arguments inside a method may not have the intended effect/" +exclude :test_module_name_in_singleton_method, "Expected /::Foo$/ to match nil." exclude :test_nested_defined, "Expected Object.const_defined?(\"TestModule::String\") to return false." exclude :test_nested_defined_symbol, "NameError expected but nothing was raised." exclude :test_nested_get, "NameError expected but nothing was raised." -exclude :test_prepend_after_include, "<[:m, :sc, :m, :c]> expected but was" +exclude :test_prepend_after_include, "<[:m, :sc, :m, :c]> expected but was <[:sc, :m, :c]>." exclude :test_prepend_each_classes, "should be able to prepend each classes." -exclude :test_prepend_module_ancestors, "<[m0, m1, m3, m0, m1]> expected but was" -exclude :test_private_constant_in_class, "Exception(NameError) with message matches to /#::FOO/." -exclude :test_private_constant_in_module, "<#> expected but was" -exclude :test_private_constant_with_no_args, "pid 57996 exit 0." +exclude :test_prepend_module_ancestors, "<[m0, m1, m3, m0, m1]> expected but was <[m3, m0, m1]>." +exclude :test_prepend_private_super, "SystemStackError: stack level too deep" +exclude :test_private_constant_const_missing, "NameError: private constant #::FOO referenced" +exclude :test_private_constant_in_class, "Exception(NameError) with message matches to /#::FOO/." +exclude :test_private_constant_in_module, "<#> expected but was <#>." +exclude :test_private_constant_with_no_args, "needs investigation" exclude :test_private_top_methods, ":include should be private." exclude :test_protected_singleton_method, "NoMethodError expected but nothing was raised." -exclude :test_redefinition_mismatch, "Expected \"A is not a module\" to include \"/Users/andrykonchin/projects/truffleruby-ws/truffleruby/test/mri/tests/ruby/test_module.rb:3185: previous definition\"." -exclude :test_undef, "pid 58017 exit 0." -exclude :test_classpath, "NameError: constant TestModule::M not defined" -exclude :test_constant_access_from_method_in_cloned_module, "NameError: uninitialized constant TestModule::CloneTestM0::TEST" -exclude :test_prepend_private_super, "SystemStackError: stack level too deep" -exclude :test_private_constant_const_missing, "NameError: private constant #::FOO referenced" -exclude :test_protected_include_into_included_module, "NoMethodError: undefined method `other_foo' for #<#:0x2268>" +exclude :test_redefinition_mismatch, "Expected \"A is not a module\" to include \"/home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/test/mri/tests/ruby/test_module.rb:3185: previous definition\"." +exclude :test_undef, "needs investigation" diff --git a/test/mri/excludes/TestMonitor.rb b/test/mri/excludes/TestMonitor.rb index b5b429240045..8020b954aa9f 100644 --- a/test/mri/excludes/TestMonitor.rb +++ b/test/mri/excludes/TestMonitor.rb @@ -1,6 +1,3 @@ -exclude :test_mon_locked_and_owned, "needs investigation" -exclude :test_wait_interruption, "needs investigation" -exclude :test_cond, "needs investigation" -exclude :test_exit, "needs investigation" -exclude :test_new_cond_before_initialize, "needs investigation" -exclude :test_timedwait, "needs investigation" +exclude :test_cond, "exceptions on 1 threads: #:" +exclude :test_new_cond_before_initialize, "Failed assertion, no message given." +exclude :test_timedwait, "exceptions on 1 threads: #:" diff --git a/test/mri/excludes/TestNameError.rb b/test/mri/excludes/TestNameError.rb index 69ea15fe00a0..e78d76783d18 100644 --- a/test/mri/excludes/TestNameError.rb +++ b/test/mri/excludes/TestNameError.rb @@ -1,7 +1,6 @@ -exclude :test_info_const, "needs investigation" -exclude :test_info_const_name, "needs investigation" -exclude :test_info_parent_iseq_mark, "needs investigation" -exclude :test_large_receiver_inspect, "needs investigation" -exclude :test_info_local_variables, "needs investigation" -exclude :test_info_method, "needs investigation" -exclude :test_info_method_missing, "needs investigation" +exclude :test_info_const_name, "Expected Exception(NameError) was raised, but the message doesn't match. Expected /ModuleName/ to match \"uninitialized constant #::DOES_NOT_EXIST\"." +exclude :test_info_local_variables, "NoMethodError: private method `local_variables' called for #" +exclude :test_info_method, "NoMethodError: undefined method `private_call?' for #" +exclude :test_info_method_missing, "NoMethodError: undefined method `private_call?' for #" +exclude :test_info_parent_iseq_mark, "NoMethodError: private method `local_variables' called for #" +exclude :test_large_receiver_inspect, "Expected /\\Auninitialized constant AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA::FOO$/ to match \"uninitialized constant #::FOO\"." diff --git a/test/mri/excludes/TestNetHTTP.rb b/test/mri/excludes/TestNetHTTP.rb index b46e9eca3721..4360ce083e2d 100644 --- a/test/mri/excludes/TestNetHTTP.rb +++ b/test/mri/excludes/TestNetHTTP.rb @@ -1 +1 @@ -exclude :test_failure_message_includes_failed_domain_and_port, "needs investigation" +exclude :test_failure_message_includes_failed_domain_and_port, "Exception(SocketError) with message matches to /:2119/." diff --git a/test/mri/excludes/TestNetHTTPForceEncoding.rb b/test/mri/excludes/TestNetHTTPForceEncoding.rb new file mode 100644 index 000000000000..151a1bb95c3c --- /dev/null +++ b/test/mri/excludes/TestNetHTTPForceEncoding.rb @@ -0,0 +1,5 @@ +exclude :test_response_body_encoding_encoding_without_content_type, "Errno::EADDRNOTAVAIL: Cannot assign requested address - bind(2)" +exclude :test_response_body_encoding_false, "Errno::EADDRNOTAVAIL: Cannot assign requested address - bind(2)" +exclude :test_response_body_encoding_string_without_content_type, "Errno::EADDRNOTAVAIL: Cannot assign requested address - bind(2)" +exclude :test_response_body_encoding_true_with_content_type, "Errno::EADDRNOTAVAIL: Cannot assign requested address - bind(2)" +exclude :test_response_body_encoding_true_without_content_type, "Errno::EADDRNOTAVAIL: Cannot assign requested address - bind(2)" diff --git a/test/mri/excludes/TestNetHTTPKeepAlive.rb b/test/mri/excludes/TestNetHTTPKeepAlive.rb index 7c65b68ec015..e69de29bb2d1 100644 --- a/test/mri/excludes/TestNetHTTPKeepAlive.rb +++ b/test/mri/excludes/TestNetHTTPKeepAlive.rb @@ -1 +0,0 @@ -exclude :test_server_closed_connection_auto_reconnect, "Exception raised:" diff --git a/test/mri/excludes/TestNetHTTPLocalBind.rb b/test/mri/excludes/TestNetHTTPLocalBind.rb index 13cd503c4b9d..b4a7e5bc79a9 100644 --- a/test/mri/excludes/TestNetHTTPLocalBind.rb +++ b/test/mri/excludes/TestNetHTTPLocalBind.rb @@ -1,2 +1,2 @@ -exclude :test_bind_to_local_host, "needs investigation" -exclude :test_bind_to_local_port, "needs investigation" +exclude :test_bind_to_local_host, "Errno::EADDRNOTAVAIL: Cannot assign requested address - bind(2)" +exclude :test_bind_to_local_port, "Errno::EADDRNOTAVAIL: Cannot assign requested address - bind(2)" diff --git a/test/mri/excludes/TestNetHTTPS.rb b/test/mri/excludes/TestNetHTTPS.rb new file mode 100644 index 000000000000..7daad77df56b --- /dev/null +++ b/test/mri/excludes/TestNetHTTPS.rb @@ -0,0 +1,15 @@ +exclude :test_certificate_verify_failure, "Errno::EADDRNOTAVAIL: Cannot assign requested address - bind(2)" +exclude :test_fail_if_verify_hostname_is_true, "Errno::EADDRNOTAVAIL: Cannot assign requested address - bind(2)" +exclude :test_get, "Errno::EADDRNOTAVAIL: Cannot assign requested address - bind(2)" +exclude :test_get_SNI, "Errno::EADDRNOTAVAIL: Cannot assign requested address - bind(2)" +exclude :test_get_SNI_failure, "Errno::EADDRNOTAVAIL: Cannot assign requested address - bind(2)" +exclude :test_get_SNI_proxy, "Errno::EADDRNOTAVAIL: Cannot assign requested address - bind(2)" +exclude :test_identity_verify_failure, "Errno::EADDRNOTAVAIL: Cannot assign requested address - bind(2)" +exclude :test_max_version, "Errno::EADDRNOTAVAIL: Cannot assign requested address - bind(2)" +exclude :test_min_version, "Errno::EADDRNOTAVAIL: Cannot assign requested address - bind(2)" +exclude :test_post, "Errno::EADDRNOTAVAIL: Cannot assign requested address - bind(2)" +exclude :test_session_reuse, "Errno::EADDRNOTAVAIL: Cannot assign requested address - bind(2)" +exclude :test_session_reuse_but_expire, "Errno::EADDRNOTAVAIL: Cannot assign requested address - bind(2)" +exclude :test_skip_hostname_verification, "Errno::EADDRNOTAVAIL: Cannot assign requested address - bind(2)" +exclude :test_timeout_during_SSL_handshake, "Errno::EADDRNOTAVAIL: Cannot assign requested address - bind(2)" +exclude :test_verify_none, "Errno::EADDRNOTAVAIL: Cannot assign requested address - bind(2)" diff --git a/test/mri/excludes/TestNoMethodError.rb b/test/mri/excludes/TestNoMethodError.rb index f2d73c122c0f..2179e313afec 100644 --- a/test/mri/excludes/TestNoMethodError.rb +++ b/test/mri/excludes/TestNoMethodError.rb @@ -1,2 +1,2 @@ -exclude :test_new_name_args_priv, "needs investigation" -exclude :test_new_receiver, "needs investigation" +exclude :test_new_name_args_priv, "NoMethodError: undefined method `private_call?' for #" +exclude :test_new_receiver, "ArgumentError: wrong number of arguments (given 2, expected 0..1)" diff --git a/test/mri/excludes/TestNum2int.rb b/test/mri/excludes/TestNum2int.rb index e6abadcc8870..ddede3afd86d 100644 --- a/test/mri/excludes/TestNum2int.rb +++ b/test/mri/excludes/TestNum2int.rb @@ -1,11 +1,3 @@ -exclude :test_fix2short, "needs investigation" -exclude :test_fix2uint, "needs investigation" -exclude :test_fix2ulong, "needs investigation" -exclude :test_num2int, "needs investigation" -exclude :test_num2long, "needs investigation" -exclude :test_num2short, "needs investigation" -exclude :test_num2uint, "needs investigation" -exclude :test_num2ulong, "needs investigation" -exclude :test_num2ushort, "needs investigation" -exclude :test_num2ll, "needs investigation" -exclude :test_num2ull, "needs investigation" +exclude :test_num2ll, "JVM crash; SIGSEGV: V [libjvm.so+0xf005b0] Unsafe_GetDouble+0xb0" +exclude :test_num2ull, "JVM crash; SIGSEGV: V [libjvm.so+0xf005b0] Unsafe_GetDouble+0xb0" +exclude :test_num2ushort, "NUM2USHORT(-1)." diff --git a/test/mri/excludes/TestNumeric.rb b/test/mri/excludes/TestNumeric.rb index 8700d7f17053..eaf8ca29f802 100644 --- a/test/mri/excludes/TestNumeric.rb +++ b/test/mri/excludes/TestNumeric.rb @@ -1,8 +1,8 @@ -exclude :test_coerce, "needs investigation" -exclude :test_coerced_remainder, "needs investigation" -exclude :test_dummynumeric, "needs investigation" -exclude :test_dup, "needs investigation" -exclude :test_step, "needs investigation" -exclude :test_floor_ceil_ndigits, "[ruby-core:100090]." -exclude :test_float_round_ndigits, "[ruby-core:86323] (argument: 16)." -exclude :test_remainder_infinity, "<4> expected but was" +exclude :test_coerce, "Expected Exception(TypeError) was raised, but the message doesn't match. Expected /:\\u{3042}/ to match \"Symbol can't be coerced into Integer\"." +exclude :test_coerced_remainder, "[ArgumentError] exception expected, not #:0x2f8>>." +exclude :test_dummynumeric, "[ArgumentError] exception expected, not #." +exclude :test_dup, "Expected # (oid=1608) to be the same as # (oid=1624)." +exclude :test_float_round_ndigits, "<0.5> expected but was <0.49999999999999994>." +exclude :test_floor_ceil_ndigits, "<291.4> expected but was <291.39>." +exclude :test_remainder_infinity, "<4> expected but was ." +exclude :test_step, "ArgumentError expected but nothing was raised." diff --git a/test/mri/excludes/TestObjSpace.rb b/test/mri/excludes/TestObjSpace.rb index e780354f2725..88671980d395 100644 --- a/test/mri/excludes/TestObjSpace.rb +++ b/test/mri/excludes/TestObjSpace.rb @@ -1,37 +1,37 @@ -exclude :test_count_objects_size_with_wrong_type, "needs investigation" -exclude :test_dump_all, "needs investigation" -exclude :test_dump_all_full, "needs investigation" -exclude :test_dump_dynamic_symbol, "needs investigation" -exclude :test_dump_flags, "needs investigation" -exclude :test_dump_includes_imemo_type, "needs investigation" -exclude :test_dump_special_consts, "needs investigation" -exclude :test_dump_to_default, "needs investigation" -exclude :test_dump_to_io, "needs investigation" -exclude :test_dump_uninitialized_file, "needs investigation" -exclude :test_reachable_objects_from, "needs investigation" -exclude :test_argf_memsize, "needs investigation" -exclude :test_count_imemo_objects, "needs investigation" -exclude :test_count_symbols, "needs investigation" -exclude :test_dump_addresses_match_dump_all_addresses, "needs investigation" -exclude :test_dump_class_addresses_match_dump_all_addresses, "needs investigation" -exclude :test_dump_reference_addresses_match_dump_all_addresses, "needs investigation" -exclude :test_internal_class_of, "needs investigation" -exclude :test_internal_super_of, "needs investigation" -exclude :test_memsize_of_iseq, "needs investigation" -exclude :test_memsize_of_root_shared_string, "needs investigation" -exclude :test_reachable_objects_size, "needs investigation" -exclude :test_dump_all_single_generation, "needs investigation" -exclude :test_dump_control_char, "needs investigation" -exclude :test_dump_escapes_method_name, "needs investigation" -exclude :test_dump_special_floats, "needs investigation" -exclude :test_name_error_message, "needs investigation" -exclude :test_internal_class_of_on_ast, "needs investigation" -exclude :test_dump_singleton_class, "Expected \"{\\\"address\\\":\\\"0x186e48\\\",\\\"class\\\":\\\"0x1251c38\\\",\\\"memsize\\\":1,\\\"flags\\\":{},\\\"type\\\":\\\"OBJECT\\\",\\\"length\\\":0}\" to include \"\\\"name\\\":\\\"Object\\\"\"." -exclude :test_utf8_method_names, "{\"address\":\"0x2ce228\",\"class\":\"0x998\",\"memsize\":3,\"flags\":{},\"type\":\"STRING\",\"bytesize\":2,\"value\":\"12\",\"encoding\":\"UTF-8\"}." -exclude :test_dump_string_coderange, "Expected \"{\\\"address\\\":\\\"0x2d8fe8\\\",\\\"class\\\":\\\"0xa08\\\",\\\"memsize\\\":12,\\\"flags\\\":{},\\\"type\\\":\\\"STRING\\\",\\\"bytesize\\\":11,\\\"value\\\":\\\"TEST STRING\\\",\\\"encoding\\\":\\\"UTF-8\\\"}\" to include \"\\\"coderange\\\":\\\"7bit\\\"\"." -exclude :test_dump_array, "Expected \"{\\\"address\\\":\\\"0x2d9048\\\",\\\"class\\\":\\\"0xa18\\\",\\\"memsize\\\":1,\\\"flags\\\":{},\\\"type\\\":\\\"ARRAY\\\",\\\"length\\\":0}\" to include \"\\\"length\\\":0, \\\"embedded\\\":true\"." +exclude :test_argf_memsize, "NoMethodError: undefined method `inplace_mode=' for #" +exclude :test_count_imemo_objects, "NoMethodError: undefined method `count_imemo_objects' for ObjectSpace:Module" +exclude :test_count_objects_size_with_wrong_type, "[TypeError] exception expected, not #." +exclude :test_count_symbols, "NoMethodError: undefined method `count_symbols' for ObjectSpace:Module" +exclude :test_dump_addresses_match_dump_all_addresses, "<\"true\"> expected but was <\"{\\\"address\\\":\\\"0x50d0\\\",\\\"class\\\":\\\"0xf8\\\",\\\"memsize\\\":0,\\\"flags\\\":{},\\\"type\\\":\\\"OBJECT\\\",\\\"length\\\":0}true\">." +exclude :test_dump_all, "number of strings." +exclude :test_dump_all_full, "<\"nil\"> expected but was <\"{\\\"address\\\":\\\"0x4e80\\\",\\\"class\\\":\\\"0xe8\\\",\\\"memsize\\\":0,\\\"flags\\\":{},\\\"type\\\":\\\"OBJECT\\\",\\\"length\\\":0}nil\">." +exclude :test_dump_all_single_generation, "<\"nil\"> expected but was <\"{\\\"address\\\":\\\"0x4f88\\\",\\\"class\\\":\\\"0x118\\\",\\\"memsize\\\":1,\\\"flags\\\":{},\\\"type\\\":\\\"OBJECT\\\",\\\"length\\\":0}nil\">." +exclude :test_dump_array, "Expected \"{\\\"address\\\":\\\"0x5e8\\\",\\\"class\\\":\\\"0x5f8\\\",\\\"memsize\\\":1,\\\"flags\\\":{},\\\"type\\\":\\\"ARRAY\\\",\\\"length\\\":0}\" to include \"\\\"length\\\":0, \\\"embedded\\\":true\"." +exclude :test_dump_class_addresses_match_dump_all_addresses, "<\"true\"> expected but was <\"{\\\"address\\\":\\\"0x5ab0\\\",\\\"class\\\":\\\"0xf8\\\",\\\"memsize\\\":0,\\\"flags\\\":{},\\\"type\\\":\\\"OBJECT\\\",\\\"length\\\":0}true\">." +exclude :test_dump_control_char, "Expected \"{\\\"address\\\":\\\"0x688\\\",\\\"class\\\":\\\"0x678\\\",\\\"memsize\\\":2,\\\"flags\\\":{},\\\"type\\\":\\\"STRING\\\",\\\"bytesize\\\":1,\\\"value\\\":\\\"\\u007F\\\",\\\"encoding\\\":\\\"UTF-8\\\"}\" to include \"\\\"value\\\":\\\"\\\\u007f\\\"\"." +exclude :test_dump_dynamic_symbol, "Expected /\"type\":\"SYMBOL\"/ to match \"{\\\"address\\\":\\\"0x60\\\",\\\"class\\\":\\\"0x6c8\\\",\\\"memsize\\\":0,\\\"flags\\\":{},\\\"type\\\":\\\"OBJECT\\\",\\\"length\\\":0}\"." +exclude :test_dump_escapes_method_name, "Expected \"{\\\"address\\\":\\\"0x708\\\",\\\"class\\\":\\\"0x678\\\",\\\"memsize\\\":12,\\\"flags\\\":{},\\\"type\\\":\\\"STRING\\\",\\\"bytesize\\\":11,\\\"value\\\":\\\"TEST STRING\\\",\\\"encoding\\\":\\\"UTF-8\\\"}\" to include \"\\\"method\\\":\\\"foo\\\\\\\"bar\\\"\"." +exclude :test_dump_flags, "Expected /\"wb_protected\":true, \"old\":true/ to match \"{\\\"address\\\":\\\"0x80\\\",\\\"class\\\":\\\"0x678\\\",\\\"memsize\\\":0,\\\"flags\\\":{},\\\"type\\\":\\\"STRING\\\",\\\"bytesize\\\":3,\\\"value\\\":\\\"foo\\\",\\\"encoding\\\":\\\"UTF-8\\\"}\"." +exclude :test_dump_includes_imemo_type, "<\"nil\"> expected but was <\"{\\\"address\\\":\\\"0x4e60\\\",\\\"class\\\":\\\"0xc8\\\",\\\"memsize\\\":0,\\\"flags\\\":{},\\\"type\\\":\\\"OBJECT\\\",\\\"length\\\":0}nil\">." exclude :test_dump_includes_slot_size, "NameError: uninitialized constant GC::INTERNAL_CONSTANTS" +exclude :test_dump_objects_dumps_page_slot_sizes, "<\"true\"> expected but was <\"{\\\"address\\\":\\\"0x4f68\\\",\\\"class\\\":\\\"0xe8\\\",\\\"memsize\\\":1,\\\"flags\\\":{},\\\"type\\\":\\\"OBJECT\\\",\\\"length\\\":0}true\">." +exclude :test_dump_reference_addresses_match_dump_all_addresses, "<\"true\"> expected but was <\"{\\\"address\\\":\\\"0x50d0\\\",\\\"class\\\":\\\"0xf8\\\",\\\"memsize\\\":0,\\\"flags\\\":{},\\\"type\\\":\\\"OBJECT\\\",\\\"length\\\":0}true\">." exclude :test_dump_shapes, "NoMethodError: undefined method `dump_shapes' for ObjectSpace:Module" -exclude :test_load_allocation_path_load, "<1> expected but was" -exclude :test_dump_objects_dumps_page_slot_sizes, "<\"true\"> expected but was" +exclude :test_dump_singleton_class, "Expected \"{\\\"address\\\":\\\"0x848\\\",\\\"class\\\":\\\"0x3c8\\\",\\\"memsize\\\":1,\\\"flags\\\":{},\\\"type\\\":\\\"OBJECT\\\",\\\"length\\\":0}\" to include \"\\\"name\\\":\\\"Object\\\"\"." +exclude :test_dump_special_consts, "<\"null\"> expected but was <\"{\\\"address\\\":\\\"0x2\\\",\\\"class\\\":\\\"0x888\\\",\\\"memsize\\\":0,\\\"flags\\\":{},\\\"type\\\":\\\"OBJECT\\\",\\\"length\\\":0}\">." +exclude :test_dump_special_floats, "Expected /\"value\":\"NaN\"/ to match \"{\\\"address\\\":\\\"0x27ff8000000000000\\\",\\\"class\\\":\\\"0x8c8\\\",\\\"memsize\\\":0,\\\"flags\\\":{},\\\"type\\\":\\\"OBJECT\\\",\\\"length\\\":0}\"." +exclude :test_dump_string_coderange, "Expected \"{\\\"address\\\":\\\"0x8f8\\\",\\\"class\\\":\\\"0x678\\\",\\\"memsize\\\":12,\\\"flags\\\":{},\\\"type\\\":\\\"STRING\\\",\\\"bytesize\\\":11,\\\"value\\\":\\\"TEST STRING\\\",\\\"encoding\\\":\\\"UTF-8\\\"}\" to include \"\\\"coderange\\\":\\\"7bit\\\"\"." +exclude :test_dump_to_default, "Expected /\"embedded\":true, \"bytesize\":7, \"value\":\"hello w\", \"encoding\":\"UTF-8\"/ to match \"{\\\"address\\\":\\\"0x938\\\",\\\"class\\\":\\\"0x678\\\",\\\"memsize\\\":8,\\\"flags\\\":{},\\\"type\\\":\\\"STRING\\\",\\\"bytesize\\\":7,\\\"value\\\":\\\"hello w\\\",\\\"encoding\\\":\\\"UTF-8\\\"}\"." +exclude :test_dump_to_io, "Expected /\"embedded\":true, \"bytesize\":7, \"value\":\"hello w\", \"encoding\":\"UTF-8\"/ to match \"{\\\"address\\\":\\\"0x968\\\",\\\"class\\\":\\\"0x678\\\",\\\"memsize\\\":8,\\\"flags\\\":{},\\\"type\\\":\\\"STRING\\\",\\\"bytesize\\\":7,\\\"value\\\":\\\"hello w\\\",\\\"encoding\\\":\\\"UTF-8\\\"}\"." +exclude :test_dump_uninitialized_file, "Expected /\"type\":\"FILE\"/ to match \"{\\\"address\\\":\\\"0xc8\\\",\\\"class\\\":\\\"0xd8\\\",\\\"memsize\\\":1,\\\"flags\\\":{},\\\"type\\\":\\\"OBJECT\\\",\\\"length\\\":0}\"." +exclude :test_internal_class_of, "NoMethodError: undefined method `internal_class_of' for ObjectSpace:Module" +exclude :test_internal_class_of_on_ast, "NameError: uninitialized constant TestObjSpace::RubyVM" +exclude :test_internal_super_of, "NoMethodError: undefined method `internal_super_of' for ObjectSpace:Module" exclude :test_load_allocation_path_compile_file, "NameError: uninitialized constant RubyVM" +exclude :test_load_allocation_path_load, "NameError: uninitialized constant TestObjSpace::Tempfile" +exclude :test_memsize_of_iseq, "NameError: uninitialized constant TestObjSpace::RubyVM" +exclude :test_memsize_of_root_shared_string, "NameError: uninitialized constant GC::INTERNAL_CONSTANTS" +exclude :test_name_error_message, "spurious; expected but was <#>." +exclude :test_reachable_objects_from, "<[Array, \"a\", \"b\", \"c\"]> expected but was <[Array, \"a\", \"c\", \"b\"]>." +exclude :test_reachable_objects_size, "NoMethodError: undefined method `each' for nil:NilClass" +exclude :test_utf8_method_names, "{\"address\":\"0x11e8\",\"class\":\"0x678\",\"memsize\":3,\"flags\":{},\"type\":\"STRING\",\"bytesize\":2,\"value\":\"12\",\"encoding\":\"UTF-8\"}." diff --git a/test/mri/excludes/TestObject.rb b/test/mri/excludes/TestObject.rb index b86a4a401d5d..58379caec75d 100644 --- a/test/mri/excludes/TestObject.rb +++ b/test/mri/excludes/TestObject.rb @@ -1,10 +1,9 @@ -exclude :test_bad_initialize_copy, "needs investigation" -exclude :test_frozen_error_message, "needs investigation" -exclude :test_implicit_respond_to_arity_3, "needs investigation" -exclude :test_method_missing, "needs investigation" +exclude :test_bad_initialize_copy, "frozen." +exclude :test_check_to_integer, "TypeError: can't iterate from TestObject::MyInteger" +exclude :test_implicit_respond_to_arity_3, "Expected Exception(ArgumentError) was raised, but the message doesn't match. <\"respond_to? must accept 1 or 2 arguments (requires 3)\"> expected but was <\"wrong number of arguments (given 2, expected 3)\">." +exclude :test_method_missing, "[ArgumentError] exception expected, not #:0x928>>." exclude :test_redefine_method_under_verbose, "needs investigation" exclude :test_redefine_method_which_may_case_serious_problem, "needs investigation" exclude :test_remove_method, "needs investigation" -exclude :test_respond_to_missing, "needs investigation" -exclude :test_type_error_message, "needs investigation" -exclude :test_check_to_integer, "needs investigation" +exclude :test_respond_to_missing, "<##foobar(*rest) /home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/test/mri/tests/ruby/test_object.rb:567>> expected but was <##foobar(*rest) /home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/test/mri/tests/ruby/test_object.rb:567>>." +exclude :test_type_error_message, "Expected Exception(TypeError) was raised, but the message doesn't match. <\"can't convert Array into Rational\"> expected but was <\"wrong argument type Array (expected Rational)\">." diff --git a/test/mri/excludes/TestObjectSpace.rb b/test/mri/excludes/TestObjectSpace.rb index a0cbf7f315a2..53d65117a46f 100644 --- a/test/mri/excludes/TestObjectSpace.rb +++ b/test/mri/excludes/TestObjectSpace.rb @@ -1,7 +1,8 @@ -exclude :test_each_object_singleton_class, "needs investigation" -exclude :test_finalizer, "needs investigation" -exclude :test_id2ref_invalid_argument, "needs investigation" -exclude :test_count_objects, "needs investigation" -exclude :test_id2ref_liveness, "needs investigation" -exclude :test_exception_in_finalizer, "pid 283258 exit 1" +exclude :test_count_objects, "NoMethodError: undefined method `count_objects' for ObjectSpace:Module" +exclude :test_each_object_singleton_class, "Bug #11360" +exclude :test_exception_in_finalizer, "| -:2:in `define_finalizer': wrong number of arguments (given 1, expected 2) (ArgumentError)" +exclude :test_finalizer, "| -e:2:in `define_finalizer': wrong number of arguments (given 1, expected 2) (ArgumentError)" +exclude :test_id2ref_invalid_argument, "Expected Exception(TypeError) was raised, but the message doesn't match. Expected /no implicit conversion/ to match \"TruffleRuby doesn't have a case for the org.truffleruby.core.objectspace.ObjectSpaceNodesFactory$ID2RefNodeFactory$ID2RefNodeGen node with values of type org.truffleruby.language.Nil\\n\" + \"\\tfrom org.truffleruby.core.objectspace.ObjectSpaceNodesFactory$ID2RefNodeFactory$ID2RefNodeGen.executeAndSpecialize(ObjectSpaceNodesFactory.java:246)\\n\" + \"\\tfrom org.truffleruby.core.objectspace.ObjectSpaceNodesFactory$ID2RefNodeFactory$ID2RefNodeGen.execute(ObjectSpaceNodesFactory.java:192)\\n\" + \"\\tfrom org.truffleruby.language.RubyCoreMethodRootNode.execute(RubyCoreMethodRootNode.java:58)\"." exclude :test_id2ref_invalid_symbol_id, "Exception(RangeError) with message matches to /is not symbol id value/." +exclude :test_id2ref_liveness, "very slow: 72.86s on truffleruby 24.2.0-dev-b555f590, like ruby 3.2.4, GraalVM CE JVM [x86_64-linux] with AMD Ryzen 7 3700X 8-Core Processor (16 vCPUs)" +exclude :test_name_error_message, "spurious; <#nil, :retry=>true, :hide_skip=>true, :failed_output=>#, :repeat_count=>nil, :excludes=>[\"test/mri/excludes\"], :verbose=>true, :test_order=>:sorted, :color=>:never, :ruby=> [\"/home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/mxbuild/truffleruby-jvm-ce/bin/truffleruby\"]}, @passed=nil>> expected but was <#nil, :retry=>true, :hide_skip=>true, :failed_output=>#, :repeat_count=>nil, :excludes=>[\"test/mri/excludes\"], :verbose=>true, :test_order=>:sorted, :color=>:never, :ruby=> [\"/home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/mxbuild/truffleruby-jvm-ce/bin/truffleruby\"]}, @passed=nil>>." diff --git a/test/mri/excludes/TestOpenURI.rb b/test/mri/excludes/TestOpenURI.rb index 89843c6b8184..caa1e9c89fc8 100644 --- a/test/mri/excludes/TestOpenURI.rb +++ b/test/mri/excludes/TestOpenURI.rb @@ -1 +1 @@ -exclude :test_encoding, "needs investigation" +exclude :test_encoding, "exceptions on 1 threads: #:" diff --git a/test/mri/excludes/TestPack.rb b/test/mri/excludes/TestPack.rb index beed8a4f2594..6964e4be45ca 100644 --- a/test/mri/excludes/TestPack.rb +++ b/test/mri/excludes/TestPack.rb @@ -1,17 +1,15 @@ -exclude :test_invalid_warning, "needs investigation" -exclude :test_pack_garbage, "needs investigation" -exclude :test_pack_p, "needs investigation" -exclude :test_pack_unpack_u, "needs investigation" -exclude :test_unpack_garbage, "needs investigation" -exclude :test_format_string_modified, "needs investigation" -exclude :test_length_too_big, "needs investigation" -exclude :test_pack_P, "needs investigation" -exclude :test_pack_resize, "needs investigation" -exclude :test_pack_unpack_P2, "needs investigation" -exclude :test_pack_unpack_U, "needs investigation" -exclude :test_pack_with_buffer, "needs investigation" -exclude :test_short_with_block, "needs investigation" -exclude :test_unpack_with_block, "needs investigation" -exclude :test_unpack_offset, "ArgumentError: wrong number of arguments (given 2, expected 1)" -exclude :test_unpack1_offset, "ArgumentError: wrong number of arguments (given 2, expected 1)" exclude :test_ascii_incompatible, "Encoding::CompatibilityError expected but nothing was raised." +exclude :test_format_string_modified, "RuntimeError expected but nothing was raised." +exclude :test_invalid_warning, "expected: /unknown pack directive ',' in ','/" +exclude :test_length_too_big, "[RangeError] exception expected, not #." +exclude :test_pack_P, "<\"a\"> expected but was <\"abc\">." +exclude :test_pack_garbage, "expected: /unknown pack directive '\\*' in '\\*U'$/" +exclude :test_pack_p, "hangs; high CPU" +exclude :test_pack_resize, "Exception(ArgumentError) with message matches to /too few/." +exclude :test_pack_unpack_P2, "ArgumentError expected but nothing was raised." +exclude :test_pack_unpack_U, "ArgumentError expected but nothing was raised." +exclude :test_pack_unpack_u, " (java.lang.UnsupportedOperationException) from org.truffleruby.core.format.write.bytes.EncodeUM.encodes(EncodeUM.java:107)" +exclude :test_pack_with_buffer, "<\"@\\xEB\\xA9\\xB2\\\\V\\x00\\x00\"> expected but was <\"\\xB0LN\\xB3\\\\V\\x00\\x00\">." +exclude :test_short_with_block, "Expected [nil] to be nil." +exclude :test_unpack_garbage, " (com.oracle.truffle.api.CompilerDirectives.ShouldNotReachHere) from com.oracle.truffle.api.CompilerDirectives.shouldNotReachHere(CompilerDirectives.java:603)" +exclude :test_unpack_with_block, "<[65, 66, 67, 68]> expected but was <[]>." diff --git a/test/mri/excludes/TestParse.rb b/test/mri/excludes/TestParse.rb index ad8a321bf6e4..b5b67bbfad40 100644 --- a/test/mri/excludes/TestParse.rb +++ b/test/mri/excludes/TestParse.rb @@ -1,25 +1,25 @@ -exclude :test_else_without_rescue, "[\"/Users/andrykonchin/projects/truffleruby-ws/truffleruby/test/mri/tests/ruby/test_parse.rb\", 21]." +exclude :test_else_without_rescue, "[\"/home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/test/mri/tests/ruby/test_parse.rb\", 21]." exclude :test_error_def_in_argument, "-:7:in `
'." exclude :test_error_line, "Message to pipe should end with a newline." -exclude :test_float, "/Users/andrykonchin/projects/truffleruby-ws/truffleruby/test/mri/tests/ruby/test_parse.rb:763:in `test_float'." -exclude :test_global_variable, "/Users/andrykonchin/projects/truffleruby-ws/truffleruby/test/mri/tests/ruby/test_parse.rb:774:in `test_global_variable'." -exclude :test_invalid_char, "[ruby-core:64243] [Bug #10117]" -exclude :test_location_of_invalid_token, "/Users/andrykonchin/projects/truffleruby-ws/truffleruby/test/mri/tests/ruby/test_parse.rb:1192:in `test_location_of_invalid_token'." -exclude :test_magic_comment, "[ArgumentError] exception expected, not #." -exclude :test_method_block_location, "[ruby-core:40936]." -exclude :test_method_location_in_rescue, "[ruby-core:79388] [Bug #13181]." -exclude :test_string, "from the backslash through the invalid char." -exclude :test_unclosed_unicode_escape_at_eol_bug_19750, "-:7:in `
'." -exclude :test_unexpected_eof, "/Users/andrykonchin/projects/truffleruby-ws/truffleruby/test/mri/tests/ruby/test_parse.rb:1188:in `test_unexpected_eof'." -exclude :test_unexpected_token_after_numeric, "/Users/andrykonchin/projects/truffleruby-ws/truffleruby/test/mri/tests/ruby/test_parse.rb:1136:in `test_unexpected_token_after_numeric'." -exclude :test_unused_variable, "expected: /あ/" -exclude :test_utf8_bom, "Exception raised:" -exclude :test_void_expr_stmts_value, "expected: /unused/" -exclude :test_yyerror_at_eol, "/Users/andrykonchin/projects/truffleruby-ws/truffleruby/test/mri/tests/ruby/test_parse.rb:1042:in `test_yyerror_at_eol'." +exclude :test_float, "/home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/test/mri/tests/ruby/test_parse.rb:763:in `test_float'." +exclude :test_global_variable, "/home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/test/mri/tests/ruby/test_parse.rb:774:in `test_global_variable'." +exclude :test_invalid_char, "| truffleruby: -e:1: Invalid char '\\x01' in expression (SyntaxError)" +exclude :test_location_of_invalid_token, "/home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/test/mri/tests/ruby/test_parse.rb:1192:in `test_location_of_invalid_token'." +exclude :test_magic_comment, "[ArgumentError] exception expected, not #." +exclude :test_method_block_location, "<923> expected but was <921>." +exclude :test_method_location_in_rescue, "<1075> expected but was <1082>." exclude :test_question, "SyntaxError: (eval):1: cannot eval() a String with binary encoding, with no magic encoding comment and containing a non-US-ASCII character: \\xFF" exclude :test_shareable_constant_value_nested, "SyntaxError: (eval):6: YARPTranslator does not know how to translate ShareableConstantNode at (eval):6" exclude :test_shareable_constant_value_nonliteral, "NameError: uninitialized constant TestParse::Ractor" exclude :test_shareable_constant_value_simple, "SyntaxError: (eval):3: YARPTranslator does not know how to translate ShareableConstantNode at (eval):3" exclude :test_shareable_constant_value_unfrozen, "NameError: uninitialized constant TestParse::Ractor" exclude :test_shareable_constant_value_unshareable_literal, "NameError: uninitialized constant TestParse::Ractor" +exclude :test_string, "from the backslash through the invalid char." exclude :test_truncated_source_line, "NoMethodError: undefined method `start_with?' for nil:NilClass" +exclude :test_unclosed_unicode_escape_at_eol_bug_19750, "-:7:in `
'." +exclude :test_unexpected_eof, "/home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/test/mri/tests/ruby/test_parse.rb:1188:in `test_unexpected_eof'." +exclude :test_unexpected_token_after_numeric, "/home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/test/mri/tests/ruby/test_parse.rb:1136:in `test_unexpected_token_after_numeric'." +exclude :test_unused_variable, "expected: /あ/" +exclude :test_utf8_bom, "Exception raised: <#>" +exclude :test_void_expr_stmts_value, "expected: /unused/" +exclude :test_yyerror_at_eol, "/home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/test/mri/tests/ruby/test_parse.rb:1042:in `test_yyerror_at_eol'." diff --git a/test/mri/excludes/TestPath.rb b/test/mri/excludes/TestPath.rb index 82c055264ca7..f73df2480334 100644 --- a/test/mri/excludes/TestPath.rb +++ b/test/mri/excludes/TestPath.rb @@ -1,4 +1,4 @@ -exclude :test_basename, "needs investigation" -exclude :test_dirname, "needs investigation" -exclude :test_extname, "needs investigation" -exclude :test_path, "needs investigation" +exclude :test_basename, "<\"..\"> expected but was <\".\">." +exclude :test_dirname, "<\"C:\"> expected but was <\"C:/\">." +exclude :test_extname, "<\"\"> expected but was <\".x\">." +exclude :test_path, "<\"//\"> expected but was <\"/\">." diff --git a/test/mri/excludes/TestPathname.rb b/test/mri/excludes/TestPathname.rb index 2cd7a5622650..5c0ae7576d79 100644 --- a/test/mri/excludes/TestPathname.rb +++ b/test/mri/excludes/TestPathname.rb @@ -1,41 +1,9 @@ -exclude :test_each_line_opts, "needs investigation" -exclude :test_relative_path_from_297, "needs investigation" -exclude :test_relative_path_from_298, "needs investigation" -exclude :test_relative_path_from_299, "needs investigation" -exclude :test_relative_path_from_300, "needs investigation" -exclude :test_relative_path_from_301, "needs investigation" -exclude :test_relative_path_from_302, "needs investigation" -exclude :test_relative_path_from_303, "needs investigation" -exclude :test_relative_path_from_304, "needs investigation" -exclude :test_relative_path_from_305, "needs investigation" -exclude :test_relative_path_from_307, "needs investigation" -exclude :test_relative_path_from_308, "needs investigation" -exclude :test_relative_path_from_310, "needs investigation" -exclude :test_relative_path_from_311, "needs investigation" -exclude :test_relative_path_from_313, "needs investigation" -exclude :test_relative_path_from_314, "needs investigation" -exclude :test_relative_path_from_315, "needs investigation" -exclude :test_relative_path_from_317, "needs investigation" -exclude :test_relative_path_from_318, "needs investigation" -exclude :test_relative_path_from_319, "needs investigation" -exclude :test_relative_path_from_320, "needs investigation" -exclude :test_relative_path_from_322, "needs investigation" -exclude :test_relative_path_from_323, "needs investigation" -exclude :test_relative_path_from_324, "needs investigation" -exclude :test_relative_path_from_325, "needs investigation" -exclude :test_relative_path_from_326, "needs investigation" -exclude :test_relative_path_from_328, "needs investigation" -exclude :test_relative_path_from_329, "needs investigation" -exclude :test_relative_path_from_331, "needs investigation" -exclude :test_relative_path_from_332, "needs investigation" -exclude :test_relative_path_from_333, "needs investigation" -exclude :test_relative_path_from_334, "needs investigation" -exclude :test_birthtime, "needs investigation" -exclude :test_find, "needs investigation" -exclude :test_relative_path_from_mock, "needs investigation" -exclude :test_world_readable?, "needs investigation" -exclude :test_world_writable?, "needs investigation" +exclude :test_birthtime, "NoMethodError: undefined method `birthtime' for #" +exclude :test_each_entry_enumerator, "LocalJumpError: no block given (yield)" +exclude :test_find, "LocalJumpError: no block given (yield)" exclude :test_mkpath, "ArgumentError: wrong number of arguments (given 1, expected 0)" +exclude :test_relative_path_from_mock, "TypeError: no implicit conversion of Object into String" +exclude :test_s_glob_3args, "<[#, #]> expected but was <[#, #, #]>." exclude :test_split, "[TypeError] exception expected, not #." -exclude :test_s_glob_3args, "<[#, #]> expected but was" -exclude :test_each_entry_enumerator, "LocalJumpError: no block given (yield)" +exclude :test_world_readable?, "NoMethodError: undefined method `world_readable?' for FileTest:Module" +exclude :test_world_writable?, "NoMethodError: undefined method `world_writable?' for FileTest:Module" diff --git a/test/mri/excludes/TestPatternMatching.rb b/test/mri/excludes/TestPatternMatching.rb index 2e19008f1e2b..ec145ab34e2b 100644 --- a/test/mri/excludes/TestPatternMatching.rb +++ b/test/mri/excludes/TestPatternMatching.rb @@ -1,9 +1,9 @@ -exclude :test_invalid_syntax, "/home/eregon/code/truffleruby-ws/truffleruby/test/mri/tests/ruby/test_pattern_matching.rb:1269:in `test_invalid_syntax'." -exclude :test_single_pattern_error_alternative_pattern, "Expected Exception(NoMatchingPatternError) was raised, but the message doesn't match." -exclude :test_single_pattern_error_array_pattern, "Expected Exception(NoMatchingPatternError) was raised, but the message doesn't match." -exclude :test_single_pattern_error_as_pattern, "Expected Exception(NoMatchingPatternError) was raised, but the message doesn't match." -exclude :test_single_pattern_error_find_pattern, "Expected Exception(NoMatchingPatternError) was raised, but the message doesn't match." -exclude :test_single_pattern_error_guard_clause, "Expected Exception(NoMatchingPatternError) was raised, but the message doesn't match." -exclude :test_single_pattern_error_hash_pattern, "Expected Exception(NoMatchingPatternError) was raised, but the message doesn't match." -exclude :test_single_pattern_error_value_pattern, "Expected Exception(NoMatchingPatternError) was raised, but the message doesn't match." exclude :test_deconstruct_cache, "TypeError: deconstruct must return Array" +exclude :test_invalid_syntax, "/home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/test/mri/tests/ruby/test_pattern_matching.rb:1269:in `test_invalid_syntax'." +exclude :test_single_pattern_error_alternative_pattern, "Expected Exception(NoMatchingPatternError) was raised, but the message doesn't match. <\"0: 2 === 0 does not return true\"> expected but was <\"0\">." +exclude :test_single_pattern_error_array_pattern, "Expected Exception(NoMatchingPatternError) was raised, but the message doesn't match. <\"[]: Hash === [] does not return true\"> expected but was <\"[]\">." +exclude :test_single_pattern_error_as_pattern, "Expected Exception(NoMatchingPatternError) was raised, but the message doesn't match. <\"[0]: 1 === 0 does not return true\"> expected but was <\"[0]\">." +exclude :test_single_pattern_error_find_pattern, "Expected Exception(NoMatchingPatternError) was raised, but the message doesn't match. <\"[]: Hash === [] does not return true\"> expected but was <\"[]\">." +exclude :test_single_pattern_error_guard_clause, "Expected Exception(NoMatchingPatternError) was raised, but the message doesn't match. <\"0: guard clause does not return true\"> expected but was <\"0\">." +exclude :test_single_pattern_error_hash_pattern, "Expected Exception(NoMatchingPatternError) was raised, but the message doesn't match. <\"{}: Array === {} does not return true\"> expected but was <\"{}\">." +exclude :test_single_pattern_error_value_pattern, "Expected Exception(NoMatchingPatternError) was raised, but the message doesn't match. <\"0: 1 === 0 does not return true\"> expected but was <\"0\">." diff --git a/test/mri/excludes/TestPipe.rb b/test/mri/excludes/TestPipe.rb index 3f357e60926e..da09a4cc3f93 100644 --- a/test/mri/excludes/TestPipe.rb +++ b/test/mri/excludes/TestPipe.rb @@ -1,3 +1 @@ -exclude :test_eof_0, "needs investigation" -exclude :test_eof_1, "needs investigation" -exclude :test_stdout_epipe, "needs investigation" +exclude :test_stdout_epipe, "[Errno::EPIPE] exception expected, not #." diff --git a/test/mri/excludes/TestPostponed_job.rb b/test/mri/excludes/TestPostponed_job.rb new file mode 100644 index 000000000000..f6454161e7aa --- /dev/null +++ b/test/mri/excludes/TestPostponed_job.rb @@ -0,0 +1,2 @@ +exclude :test_register, "undefined symbol: rb_gc_start" +exclude :test_register_in_c_thread, "undefined symbol: rb_postponed_job_register_one" diff --git a/test/mri/excludes/TestProc.rb b/test/mri/excludes/TestProc.rb index 54e77b05d624..5bbd45335c9c 100644 --- a/test/mri/excludes/TestProc.rb +++ b/test/mri/excludes/TestProc.rb @@ -1,20 +1,20 @@ -exclude :test_binding_error_unless_ruby_frame, "[RuntimeError] exception expected, not #>." -exclude :test_bound_parameters, "<[[:rest]]> expected but was" -exclude :test_compose_with_callable, "Expected # core/proc.rb:126> to be lambda?." -exclude :test_compose_with_lambda, "Expected # core/proc.rb:126> to be lambda?." -exclude :test_compose_with_method, "Expected # core/proc.rb:126> to be lambda?." +exclude :test_binding, "NoMethodError: undefined method `foo=' for #" +exclude :test_binding_error_unless_ruby_frame, "[RuntimeError] exception expected, not #>." +exclude :test_bound_parameters, "<[[:rest]]> expected but was <[[:req, :pattern], [:opt, :replacement], [:block, :block]]>." +exclude :test_compose_with_callable, "Expected # core/proc.rb:126> to be lambda?." +exclude :test_compose_with_lambda, "Expected # core/proc.rb:126> to be lambda?." +exclude :test_compose_with_method, "Expected # core/proc.rb:126> to be lambda?." exclude :test_curry_given_blocks, "expected: /given block not used/" -exclude :test_curry_passed_block, "[ruby-core:15551]: passed block to curried block." -exclude :test_curry_proc, "<6> expected but was" -exclude :test_curry_proc_splat, "<6> expected but was" -exclude :test_curry_with_trace, "expected: /given block not used/" -exclude :test_orphan_return, "LocalJumpError expected but nothing was raised." -exclude :test_parameters, "<[[:opt, nil], [:block, :b]]> expected but was" -exclude :test_proc_args_opt_rest, "<[:a, :b, :c, []]> expected but was" -exclude :test_proc_autosplat, "<[[1, 2], [[1, 2, 3], 0], [[1, 2, 3], {}]]> expected but was" -exclude :test_proc_autosplat_with_multiple_args_with_ruby2_keywords_splat_bug_19759, "<[[:a, :b], nil]> expected but was" -exclude :test_to_s, "Expected /^#$/ to match \"# core/post.rb:78 (lambda)>\"." -exclude :test_binding, "NoMethodError: undefined method `foo=' for #" exclude :test_curry_lambda_splat, "ArgumentError: wrong number of arguments (given 1, expected 3+)" -exclude :test_dup_clone, "NoMethodError: undefined method `foo=' for #" +exclude :test_curry_passed_block, " expected to not be nil." +exclude :test_curry_proc, "<6> expected but was <0>." +exclude :test_curry_proc_splat, "<6> expected but was <0>." +exclude :test_curry_with_trace, " expected to not be nil." +exclude :test_dup_clone, "NoMethodError: undefined method `foo=' for #" exclude :test_localjump_error, "NoMethodError: undefined method `exit_value' for #" +exclude :test_orphan_return, "LocalJumpError expected but nothing was raised." +exclude :test_parameters, "<[[:opt, nil], [:block, :b]]> expected but was <[[:req], [:block, :b]]>." +exclude :test_proc_args_opt_rest, "<[:a, :b, :c, []]> expected but was <[[], :b, :c, []]>." +exclude :test_proc_autosplat, "<[[1, 2], [[1, 2, 3], 0], [[1, 2, 3], {}]]> expected but was <[[1, 2], [1, 2], [[1, 2, 3], {}]]>." +exclude :test_proc_autosplat_with_multiple_args_with_ruby2_keywords_splat_bug_19759, "<[[:a, :b], nil]> expected but was <[:a, :b]>." +exclude :test_to_s, "Expected /^#$/ to match \"# core/post.rb:78 (lambda)>\"." diff --git a/test/mri/excludes/TestProcess.rb b/test/mri/excludes/TestProcess.rb index 7267ff130903..565eb9a2027e 100644 --- a/test/mri/excludes/TestProcess.rb +++ b/test/mri/excludes/TestProcess.rb @@ -1,42 +1,41 @@ -exclude :test_execopts_redirect_open_fifo, "blocks forever" -exclude :test_execopts_redirect_open_fifo_interrupt_print, "blocks forever" -exclude :test_execopts_redirect_open_fifo_interrupt_raise, "needs investigation" -exclude :test_execopts_redirect_open_order_normal, "needs investigation" -exclude :test_execopts_redirect_open_order_reverse, "needs investigation" -exclude :test_execopts_redirect_pipe, "blocks forever" -exclude :test_execopts_redirect_self, "blocks forever" exclude :test_abort, "needs investigation" -exclude :test_aspawn_too_long_path, "needs investigation" -exclude :test_execopts_chdir, "needs investigation" -exclude :test_execopts_duplex_io, "needs investigation" -exclude :test_execopts_env, "needs investigation" -exclude :test_execopts_gid, "needs investigation" -exclude :test_execopts_popen, "needs investigation" -exclude :test_execopts_popen_stdio, "needs investigation" -exclude :test_execopts_redirect_dup2_child, "needs investigation" -exclude :test_execopts_redirect_fd, "needs investigation" -exclude :test_execopts_uid, "needs investigation" -exclude :test_execopts_unsetenv_others, "needs investigation" -exclude :test_fd_inheritance, "needs investigation" -exclude :test_initgroups, "needs investigation" +exclude :test_argv0, "slow: 30.26s on truffleruby 24.2.0-dev-b555f590, like ruby 3.2.4, GraalVM CE JVM [x86_64-linux] with AMD Ryzen 7 3700X 8-Core Processor: (16 vCPUs)" +exclude :test_argv0_noarg, "slow: 49.46s on truffleruby 24.2.0-dev-b555f590, like ruby 3.2.4, GraalVM CE JVM [x86_64-linux] with AMD Ryzen 7 3700X 8-Core Processor: (16 vCPUs)" +exclude :test_aspawn_too_long_path, "[Errno::ENOENT, Errno::E2BIG] exception expected, not #." +exclude :test_concurrent_group_and_pid_wait, "NotImplementedError: fork is not available" +exclude :test_deadlock_by_signal_at_forking, "ArgumentError: Signal already used by VM or OS: SIGQUIT" +exclude :test_exec_fd_3_redirect, "NotImplementedError: fork is not available" +exclude :test_execopts_chdir, "Exception(Errno::ENOENT) with message matches to /d\\/notexist/." +exclude :test_execopts_close_others, "slow: 39.27s on truffleruby 24.2.0-dev-b555f590, like ruby 3.2.4, GraalVM CE JVM [x86_64-linux] with AMD Ryzen 7 3700X 8-Core Processor: (16 vCPUs)" +exclude :test_execopts_duplex_io, "ArgumentError expected but nothing was raised." +exclude :test_execopts_env_popen_string, "slow: 51.42s on truffleruby 24.2.0-dev-b555f590, like ruby 3.2.4, GraalVM CE JVM [x86_64-linux] with AMD Ryzen 7 3700X 8-Core Processor: (16 vCPUs)" +exclude :test_execopts_env_popen_vector, "slow: 50.25s on truffleruby 24.2.0-dev-b555f590, like ruby 3.2.4, GraalVM CE JVM [x86_64-linux] with AMD Ryzen 7 3700X 8-Core Processor: (16 vCPUs)" +exclude :test_execopts_gid, "Exception raised: <#>" +exclude :test_execopts_pgroup, "Errno::EPERM expected but nothing was raised." +exclude :test_execopts_popen, "Errno::ENOENT expected but nothing was raised." +exclude :test_execopts_popen_stdio, "ArgumentError expected but nothing was raised." +exclude :test_execopts_redirect_dup2_child, "<\"errout\"> expected but was <\"\">." +exclude :test_execopts_redirect_fd, "ArgumentError expected but nothing was raised." +exclude :test_execopts_redirect_open_fifo, "hangs" +exclude :test_execopts_redirect_open_fifo_interrupt_print, "hangs" +exclude :test_execopts_redirect_open_fifo_interrupt_raise, "hangs" +exclude :test_execopts_redirect_pipe, "hangs" +exclude :test_execopts_redirect_self, "hangs" +exclude :test_execopts_rlimit, "ArgumentError: unknown exec option: :rlimit_core" +exclude :test_execopts_uid, "Exception raised: <#>" +exclude :test_execopts_umask, "RuntimeError: Unknown spawn option: umask" +exclude :test_fallback_to_sh, "Errno::ENOEXEC: Exec format error - posix_spawnp ./tmp_script.445389" +exclude :test_fd_inheritance, "slow: 31.22s on truffleruby 24.2.0-dev-b555f590, like ruby 3.2.4, GraalVM CE JVM [x86_64-linux] with AMD Ryzen 7 3700X 8-Core Processor: (16 vCPUs)" +exclude :test_initgroups, "[ArgumentError] exception expected, not #." +exclude :test_maxgroups, "[ArgumentError] exception expected, not #." exclude :test_no_curdir, "needs investigation" -exclude :test_rlimit_value, "needs investigation" -exclude :test_seteuid_name, "needs investigation" -exclude :test_sleep, "needs investigation" -exclude :test_spawn_too_long_path, "needs investigation" -exclude :test_to_hash_on_arguments, "needs investigation" -exclude :test_deadlock_by_signal_at_forking, "needs investigation" -exclude :test_exec_fd_3_redirect, "needs investigation" -exclude :test_execopts_rlimit, "needs investigation" -exclude :test_execopts_umask, "needs investigation" -exclude :test_process_detach, "needs investigation" -exclude :test_sh_exec, "needs investigation" -exclude :test_signals_work_after_exec_fail, "needs investigation" -exclude :test_status_quit, "needs investigation" -exclude :test_threading_works_after_exec_fail, "needs investigation" -exclude :test_execopts_pgroup, "needs investigation" -exclude :test_maxgroups, "needs investigation" -exclude :test_popen_exit, "needs investigation" -exclude :test_fallback_to_sh, "needs investigation" exclude :test_overwrite_ENV, "assert_separately failed with error message" -exclude :test_concurrent_group_and_pid_wait, "NotImplementedError: fork is not available" +exclude :test_process_detach, "NotImplementedError: fork is not available" +exclude :test_rlimit_value, "[ArgumentError] exception expected, not #." +exclude :test_sh_exec, "Errno::ENOENT: No such file or directory - No such file or directory - exec" +exclude :test_signals_work_after_exec_fail, "NotImplementedError: fork is not available" +exclude :test_sleep, "Expected Exception(ArgumentError) was raised, but the message doesn't match. Expected /not.*negative/ to match \"time interval must be positive\"." +exclude :test_spawn_too_long_path, "[Errno::ENOENT, Errno::E2BIG] exception expected, not #." +exclude :test_status_quit, "ArgumentError: unknown exec option: :rlimit_core" +exclude :test_threading_works_after_exec_fail, "NotImplementedError: fork is not available" +exclude :test_to_hash_on_arguments, "needs investigation" diff --git a/test/mri/excludes/TestProfileFrames.rb b/test/mri/excludes/TestProfileFrames.rb index 7e949cdecb07..028daf15acb7 100644 --- a/test/mri/excludes/TestProfileFrames.rb +++ b/test/mri/excludes/TestProfileFrames.rb @@ -1,3 +1,3 @@ -exclude :test_ifunc_frame, "needs investigation" -exclude :test_profile_frames, "needs investigation" -exclude :test_matches_backtrace_locations_main_thread, "Polyglot::ForeignException: External LLVMFunction rb_profile_frames cannot be found." +exclude :test_ifunc_frame, "| core/kernel.rb:269:in `require': cannot load such file -- c/debug (LoadError)" +exclude :test_matches_backtrace_locations_main_thread, "undefined symbol: rb_profile_frames" +exclude :test_profile_frames, "undefined symbol: rb_profile_frames" diff --git a/test/mri/excludes/TestProtocol.rb b/test/mri/excludes/TestProtocol.rb index 489fc40385a9..e69de29bb2d1 100644 --- a/test/mri/excludes/TestProtocol.rb +++ b/test/mri/excludes/TestProtocol.rb @@ -1,2 +0,0 @@ -exclude :test_each_crlf_line, "needs investigation" -exclude :test_should_properly_dot_stuff_period_with_no_endline, "needs investigation" diff --git a/test/mri/excludes/TestRDocGeneratorJsonIndex.rb b/test/mri/excludes/TestRDocGeneratorJsonIndex.rb index da5df359887d..e69de29bb2d1 100644 --- a/test/mri/excludes/TestRDocGeneratorJsonIndex.rb +++ b/test/mri/excludes/TestRDocGeneratorJsonIndex.rb @@ -1 +0,0 @@ -exclude :test_generate, "needs investigation" diff --git a/test/mri/excludes/TestRDocMarkupToHtml.rb b/test/mri/excludes/TestRDocMarkupToHtml.rb index e28eacdcde71..e69de29bb2d1 100644 --- a/test/mri/excludes/TestRDocMarkupToHtml.rb +++ b/test/mri/excludes/TestRDocMarkupToHtml.rb @@ -1,16 +0,0 @@ -exclude :test_accept_verbatim, "needs investigation" -exclude :test_accept_verbatim_escape_in_backtick, "needs investigation" -exclude :test_accept_verbatim_escape_in_string, "needs investigation" -exclude :test_accept_verbatim_nl_after_backslash, "needs investigation" -exclude :test_accept_verbatim_parseable, "needs investigation" -exclude :test_accept_verbatim_redefinable_operators, "needs investigation" -exclude :test_list_verbatim_2, "needs investigation" -exclude :test_parseable_eh, "needs investigation" -exclude :test_accept_verbatim, "needs investigation" -exclude :test_accept_verbatim_escape_in_backtick, "needs investigation" -exclude :test_accept_verbatim_escape_in_string, "needs investigation" -exclude :test_accept_verbatim_nl_after_backslash, "needs investigation" -exclude :test_accept_verbatim_parseable, "needs investigation" -exclude :test_accept_verbatim_redefinable_operators, "needs investigation" -exclude :test_list_verbatim_2, "needs investigation" -exclude :test_parseable_eh, "needs investigation" diff --git a/test/mri/excludes/TestRDocMarkupToHtmlSnippet.rb b/test/mri/excludes/TestRDocMarkupToHtmlSnippet.rb index 1ab9df825118..e69de29bb2d1 100644 --- a/test/mri/excludes/TestRDocMarkupToHtmlSnippet.rb +++ b/test/mri/excludes/TestRDocMarkupToHtmlSnippet.rb @@ -1,8 +0,0 @@ -exclude :test_accept_verbatim, "needs investigation" -exclude :test_accept_verbatim_ruby, "needs investigation" -exclude :test_convert_limit_verbatim_multiline, "needs investigation" -exclude :test_list_verbatim_2, "needs investigation" -exclude :test_accept_verbatim, "needs investigation" -exclude :test_accept_verbatim_ruby, "needs investigation" -exclude :test_convert_limit_verbatim_multiline, "needs investigation" -exclude :test_list_verbatim_2, "needs investigation" diff --git a/test/mri/excludes/TestRDocParserRuby.rb b/test/mri/excludes/TestRDocParserRuby.rb index 8d0afab76e02..e69de29bb2d1 100644 --- a/test/mri/excludes/TestRDocParserRuby.rb +++ b/test/mri/excludes/TestRDocParserRuby.rb @@ -1,2 +0,0 @@ -exclude :test_parse_statements_embdoc_in_document, "needs investigation" -exclude :test_parse_statements_embdoc_in_document, "needs investigation" diff --git a/test/mri/excludes/TestRDocRDoc.rb b/test/mri/excludes/TestRDocRDoc.rb index 4de6d7715f11..e69de29bb2d1 100644 --- a/test/mri/excludes/TestRDocRDoc.rb +++ b/test/mri/excludes/TestRDocRDoc.rb @@ -1 +0,0 @@ -exclude :test_remove_unparseable_CVE_2021_31799, "needs investigation" diff --git a/test/mri/excludes/TestRand.rb b/test/mri/excludes/TestRand.rb index 8657a2e7c31f..3e83fd0801cd 100644 --- a/test/mri/excludes/TestRand.rb +++ b/test/mri/excludes/TestRand.rb @@ -1,21 +1,21 @@ -exclude :test_0x10000, "needs investigation" -exclude :test_0x100000000, "needs investigation" -exclude :test_0x10000000000, "needs investigation" -exclude :test_0x1000000000000, "needs investigation" -exclude :test_0x1000000000001, "needs investigation" -exclude :test_0x100000001, "needs investigation" -exclude :test_0x3fffffff, "needs investigation" -exclude :test_0x3fffffffffffffff, "needs investigation" -exclude :test_0x40000000, "needs investigation" -exclude :test_0x4000000000000000, "needs investigation" -exclude :test_0x4000000000000001, "needs investigation" -exclude :test_0x40000001, "needs investigation" -exclude :test_0xffffffff, "needs investigation" -exclude :test_big_seed, "needs investigation" -exclude :test_marshal, "needs investigation" -exclude :test_mt, "needs investigation" -exclude :test_rand_0x100000000, "needs investigation" -exclude :test_random_dup, "needs investigation" -exclude :test_random_equal, "needs investigation" -exclude :test_random_ulong_limited, "needs investigation" -exclude :test_marshal_load_frozen, "needs investigation" +exclude :test_0x10000, "<2732> expected but was <43567>." +exclude :test_0x100000000, "<2357136044> expected but was <2546248239>." +exclude :test_0x10000000000, "<455570294424> expected but was <1073054410371>." +exclude :test_0x1000000000000, "<11736396900911> expected but was <183025067478208>." +exclude :test_0x1000000000001, "<187121911899765> expected but was <197104029029115>." +exclude :test_0x100000001, "<2546248239> expected but was <1277901399>." +exclude :test_0x3fffffff, "<209652396> expected but was <398764591>." +exclude :test_0x3fffffffffffffff, "<900450186894289455> expected but was <3969543146641149120>." +exclude :test_0x40000000, "<209652396> expected but was <398764591>." +exclude :test_0x4000000000000000, "<900450186894289455> expected but was <3969543146641149120>." +exclude :test_0x4000000000000001, "<900450186894289455> expected but was <3969543146641149120>." +exclude :test_0x40000001, "<209652396> expected but was <398764591>." +exclude :test_0xffffffff, "<2357136044> expected but was <2546248239>." +exclude :test_big_seed, "<1143843490> expected but was <496467457>." +exclude :test_marshal, "[TypeError] exception expected, not #>>." +exclude :test_marshal_load_frozen, "NoMethodError: undefined method `marshal_dump' for #>" +exclude :test_mt, "<1067595299> expected but was <955945823>." +exclude :test_rand_0x100000000, "<4119812344> expected but was <3870378946>." +exclude :test_random_dup, "<2357136044> expected but was <2546248239>." +exclude :test_random_equal, "<#>> expected to be != to" +exclude :test_random_ulong_limited, "Expected Exception(RangeError) was raised, but the message doesn't match. Expected /big 100\\z/ to match \"random value must be less than Array size\"." diff --git a/test/mri/excludes/TestRange.rb b/test/mri/excludes/TestRange.rb index cdd068bc294d..315246e93ef5 100644 --- a/test/mri/excludes/TestRange.rb +++ b/test/mri/excludes/TestRange.rb @@ -1,33 +1,16 @@ -exclude :test_range_bsearch_for_floats, "needs investigation" -exclude :test_include, "needs investigation" -exclude :test_bsearch_for_other_numerics, "needs investigation" -exclude :test_bsearch_typechecks_return_values, "needs investigation" -exclude :test_cover, "needs investigation" -exclude :test_frozen_initialize, "needs investigation" -exclude :test_initialize_twice, "needs investigation" -exclude :test_last_with_redefine_each, "needs investigation" -exclude :test_range_numeric_string, "needs investigation" -exclude :test_step, "needs investigation" -exclude :test_beg_len, "needs investigation" -exclude :test_comparison_when_recursive, "needs investigation" -exclude :test_cyclic_range_inspect, "needs investigation" -exclude :test_duckrange, "needs investigation" -exclude :test_each, "needs investigation" -exclude :test_max, "needs investigation" -exclude :test_min, "needs investigation" -exclude :test_bsearch_for_other_numerics, "needs investigation" -exclude :test_bsearch_typechecks_return_values, "needs investigation" -exclude :test_cover, "needs investigation" -exclude :test_frozen_initialize, "needs investigation" -exclude :test_initialize_twice, "needs investigation" -exclude :test_last_with_redefine_each, "needs investigation" -exclude :test_range_numeric_string, "needs investigation" -exclude :test_step, "needs investigation" -exclude :test_beg_len, "needs investigation" -exclude :test_comparison_when_recursive, "needs investigation" -exclude :test_cyclic_range_inspect, "needs investigation" -exclude :test_duckrange, "needs investigation" -exclude :test_each, "needs investigation" -exclude :test_max, "needs investigation" -exclude :test_min, "needs investigation" +exclude :test_beg_len, "TypeError: no implicit conversion of Object into Integer" +exclude :test_comparison_when_recursive, "SystemStackError: stack level too deep" +exclude :test_cover, "Expected 1..5 to not be cover? 3..2." +exclude :test_cyclic_range_inspect, "SystemStackError: stack level too deep" +exclude :test_duckrange, "TypeError: no implicit conversion of TestRange::DuckRange into Integer" +exclude :test_each, "NoMethodError: undefined method `<' for nil:NilClass" exclude :test_eqq_string, "TypeError expected but nothing was raised." +exclude :test_frozen_initialize, "FrozenError expected but nothing was raised." +exclude :test_include, "hangs" +exclude :test_initialize_twice, "[FrozenError] exception expected, not #." +exclude :test_last_with_redefine_each, "needs investigation" +exclude :test_max, "ArgumentError: wrong number of arguments (given 1, expected 0)" +exclude :test_min, "ArgumentError: wrong number of arguments (given 1, expected 0)" +exclude :test_range_bsearch_for_floats, "needs investigation" +exclude :test_range_numeric_string, "<[\"9\", \"10\"]> expected but was <[]>." +exclude :test_step, "ArgumentError expected but nothing was raised." diff --git a/test/mri/excludes/TestRational.rb b/test/mri/excludes/TestRational.rb new file mode 100644 index 000000000000..bd05e52c0808 --- /dev/null +++ b/test/mri/excludes/TestRational.rb @@ -0,0 +1 @@ +exclude :test_rb_rational_raw, "<-1> expected but was <1>." diff --git a/test/mri/excludes/TestRational/TestGCD.rb b/test/mri/excludes/TestRational/TestGCD.rb new file mode 100644 index 000000000000..bfa1543c916d --- /dev/null +++ b/test/mri/excludes/TestRational/TestGCD.rb @@ -0,0 +1,2 @@ +exclude :test_gcd_gmp_brute_force, "undefined symbol: rb_gcd_normal" +exclude :test_gcd_normal, "undefined symbol: rb_gcd_normal" diff --git a/test/mri/excludes/TestReadPartial.rb b/test/mri/excludes/TestReadPartial.rb new file mode 100644 index 000000000000..ab5da4a40575 --- /dev/null +++ b/test/mri/excludes/TestReadPartial.rb @@ -0,0 +1,2 @@ +exclude :test_open_pipe, "spurious; hangs" +exclude :test_with_stdio, "spurious; hangs" diff --git a/test/mri/excludes/TestRecursion.rb b/test/mri/excludes/TestRecursion.rb index 811fcecf7859..54308f8a88ae 100644 --- a/test/mri/excludes/TestRecursion.rb +++ b/test/mri/excludes/TestRecursion.rb @@ -1 +1 @@ -exclude :test_recursive_outer, "needs investigation" +exclude :test_recursive_outer, "undefined symbol: rb_exec_recursive_outer" diff --git a/test/mri/excludes/TestRefinement.rb b/test/mri/excludes/TestRefinement.rb index 1268f747a566..2871fd756ea1 100644 --- a/test/mri/excludes/TestRefinement.rb +++ b/test/mri/excludes/TestRefinement.rb @@ -1,12 +1,12 @@ -exclude :test_ancestors, "[ruby-core:86949] [Bug #14744]." -exclude :test_eval_with_binding_scoping, "pid 123017 exit 0." +exclude :test_ancestors, "<[#>]> expected but was <[#>," +exclude :test_eval_with_binding_scoping, "needs investigation" exclude :test_import_methods, "ArgumentError expected but nothing was raised." -exclude :test_prepend_after_refine, "<\"refined\"> expected but was" -exclude :test_refine_prepended_class, "<[:c, :m1, :m2]> expected but was" +exclude :test_prepend_after_refine, "<\"refined\"> expected but was <\"mixin\">." +exclude :test_refine_in_using, "NoMethodError: undefined method `foo' for #" +exclude :test_refine_prepended_class, "<[:c, :m1, :m2]> expected but was <[:c, :m1]>." exclude :test_refine_with_proc, "ArgumentError expected but nothing was raised." +exclude :test_refined_protected_methods, "NoMethodError: protected method `foo' called for #" +exclude :test_refinements, "spurious; <[#>, #>]> expected but was <[#>, #>]>." exclude :test_unbound_refine_method, "TypeError expected but nothing was raised." -exclude :test_used_modules, "<[TestRefinement::VisibleRefinements::RefB," -exclude :test_refinements, "TruffleRuby does not guarantee refinement list ordering" -exclude :test_warn_setconst_in_refinmenet, "[ruby-core:64143] [Bug #10103]" -exclude :test_refine_in_using, "NoMethodError: undefined method `foo' for #" -exclude :test_refined_protected_methods, "NoMethodError: protected method `foo' called for #" +exclude :test_used_modules, "spurious; <[TestRefinement::VisibleRefinements::RefB, TestRefinement::VisibleRefinements::RefA]> expected but was <[TestRefinement::VisibleRefinements::RefA, TestRefinement::VisibleRefinements::RefB]>." +exclude :test_warn_setconst_in_refinmenet, "needs investigation" diff --git a/test/mri/excludes/TestRegexp.rb b/test/mri/excludes/TestRegexp.rb index 40f1e55f7cb1..083cb3638654 100644 --- a/test/mri/excludes/TestRegexp.rb +++ b/test/mri/excludes/TestRegexp.rb @@ -1,28 +1,24 @@ -exclude :test_backref_overrun, "Expected Exception(SyntaxError) was raised, but the message doesn't match." +exclude :test_backref_overrun, "Expected Exception(SyntaxError) was raised, but the message doesn't match. Expected /invalid backref number/ to match \"(eval):1: Index 90000 out of bounds for length 5: /(())(?)((?(90000)))/\"." +exclude :test_bug_19467, "NoMethodError: undefined method `timeout=' for Regexp:Class" exclude :test_cache_index_initialize, "is too slow so leads to timeouts on CI" -exclude :test_dup, "initialize_copy not implemented in TruffleRuby" +exclude :test_cache_optimization_exponential, "NoMethodError: undefined method `timeout=' for Regexp:Class" +exclude :test_cache_optimization_square, "NoMethodError: undefined method `timeout=' for Regexp:Class" +exclude :test_dup, "[TypeError] exception expected, not #." exclude :test_dup_warn, "expected: /duplicated/" exclude :test_extended_comment_invalid_escape_bug_18294, "assert_separately failed with error message" exclude :test_ignorecase, "expected: /variable \\$= is no longer effective; ignored/" exclude :test_initialize, "expected: /ignored/" -exclude :test_inspect, "<\"/\\\\x00/i\"> expected but was" -exclude :test_matchdata, "[ruby-core:24748]." -exclude :test_named_capture, "<\"#\"> expected but was" -exclude :test_named_capture_nonascii, "[ruby-dev:48278] [Bug #9903]." -exclude :test_once_multithread, "<[/1/, /1/]> expected but was" -exclude :test_posix_bracket, "expected: /duplicated range/" -exclude :test_regsub, "RuntimeError expected but nothing was raised." -exclude :test_unescape, "[ArgumentError] exception expected, not #." -exclude :test_union, "<\"(?-mix:\\\\/)|\"> expected but was" -exclude :test_union2, " expected but was" -exclude :test_yoshidam_net_20041111_1, "expected: /3\\.3/" -exclude :test_bug_19467, "NoMethodError: undefined method `timeout=' for Regexp:Class" -exclude :test_cache_optimization_exponential, "NoMethodError: undefined method `timeout=' for Regexp:Class" -exclude :test_cache_optimization_square, "NoMethodError: undefined method `timeout=' for Regexp:Class" +exclude :test_inspect, "<\"/\\\\x00/i\"> expected but was <\"/\\u0000/i\">." exclude :test_invalid_free_at_parse_depth_limit_over, "NameError: uninitialized constant Bug" exclude :test_match_without_regexp, "Encoding::CompatibilityError: incompatible encoding regexp match (Shift_JIS regexp with UTF-8 string)" +exclude :test_matchdata, "<42> expected but was ." +exclude :test_named_capture, "<\"#\"> expected but was <\"#\">." +exclude :test_named_capture_nonascii, "IndexError expected but nothing was raised." +exclude :test_once_multithread, "TypeError: TruffleRuby doesn't have a case for the org.truffleruby.core.array.ArrayAppendOneNodeGen node with values of type Array(org.truffleruby.core.array.RubyArray)[org.truffleruby.core.array.library.SharedArrayStorage,1] org.truffleruby.core.regexp.RubyRegexp" exclude :test_parse, "Polyglot::ForeignException: invalid group reference 80" exclude :test_parse_kg, "Polyglot::ForeignException: undefined name <-1> reference" +exclude :test_posix_bracket, "expected: /duplicated range/" +exclude :test_regsub, "RuntimeError expected but nothing was raised." exclude :test_s_timeout, "NoMethodError: undefined method `timeout=' for Regexp:Class" exclude :test_s_timeout_corner_cases, "NoMethodError: private method `timeout' called for Regexp:Class" exclude :test_timeout_corner_cases, "NoMethodError: private method `timeout' called for //:Regexp" @@ -30,5 +26,8 @@ exclude :test_timeout_nil, "NoMethodError: undefined method `timeout=' for Regexp:Class" exclude :test_timeout_shorter_than_global, "NoMethodError: undefined method `timeout=' for Regexp:Class" exclude :test_to_s, "Encoding::CompatibilityError: incompatible character encodings: UTF-16BE and UTF-8" -exclude :test_to_s_extended_subexp, "throws internal exception" +exclude :test_unescape, "[ArgumentError] exception expected, not #." exclude :test_uninitialized, "TypeError: allocator undefined for Regexp" +exclude :test_union, "<\"(?-mix:\\\\/)|\"> expected but was <\"(?-mix:/)|\">." +exclude :test_union2, " expected but was ." +exclude :test_yoshidam_net_20041111_1, "expected: /3\\.3/" diff --git a/test/mri/excludes/TestRelineAsReadline.rb b/test/mri/excludes/TestRelineAsReadline.rb index dd543b5aa6c9..9f137fc5a1ff 100644 --- a/test/mri/excludes/TestRelineAsReadline.rb +++ b/test/mri/excludes/TestRelineAsReadline.rb @@ -1,3 +1,3 @@ -exclude :test_input_metachar, "needs investigation" -exclude :test_completion_proc_empty_result, "needs investigation" -exclude :test_without_tty, "It should work fine without tty, but it failed." +exclude :test_completion_proc_empty_result, "<\"\"> expected but was ." +exclude :test_input_metachar, "hangs" +exclude :test_interrupt_in_other_thread, "Unknown failure with exit status #" diff --git a/test/mri/excludes/TestRequire.rb b/test/mri/excludes/TestRequire.rb index c1ab971faa89..7ad5d197c68c 100644 --- a/test/mri/excludes/TestRequire.rb +++ b/test/mri/excludes/TestRequire.rb @@ -1,16 +1,15 @@ -exclude :test_require_path_home_2, "pid 90932 exit 1" -exclude :test_race_exception, "Expected /circular require/ to match \"\"." -exclude :test_require_invalid_shared_object, "[LoadError] exception expected, not #." -exclude :test_require_to_path_redefined_in_load_path, "[ruby-core:47970]" -exclude :test_require_changed_home, "[ruby-core:47970]" -exclude :test_require_path_home_1, "pid 90994 exit 1" -exclude :test_relative_symlink_realpath, "bug17885 [ruby-core:104010]." -exclude :test_require_path_home_3, "pid 90997 exit 1" -exclude :test_require_too_long_filename, "Expected 2 to be <= 1." -exclude :test_require_to_str_redefined_in_load_path, "[ruby-core:47970]" -exclude :test_require_nonascii_path_shift_jis, "LoadError: cannot load such file -- enc/trans/single_byte" exclude :test_load_ospath, "Encoding::CompatibilityError: incompatible encoding regexp match (Windows-31J regexp with UTF-8 string)" -exclude :test_loading_fifo_threading_raise, "Timeout::Error: execution of assert_separately expired (took longer than 9 seconds)" -exclude :test_loading_fifo_threading_success, "Timeout::Error: execution of assert_separately expired (took longer than 9 seconds)" -exclude :test_loading_fifo_fd_leak, "Timeout::Error: execution of assert_separately expired (took longer than 9 seconds)" +exclude :test_loading_fifo_fd_leak, "very slow: 181.74s on truffleruby 24.2.0-dev-b555f590, like ruby 3.2.4, GraalVM CE JVM [x86_64-linux] with AMD Ryzen 7 3700X 8-Core Processor (16 vCPUs)" +exclude :test_loading_fifo_threading_raise, "very slow: 180.47s on truffleruby 24.2.0-dev-b555f590, like ruby 3.2.4, GraalVM CE JVM [x86_64-linux] with AMD Ryzen 7 3700X 8-Core Processor (16 vCPUs)" +exclude :test_loading_fifo_threading_success, "very slow: 180.49s on truffleruby 24.2.0-dev-b555f590, like ruby 3.2.4, GraalVM CE JVM [x86_64-linux] with AMD Ryzen 7 3700X 8-Core Processor (16 vCPUs)" +exclude :test_relative_symlink_realpath, "<\"1\"> expected but was <\"2\">." +exclude :test_require_changed_home, "| core/kernel.rb:269:in `require': cannot load such file -- foo (LoadError)" +exclude :test_require_invalid_shared_object, "[LoadError] exception expected, not #." exclude :test_require_nonascii_path, "LoadError: cannot load such file -- enc/trans/single_byte" +exclude :test_require_nonascii_path_shift_jis, "LoadError: cannot load such file -- enc/trans/single_byte" +exclude :test_require_path_home_1, "| truffleruby: No such file or directory -- -w (LoadError)" +exclude :test_require_path_home_2, "| truffleruby: No such file or directory -- -w (LoadError)" +exclude :test_require_path_home_3, "| truffleruby: No such file or directory -- test_ruby_test_require20240907-1399697-qth0x3.rb (LoadError)" +exclude :test_require_to_path_redefined_in_load_path, "| core/kernel.rb:269:in `require': cannot load such file -- foo (LoadError)" +exclude :test_require_to_str_redefined_in_load_path, "| core/kernel.rb:269:in `require': cannot load such file -- foo (LoadError)" +exclude :test_require_too_long_filename, "Expected 2 to be <= 1." diff --git a/test/mri/excludes/TestRipper/Generic.rb b/test/mri/excludes/TestRipper/Generic.rb index 33d412627326..0c84c7dbd0ba 100644 --- a/test/mri/excludes/TestRipper/Generic.rb +++ b/test/mri/excludes/TestRipper/Generic.rb @@ -1,2 +1,2 @@ -exclude :"test_parse_files:ext", "Depends on MRI repository structure" -exclude :"test_parse_files:sample", "Depends on MRI repository structure" +exclude :"test_parse_files:ext", "retain-on-retag; Errno::ENOENT: No such file or directory - /home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/ext" +exclude :"test_parse_files:sample", "retain-on-retag; Errno::ENOENT: No such file or directory - /home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/sample" diff --git a/test/mri/excludes/TestRipper/Lexer.rb b/test/mri/excludes/TestRipper/Lexer.rb index 776caefbd02e..e69de29bb2d1 100644 --- a/test/mri/excludes/TestRipper/Lexer.rb +++ b/test/mri/excludes/TestRipper/Lexer.rb @@ -1 +0,0 @@ -exclude :test_lexer_scan_with_syntax_error, "" diff --git a/test/mri/excludes/TestRipper/ParserEvents.rb b/test/mri/excludes/TestRipper/ParserEvents.rb index a7b00c5ec9fc..fcf2de6c3d57 100644 --- a/test/mri/excludes/TestRipper/ParserEvents.rb +++ b/test/mri/excludes/TestRipper/ParserEvents.rb @@ -1,5 +1,2 @@ -exclude :test_block_variables, "needs investigation" -exclude :test_endless_def, "needs investigation" -exclude :test_endless_defs, "needs investigation" -exclude :test_fndptn, "needs investigation" -exclude :test_event_coverage, "needs investigation" +exclude :test_endless_def, "<{:on_def=>true, :on_parse_error=>true}> expected but was <{:on_def=>true}>." +exclude :test_endless_defs, "<{:on_defs=>true, :on_parse_error=>true}> expected but was <{:on_defs=>true}>." diff --git a/test/mri/excludes/TestRipper/Sexp.rb b/test/mri/excludes/TestRipper/Sexp.rb index 8e967f5ac5a4..b81b6d6113b4 100644 --- a/test/mri/excludes/TestRipper/Sexp.rb +++ b/test/mri/excludes/TestRipper/Sexp.rb @@ -1,12 +1 @@ -exclude :test_pattern_matching_415, "needs investigation" -exclude :test_pattern_matching_427, "needs investigation" -exclude :test_pattern_matching_439, "needs investigation" exclude :test_params_mlhs, "transient" -exclude :test_pattern_matching_216, " case 0; in *a,b,c; end ." -exclude :test_pattern_matching_402, " case 0; in [a]; end ." -exclude :test_pattern_matching_234, " case 0; in *,a; end ." -exclude :test_pattern_matching_166, " case 0; in a; end ." -exclude :test_pattern_matching_171, " case 0; in a,; end ." -exclude :test_pattern_matching_371, " case 0; in A[a]; end ." -exclude :test_pattern_matching_321, " case 0; in 0 => a; end ." -exclude :test_pattern_matching_183, " case 0; in a,b; end ." diff --git a/test/mri/excludes/TestRubyLiteral.rb b/test/mri/excludes/TestRubyLiteral.rb index 4c72a663a76c..62a59c0c31e4 100644 --- a/test/mri/excludes/TestRubyLiteral.rb +++ b/test/mri/excludes/TestRubyLiteral.rb @@ -1 +1 @@ -exclude :test_integer, "needs investigation" +exclude :test_integer, "Integer(\"1_f\") != eval(\"1_f\")." diff --git a/test/mri/excludes/TestRubyOptimization.rb b/test/mri/excludes/TestRubyOptimization.rb index a47863c3ebb9..d3e470963e79 100644 --- a/test/mri/excludes/TestRubyOptimization.rb +++ b/test/mri/excludes/TestRubyOptimization.rb @@ -1,31 +1,29 @@ -exclude :test_eqq, "needs investigation" -exclude :test_fixnum_gt, "needs investigation" -exclude :test_hash_aref_with, "needs investigation" -exclude :test_nil_safe_conditional_assign, "needs investigation" -exclude :test_optimized_rescue, "needs investigation" -exclude :test_string_freeze, "TruffleRuby does not consider redefined String#freeze on string literals for simplicity" -exclude :test_string_uminus, "TruffleRuby does not consider redefined String#-@ on string literals for simplicity" -exclude :test_string_freeze_block, "needs investigation" -exclude :test_string_freeze_saves_memory, "needs investigation" -exclude :test_string_length, "needs investigation" -exclude :test_string_ltlt, "needs investigation" -exclude :test_block_parameter_should_not_create_objects, "needs investigation" -exclude :test_callinfo_unreachable_path, "needs investigation" -exclude :test_clear_unreachable_keyword_args, "needs investigation" -exclude :test_fixnum_lt, "needs investigation" -exclude :test_fixnum_minus, "needs investigation" -exclude :test_fixnum_plus, "needs investigation" -exclude :test_opt_case_dispatch, "needs investigation" -exclude :test_peephole_dstr, "needs investigation" -exclude :test_peephole_optimization_without_trace, "needs investigation" -exclude :test_peephole_string_literal_range, "needs investigation" -exclude :test_string_plus, "needs investigation" -exclude :test_tailcall, "needs investigation" -exclude :test_tailcall_condition_block, "needs investigation" -exclude :test_tailcall_inhibited_by_block, "needs investigation" -exclude :test_tailcall_inhibited_by_rescue, "needs investigation" -exclude :test_tailcall_not_to_grow_stack, "needs investigation" -exclude :test_tailcall_symbol_block_arg, "needs investigation" -exclude :test_tailcall_with_block, "needs investigation" -exclude :test_trace_optimized_methods, "ArgumentError: unknown event: c_call" +exclude :test_block_parameter_should_not_create_objects, "NoMethodError: undefined method `count_objects' for ObjectSpace:Module" +exclude :test_callinfo_unreachable_path, "NameError: uninitialized constant RubyVM" +exclude :test_clear_unreachable_keyword_args, "NameError: uninitialized constant RubyVM" +exclude :test_eqq, "assert_separately failed with error message" +exclude :test_fixnum_gt, "assert_separately failed with error message" +exclude :test_fixnum_lt, "very slow: 600.25s on truffleruby 24.2.0-dev-b555f590, like ruby 3.2.4, GraalVM CE JVM [x86_64-linux] with AMD Ryzen 7 3700X 8-Core Processor (16 vCPUs)" +exclude :test_fixnum_minus, "very slow: 600.20s on truffleruby 24.2.0-dev-b555f590, like ruby 3.2.4, GraalVM CE JVM [x86_64-linux] with AMD Ryzen 7 3700X 8-Core Processor (16 vCPUs)" +exclude :test_fixnum_plus, "assert_separately failed with error message" +exclude :test_hash_aref_with, "assert_separately failed with error message" exclude :test_objtostring, "assert_separately failed with error message" +exclude :test_opt_case_dispatch, "NameError: uninitialized constant TestRubyOptimization::RubyVM" +exclude :test_optimized_rescue, "| truffleruby: No such file or directory -- (LoadError)" +exclude :test_peephole_dstr, "NameError: uninitialized constant TestRubyOptimization::RubyVM" +exclude :test_peephole_optimization_without_trace, "NameError: uninitialized constant RubyVM" +exclude :test_peephole_string_literal_range, "NameError: uninitialized constant TestRubyOptimization::RubyVM" +exclude :test_string_freeze, "Expected \"foo\" to be nil." +exclude :test_string_freeze_block, " expected but was <\"block\">." +exclude :test_string_freeze_saves_memory, "IO buffer NOT resized prematurely because will likely be reused." +exclude :test_string_ltlt, "assert_separately failed with error message" +exclude :test_string_plus, "NoMethodError: undefined method `unpack1' for nil:NilClass" +exclude :test_string_uminus, "Expected \"foo\" to be nil." +exclude :test_tailcall, "NameError: uninitialized constant TestRubyOptimization::RubyVM" +exclude :test_tailcall_condition_block, "NameError: uninitialized constant TestRubyOptimization::RubyVM" +exclude :test_tailcall_inhibited_by_block, "NameError: uninitialized constant TestRubyOptimization::RubyVM" +exclude :test_tailcall_inhibited_by_rescue, "NameError: uninitialized constant TestRubyOptimization::RubyVM" +exclude :test_tailcall_not_to_grow_stack, "NameError: uninitialized constant TestRubyOptimization::RubyVM" +exclude :test_tailcall_symbol_block_arg, "NameError: uninitialized constant TestRubyOptimization::RubyVM" +exclude :test_tailcall_with_block, "NameError: uninitialized constant TestRubyOptimization::RubyVM" +exclude :test_trace_optimized_methods, "ArgumentError: unknown event: c_call" diff --git a/test/mri/excludes/TestRubyOptions.rb b/test/mri/excludes/TestRubyOptions.rb index e50df8bdba31..68dd4bf6bb04 100644 --- a/test/mri/excludes/TestRubyOptions.rb +++ b/test/mri/excludes/TestRubyOptions.rb @@ -1,41 +1,40 @@ -exclude :test_script_is_directory, "[ruby-core:26925]" -exclude :test_dump_yydebug_with_rflag, "pid 86142 exit 1" -exclude :test_version, "Expected /^ruby 3\\.1\\.3(?:[p ]|dev|rc).*? \\[x86_64\\-darwin21\\]$/ to match \"truffleruby 23.0.0-dev-82f5ec31*, like ruby 3.1.3, Interpreted JVM [x86_64-darwin]\"." -exclude :test_eval, "pid 86149 exit 1" -exclude :test_backtrace_limit, "pid 86150 exit 1" -exclude :test_dump_parsetree_with_rflag, "pid 86151 exit 1" -exclude :test_invalid_option, "pid 86153 exit 2" -exclude :test_pflag_gsub, "[ruby-core:47967]" -exclude :test_rubyopt, "<\"\\\"あ\\\"\"> expected but was" -exclude :test_frozen_string_literal, "" -exclude :test_kanji, "pid 86216 exit 0." -exclude :test_autosplit, "pid 86218 exit 1" +exclude :test_assignment_in_conditional, "| /tmp/test_ruby_test_rubyoption20240905-525108-qw0vgg.rb:1: warning: found `= literal' in conditional, should be ==" +exclude :test_autosplit, "| truffleruby: the -F option is not implemented" +exclude :test_backtrace_limit, "| ERROR: Invalid argument --backtrace-limit specified. For input string: \"true\"" +exclude :test_chdir, "| truffleruby: invalid argument" +exclude :test_copyright, "needs investigation" +exclude :test_cwd_encoding, "| truffleruby: No such file or directory -- a.rb (LoadError)" +exclude :test_disable, "slow: 30.37s on truffleruby 24.2.0-dev-b555f590, like ruby 3.2.4, GraalVM CE JVM [x86_64-linux] with AMD Ryzen 7 3700X 8-Core Processor (16 vCPUs)" +exclude :test_dump_insns_with_rflag, "| [ruby] WARNING the --dump=insns switch is silently ignored as it is an internal development tool" +exclude :test_dump_parsetree_with_rflag, "| [ruby] WARNING the --dump=parsetree switch is silently ignored as it is an internal development tool" +exclude :test_dump_syntax_with_rflag, "| :run" +exclude :test_dump_yydebug_with_rflag, "| [ruby] WARNING the -y switch is silently ignored as it is an internal development tool" +exclude :test_encoding, "| truffleruby: an exception escaped out of the interpreter - this is an implementation bug" +exclude :test_eval, "| truffleruby: invalid argument" +exclude :test_flag_in_shebang, "needs investigation" +exclude :test_frozen_string_literal, "slow: 37.48s on truffleruby 24.2.0-dev-b555f590, like ruby 3.2.4, GraalVM CE JVM [x86_64-linux] with AMD Ryzen 7 3700X 8-Core Processor (16 vCPUs)" +exclude :test_frozen_string_literal_debug, "[\"--disable=gems\", \"--enable-frozen-string-literal\", \"--debug-frozen-string-literal\"] \"foo\" << \"bar\"" +exclude :test_indentation_check, "very slow: 456.06s on truffleruby 24.2.0-dev-b555f590, like ruby 3.2.4, GraalVM CE JVM [x86_64-linux] with AMD Ryzen 7 3700X 8-Core Processor (16 vCPUs)" +exclude :test_invalid_option, "| ERROR: truffleruby: invalid option -\r (Use --help for usage instructions.)" +exclude :test_kanji, "needs investigation" +exclude :test_notfound, "| truffleruby: No such file or directory -- ./notexist.rb (LoadError)" exclude :test_option_variables, "<[\"[true, true, true]\"," -exclude :test_separator, "pid 86222 exit 1" -exclude :test_cwd_encoding, "pid 86223 exit 1" -exclude :test_chdir, "pid 86224 exit 1" -exclude :test_indentation_check, "" -exclude :test_disable, "pid 86382 exit 0." -exclude :test_flag_in_shebang, "pid 86383 exit 0." -exclude :test_assignment_in_conditional, "[ruby-dev:39363]" -exclude :test_dump_insns_with_rflag, "pid 86385 exit 1" -exclude :test___dir__encoding, "the encoding of __FILE__ and __dir__ should be same." -exclude :test_require, "pid 86390 exit 1" -exclude :test_encoding, "pid 86392 exit 1" -exclude :test_pflag_sub, "[ruby-core:47967]" -exclude :test_unused_variable, "[ruby-dev:41620]" +exclude :test_pflag_gsub, "| -e:1:in `
': undefined method `gsub' for main:Object (NoMethodError)" +exclude :test_pflag_sub, "| -e:1:in `
': undefined method `sub' for main:Object (NoMethodError)" +exclude :test_program_name, "<\"-\"> expected but was <\"\">." +exclude :test_require, "| truffleruby: invalid argument" +exclude :test_rubyopt, "<\"\\\"あ\\\"\"> expected but was <\"\\\"\\\\u3042\\\"\">." +exclude :test_script_is_directory, "| truffleruby: Is a directory (java.io.IOException) (IOError)" +exclude :test_segv_loaded_features, "ArgumentError: unknown exec option: :rlimit_core" +exclude :test_segv_setproctitle, "ArgumentError: unknown exec option: :rlimit_core" +exclude :test_segv_test, "ArgumentError: unknown exec option: :rlimit_core" +exclude :test_separator, "| truffleruby: the -0 option is not implemented" exclude :test_setproctitle, "ArgumentError expected but nothing was raised." -exclude :test_sflag, "pid 86399 exit 0." -exclude :test_usage_long, "<[]> expected but was" +exclude :test_sflag, "needs investigation" +exclude :test_shebang, "needs investigation" +exclude :test_unused_variable, "| -e:1: warning: assigned but unused variable - a" +exclude :test_usage_long, "<[]> expected but was <[\" --polyglot Run with all other guest languages accessible.\"," +exclude :test_verbose, "Expected /^ruby 3\\.2\\.4(?:[p ]|dev|rc).*? \\[x86_64\\-linux\\]$/ to match \"truffleruby 24.2.0-dev-b555f590, like ruby 3.2.4, GraalVM CE JVM [x86_64-linux]\"." +exclude :test_version, "Expected /^ruby 3\\.2\\.4(?:[p ]|dev|rc).*? \\[x86_64\\-linux\\]$/ to match \"truffleruby 24.2.0-dev-b555f590, like ruby 3.2.4, GraalVM CE JVM [x86_64-linux]\"." +exclude :test_warning, "needs investigation" exclude :test_yydebug, "<[]> expected to be != to" -exclude :test_copyright, "pid 86402 exit 0." -exclude :test_shebang, "pid 86406 exit 0." -exclude :test_program_name, "<\"-\"> expected but was" -exclude :test_frozen_string_literal_debug, "[\"--disable=gems\", \"--enable-frozen-string-literal\", \"--debug-frozen-string-literal\"] \"foo\" << \"bar\"" -exclude :test_verbose, "Expected /^ruby 3\\.1\\.3(?:[p ]|dev|rc).*? \\[x86_64\\-darwin21\\]$/ to match \"truffleruby 23.0.0-dev-82f5ec31*, like ruby 3.1.3, Interpreted JVM [x86_64-darwin]\"." -exclude :test_warning, "pid 86422 exit 0." -exclude :test_notfound, "[ruby-core:23717]" -exclude :test_dump_syntax_with_rflag, "pid 86428 exit 1" -exclude :test_segv_test, "ArgumentError: unknown exec option: :rlimit_core" -exclude :test_segv_setproctitle, "ArgumentError: unknown exec option: :rlimit_core" -exclude :test_segv_loaded_features, "ArgumentError: unknown exec option: :rlimit_core" diff --git a/test/mri/excludes/TestRubyPrimitive.rb b/test/mri/excludes/TestRubyPrimitive.rb index 646a6a358043..e69de29bb2d1 100644 --- a/test/mri/excludes/TestRubyPrimitive.rb +++ b/test/mri/excludes/TestRubyPrimitive.rb @@ -1 +0,0 @@ -exclude :test_constant, "NameError: constant TestRubyPrimitive::A not defined" diff --git a/test/mri/excludes/TestRubyVM.rb b/test/mri/excludes/TestRubyVM.rb index 53f2cf52aca6..445d1b84c63f 100644 --- a/test/mri/excludes/TestRubyVM.rb +++ b/test/mri/excludes/TestRubyVM.rb @@ -1,2 +1,3 @@ -exclude :test_stat_unknown, "needs investigation" -exclude :test_stat, "needs investigation" +exclude :test_keep_script_lines, "NameError: uninitialized constant TestRubyVM::RubyVM" +exclude :test_stat, "NameError: uninitialized constant TestRubyVM::RubyVM" +exclude :test_stat_unknown, "[ArgumentError] exception expected, not #." diff --git a/test/mri/excludes/TestRubyVMMJIT.rb b/test/mri/excludes/TestRubyVMMJIT.rb index 14cae2e54959..8f92ab560550 100644 --- a/test/mri/excludes/TestRubyVMMJIT.rb +++ b/test/mri/excludes/TestRubyVMMJIT.rb @@ -1,6 +1,6 @@ -exclude :test_pause, "needs investigation" -exclude :test_pause_does_not_hang_on_full_units, "needs investigation" -exclude :test_pause_wait_false, "needs investigation" -exclude :test_resume, "needs investigation" -exclude :test_pause_waits_until_compaction, "needs investigation" -exclude :test_pause_after_waitall, "Failed to run script with JIT:" +exclude :test_pause, "Failed to run script with JIT: \"\"\"" +exclude :test_pause_after_waitall, "Failed to run script with JIT: \"\"\"" +exclude :test_pause_does_not_hang_on_full_units, "Failed to run script with JIT: \"\"\"" +exclude :test_pause_wait_false, "Failed to run script with JIT: \"\"\"" +exclude :test_pause_waits_until_compaction, "Failed to run script with JIT: \"\"\"" +exclude :test_resume, "Failed to run script with JIT: \"\"\"" diff --git a/test/mri/excludes/TestRubyYieldGen.rb b/test/mri/excludes/TestRubyYieldGen.rb index b739c3bb75a5..e69de29bb2d1 100644 --- a/test/mri/excludes/TestRubyYieldGen.rb +++ b/test/mri/excludes/TestRubyYieldGen.rb @@ -1 +0,0 @@ -exclude :test_yield, "needs investigation" diff --git a/test/mri/excludes/TestSH.rb b/test/mri/excludes/TestSH.rb index 179c8be12396..dcfe2e1978c3 100644 --- a/test/mri/excludes/TestSH.rb +++ b/test/mri/excludes/TestSH.rb @@ -1 +1 @@ -exclude :test_strftime, "needs investigation" +exclude :test_strftime, "undefined symbol: rb_str_format" diff --git a/test/mri/excludes/TestScanArgs.rb b/test/mri/excludes/TestScanArgs.rb index 72e203b37f8a..7f822cba7297 100644 --- a/test/mri/excludes/TestScanArgs.rb +++ b/test/mri/excludes/TestScanArgs.rb @@ -1,16 +1,15 @@ -exclude :test_k_lead_opt_hash, "needs investigation" -exclude :test_lead_hash, "needs investigation" -exclude :test_lead_opt_hash, "needs investigation" -exclude :test_lead_opt_trail_hash, "needs investigation" -exclude :test_lead_opt_var_hash, "needs investigation" -exclude :test_lead_opt_var_trail_hash, "needs investigation" -exclude :test_lead_var_hash, "needs investigation" -exclude :test_lead_var_trail_hash, "needs investigation" -exclude :test_n_lead_opt_hash, "needs investigation" -exclude :test_opt_hash, "needs investigation" -exclude :test_opt_trail_hash, "needs investigation" -exclude :test_opt_var_hash, "needs investigation" -exclude :test_opt_var_trail_hash, "needs investigation" -exclude :test_var_hash, "needs investigation" -exclude :test_var_trail_hash, "needs investigation" -exclude :test_e_lead_opt_hash, "needs investigation" +exclude :test_k_lead_opt_hash, "ArgumentError expected but nothing was raised." +exclude :test_lead_hash, "ArgumentError expected but nothing was raised." +exclude :test_lead_opt_hash, "ArgumentError expected but nothing was raised." +exclude :test_lead_opt_trail_hash, "ArgumentError expected but nothing was raised." +exclude :test_lead_opt_var_hash, "ArgumentError expected but nothing was raised." +exclude :test_lead_opt_var_trail_hash, "ArgumentError expected but nothing was raised." +exclude :test_lead_var_hash, "ArgumentError expected but nothing was raised." +exclude :test_lead_var_trail_hash, "ArgumentError expected but nothing was raised." +exclude :test_n_lead_opt_hash, "ArgumentError expected but nothing was raised." +exclude :test_opt_hash, "<[0, nil, {\"a\"=>0, :b=>1}]> expected but was <[1, {\"a\"=>0, :b=>1}, nil]>." +exclude :test_opt_trail_hash, "ArgumentError expected but nothing was raised." +exclude :test_opt_var_hash, "<[1, \"a\", [], {\"b\"=>0, :c=>1}]> expected but was <[2, \"a\", [{\"b\"=>0, :c=>1}], nil]>." +exclude :test_opt_var_trail_hash, "ArgumentError expected but nothing was raised." +exclude :test_var_hash, "<[0, [], {\"a\"=>0, :b=>1}]> expected but was <[1, [{\"a\"=>0, :b=>1}], nil]>." +exclude :test_var_trail_hash, "ArgumentError expected but nothing was raised." diff --git a/test/mri/excludes/TestSetTraceFunc.rb b/test/mri/excludes/TestSetTraceFunc.rb index d4e25c8b32a7..4eb64fe65e92 100644 --- a/test/mri/excludes/TestSetTraceFunc.rb +++ b/test/mri/excludes/TestSetTraceFunc.rb @@ -1,152 +1,68 @@ -exclude :test_a_call, "needs investigation" -exclude :test_a_call, "needs investigation" -exclude :test_a_return, "needs investigation" -exclude :test_a_return, "needs investigation" -exclude :test_aliased_c_method, "needs investigation" -exclude :test_aliased_c_method, "needs investigation" -exclude :test_aliased_ruby_method, "needs investigation" -exclude :test_aliased_ruby_method, "needs investigation" -exclude :test_argument_error_on_bmethod, "needs investigation" -exclude :test_argument_error_on_bmethod, "needs investigation" -exclude :test_b_call_with_redo, "needs investigation" -exclude :test_b_call_with_redo, "needs investigation" -exclude :test_break, "needs investigation" -exclude :test_break, "needs investigation" -exclude :test_break_with_rescue, "needs investigation" -exclude :test_break_with_rescue, "needs investigation" -exclude :test_c_call, "needs investigation" -exclude :test_c_call, "needs investigation" -exclude :test_call, "needs investigation" -exclude :test_call, "needs investigation" -exclude :test_class, "needs investigation" -exclude :test_class, "needs investigation" -exclude :test_const_missing, "needs investigation" -exclude :test_const_missing, "needs investigation" -exclude :test_define_method_on_exception, "needs investigation" -exclude :test_define_method_on_exception, "needs investigation" -exclude :test_define_method_on_return, "needs investigation" -exclude :test_define_method_on_return, "needs investigation" -exclude :test_disable_local_tracepoint_in_trace, "needs investigation" -exclude :test_disable_local_tracepoint_in_trace, "needs investigation" -exclude :test_elsif_line_event, "needs investigation" -exclude :test_elsif_line_event, "needs investigation" -exclude :test_enable_target_thread, "needs investigation" -exclude :test_enable_target_thread, "needs investigation" -exclude :test_fiber_switch, "needs investigation" -exclude :test_fiber_switch, "needs investigation" -exclude :test_invalid_proc, "needs investigation" -exclude :test_invalid_proc, "needs investigation" -exclude :test_isolated_raise_in_trace, "needs investigation" -exclude :test_isolated_raise_in_trace, "needs investigation" -exclude :test_lineno_in_optimized_insn, "needs investigation" -exclude :test_lineno_in_optimized_insn, "needs investigation" -exclude :test_method_missing, "needs investigation" -exclude :test_method_missing, "needs investigation" -exclude :test_no_duplicate_line_events, "needs investigation" -exclude :test_no_duplicate_line_events, "needs investigation" -exclude :test_raise, "needs investigation" -exclude :test_raise, "needs investigation" -exclude :test_raise_in_trace, "needs investigation" -exclude :test_raise_in_trace, "needs investigation" -exclude :test_rb_rescue, "needs investigation" -exclude :test_rb_rescue, "needs investigation" -exclude :test_recursive, "needs investigation" -exclude :test_recursive, "needs investigation" -exclude :test_remove_in_trace, "needs investigation" -exclude :test_remove_in_trace, "needs investigation" -exclude :test_rescue_and_ensure_should_not_cause_b_return, "needs investigation" -exclude :test_rescue_and_ensure_should_not_cause_b_return, "needs investigation" -exclude :test_return, "needs investigation" -exclude :test_return, "needs investigation" -exclude :test_return2, "needs investigation" -exclude :test_return2, "needs investigation" -exclude :test_return_event_with_rescue, "needs investigation" -exclude :test_return_event_with_rescue, "needs investigation" -exclude :test_return_value_with_rescue, "needs investigation" -exclude :test_return_value_with_rescue, "needs investigation" -exclude :test_return_value_with_rescue_and_defined_methods, "needs investigation" -exclude :test_return_value_with_rescue_and_defined_methods, "needs investigation" -exclude :test_script_compiled, "needs investigation" -exclude :test_script_compiled, "needs investigation" -exclude :test_set_trace_func, "needs investigation" -exclude :test_set_trace_func, "needs investigation" -exclude :test_single_raise_inside_load, "needs investigation" -exclude :test_single_raise_inside_load, "needs investigation" -exclude :test_stat_exists, "needs investigation" -exclude :test_stat_exists, "needs investigation" -exclude :test_thread_add_trace_func, "needs investigation" -exclude :test_thread_add_trace_func, "needs investigation" -exclude :test_thread_trace, "needs investigation" -exclude :test_thread_trace, "needs investigation" -exclude :test_throwing_return_with_finish_frame, "needs investigation" -exclude :test_throwing_return_with_finish_frame, "needs investigation" -exclude :test_trace_defined_method, "needs investigation" -exclude :test_trace_defined_method, "needs investigation" -exclude :test_trace_point_at_return_when_exception, "needs investigation" -exclude :test_trace_point_at_return_when_exception, "needs investigation" -exclude :test_trace_point_binding_after_break, "needs investigation" -exclude :test_trace_point_binding_after_break, "needs investigation" -exclude :test_trace_point_binding_in_ifunc, "needs investigation" -exclude :test_trace_point_binding_in_ifunc, "needs investigation" -exclude :test_trace_point_raising_exception_in_bmethod_call, "needs investigation" -exclude :test_trace_point_raising_exception_in_bmethod_call, "needs investigation" -exclude :test_trace_point_require_block, "needs investigation" -exclude :test_trace_point_require_block, "needs investigation" -exclude :test_tracepoint, "needs investigation" -exclude :test_tracepoint, "needs investigation" -exclude :test_tracepoint_access_from_outside, "needs investigation" -exclude :test_tracepoint_access_from_outside, "needs investigation" -exclude :test_tracepoint_b_return_with_lambda, "needs investigation" -exclude :test_tracepoint_b_return_with_lambda, "needs investigation" -exclude :test_tracepoint_b_return_with_next, "needs investigation" -exclude :test_tracepoint_b_return_with_next, "needs investigation" -exclude :test_tracepoint_block, "needs investigation" -exclude :test_tracepoint_block, "needs investigation" -exclude :test_tracepoint_callee_id, "needs investigation" -exclude :test_tracepoint_callee_id, "needs investigation" -exclude :test_tracepoint_disable, "needs investigation" -exclude :test_tracepoint_disable, "needs investigation" -exclude :test_tracepoint_enable, "needs investigation" -exclude :test_tracepoint_enable, "needs investigation" -exclude :test_tracepoint_enable_target, "needs investigation" -exclude :test_tracepoint_enable_target, "needs investigation" -exclude :test_tracepoint_enable_with_target_line, "needs investigation" -exclude :test_tracepoint_enable_with_target_line, "needs investigation" -exclude :test_tracepoint_enabled, "needs investigation" -exclude :test_tracepoint_enabled, "needs investigation" -exclude :test_tracepoint_exception_at_c_return, "needs investigation" -exclude :test_tracepoint_exception_at_c_return, "needs investigation" -exclude :test_tracepoint_exception_at_line, "needs investigation" -exclude :test_tracepoint_exception_at_line, "needs investigation" -exclude :test_tracepoint_exception_at_return, "needs investigation" -exclude :test_tracepoint_exception_at_return, "needs investigation" -exclude :test_tracepoint_inspect, "needs investigation" -exclude :test_tracepoint_inspect, "needs investigation" -exclude :test_tracepoint_nested_enabled_with_target, "needs investigation" -exclude :test_tracepoint_nested_enabled_with_target, "needs investigation" -exclude :test_tracepoint_object_id, "needs investigation" -exclude :test_tracepoint_object_id, "needs investigation" -exclude :test_tracepoint_opt_invokebuiltin_delegate_leave, "needs investigation" -exclude :test_tracepoint_opt_invokebuiltin_delegate_leave, "needs investigation" -exclude :test_tracepoint_parameters, "needs investigation" -exclude :test_tracepoint_parameters, "needs investigation" -exclude :test_tracepoint_raised_exception, "needs investigation" -exclude :test_tracepoint_raised_exception, "needs investigation" -exclude :test_tracepoint_return_value, "needs investigation" -exclude :test_tracepoint_return_value, "needs investigation" -exclude :test_tracepoint_thread, "needs investigation" -exclude :test_tracepoint_thread, "needs investigation" -exclude :test_tracepoint_with_multithreads, "needs investigation" -exclude :test_tracepoint_with_multithreads, "needs investigation" -exclude :test_while_in_while, "needs investigation" -exclude :test_tracepoint_enable_with_target_line_two_times, "needs investigation" -exclude :test_tracepoint_attr, "ArgumentError: unknown event: c_call" -exclude :test_return_bmethod_location, "ArgumentError: unknown event: return" -exclude :test_non_local_return_across_multiple_define_methods, "ArgumentError: unknown event: return" +exclude :test_a_call, "ArgumentError: unknown event: a_call" +exclude :test_a_return, "ArgumentError: unknown event: a_return" +exclude :test_aliased_c_method, "ArgumentError: unknown event: call" +exclude :test_aliased_ruby_method, "ArgumentError: unknown event: call" exclude :test_allow_reentry, "NoMethodError: undefined method `allow_reentry' for TracePoint:Class" +exclude :test_argument_error_on_bmethod, "ArgumentError: unknown event: a_call" +exclude :test_b_call_with_redo, "ArgumentError: unknown event: a_call" exclude :test_b_tracepoints_going_away, "ArgumentError: unknown event: call" -exclude :test_target_different_bmethod_same_iseq, "ArgumentError: unknown event: call" +exclude :test_break, "spurious; <[\"c-return\", 1, :set_trace_func, Kernel]> expected but was nil." +exclude :test_break_with_rescue, "ArgumentError: unknown event: return" +exclude :test_c_call, "<[\"c-return\", 1, :set_trace_func, Kernel]> expected but was ." +exclude :test_c_call_no_binding, "ArgumentError: unknown event: c_call" +exclude :test_c_call_removed_method, "ArgumentError: unknown event: c_call" exclude :test_c_return_no_binding, "ArgumentError: unknown event: c_return" +exclude :test_call, "<[\"c-return\", 1, :set_trace_func, Kernel]> expected but was ." +exclude :test_class, "<[\"c-return\", 1, :set_trace_func, Kernel]> expected but was ." +exclude :test_const_missing, "ArgumentError: unknown event: c_call" +exclude :test_define_method_on_exception, "ArgumentError: unknown event: call" +exclude :test_define_method_on_return, "ArgumentError: unknown event: call" +exclude :test_enable_target_thread, "ArgumentError: wrong number of arguments (given 1, expected 0)" +exclude :test_fiber_switch, "ArgumentError: unknown event: fiber_switch" +exclude :test_lineno_in_optimized_insn, "<15> expected but was ." +exclude :test_method_missing, "ArgumentError: unknown event: c_call" exclude :test_multiple_tracepoints_same_bmethod, "ArgumentError: unknown event: return" -exclude :test_c_call_removed_method, "ArgumentError: unknown event: c_call" -exclude :test_c_call_no_binding, "ArgumentError: unknown event: c_call" +exclude :test_non_local_return_across_multiple_define_methods, "ArgumentError: unknown event: return" +exclude :test_raise, "<[\"c-return\", 1, :set_trace_func, Kernel]> expected but was ." +exclude :test_rb_rescue, "ArgumentError: unknown event: a_call" +exclude :test_recursive, "| core/tracepoint.rb:24:in `block in initialize': unknown event: c_call (ArgumentError)" +exclude :test_rescue_and_ensure_should_not_cause_b_return, "ArgumentError: unknown event: a_call" +exclude :test_return, "<[\"c-return\", 1, :set_trace_func, Kernel]> expected but was ." +exclude :test_return2, "<[\"c-return\", 1, :set_trace_func, Kernel]> expected but was ." +exclude :test_return_bmethod_location, "ArgumentError: unknown event: return" +exclude :test_return_event_with_rescue, "ArgumentError: unknown event: return" +exclude :test_return_value_with_rescue, "ArgumentError: unknown event: return" +exclude :test_return_value_with_rescue_and_defined_methods, "ArgumentError: unknown event: return" +exclude :test_script_compiled, "ArgumentError: unknown event: script_compiled" +exclude :test_set_trace_func, "NoMethodError: undefined method `[]' for nil:NilClass" +exclude :test_single_raise_inside_load, "NameError: uninitialized constant TestSetTraceFunc::FileUtils" +exclude :test_stat_exists, "NoMethodError: undefined method `stat' for TracePoint:Class" +exclude :test_target_different_bmethod_same_iseq, "ArgumentError: unknown event: call" +exclude :test_thread_add_trace_func, "hangs" +exclude :test_thread_trace, "NoMethodError: private method `set_trace_func' called for #" +exclude :test_throwing_return_with_finish_frame, "ArgumentError: unknown event: call" +exclude :test_trace_defined_method, "<[\"c-return\", 3, :set_trace_func, Kernel]> expected but was ." +exclude :test_trace_point_at_return_when_exception, "[TestSetTraceFunc::FOO_ERROR] exception expected, not #." +exclude :test_trace_point_binding_after_break, "| core/tracepoint.rb:24:in `block in initialize': unknown event: c_return (ArgumentError)" +exclude :test_trace_point_binding_in_ifunc, "ArgumentError: unknown event: raise" +exclude :test_tracepoint, "ArgumentError: unknown event: end" +exclude :test_tracepoint_access_from_outside, "[RuntimeError] exception expected, not #>." +exclude :test_tracepoint_attr, "ArgumentError: unknown event: c_call" +exclude :test_tracepoint_b_return_with_lambda, "ArgumentError: unknown event: b_return" +exclude :test_tracepoint_b_return_with_next, "ArgumentError: unknown event: b_return" +exclude :test_tracepoint_block, "ArgumentError: unknown event: call" +exclude :test_tracepoint_callee_id, "ArgumentError: unknown event: raise" +exclude :test_tracepoint_disable, "ArgumentError: unknown event: call" +exclude :test_tracepoint_enable, "ArgumentError: unknown event: call" +exclude :test_tracepoint_enable_target, "ArgumentError: wrong number of arguments (given 1, expected 0)" +exclude :test_tracepoint_enable_with_target_line, "ArgumentError: wrong number of arguments (given 1, expected 0)" +exclude :test_tracepoint_enable_with_target_line_two_times, "ArgumentError: wrong number of arguments (given 1, expected 0)" +exclude :test_tracepoint_enabled, "ArgumentError: unknown event: call" +exclude :test_tracepoint_inspect, "Expected / in / to match \"#\"." +exclude :test_tracepoint_nested_enabled_with_target, "<\"can't nest-enable a targeting TracePoint\"> expected but was <\"wrong number of arguments (given 1, expected 0)\">." +exclude :test_tracepoint_opt_invokebuiltin_delegate_leave, "Expected /^0000 opt_invokebuiltin_delegate_leave / to match \"\"." +exclude :test_tracepoint_parameters, "ArgumentError: unknown event: end" +exclude :test_tracepoint_raised_exception, "ArgumentError: unknown event: call" +exclude :test_tracepoint_return_value, "ArgumentError: unknown event: call" +exclude :test_tracepoint_thread, "ArgumentError: unknown event: thread_begin" +exclude :test_while_in_while, "Bug #17868." diff --git a/test/mri/excludes/TestSignal.rb b/test/mri/excludes/TestSignal.rb index fc34963a819c..6f18f306fca5 100644 --- a/test/mri/excludes/TestSignal.rb +++ b/test/mri/excludes/TestSignal.rb @@ -1,12 +1,13 @@ -exclude :test_kill_immediately_before_termination, "pid 43233 exit 0." -exclude :test_trap_uncatchable_STOP, "SIGSTOP is not allowed to be caught." exclude :test_hup_me, "assert_separately failed" -exclude :test_sigexit, "pid 43488 exit 0." -exclude :test_trap_uncatchable_KILL, "SIGKILL is not allowed to be caught." +exclude :test_invalid_signal_name, "Expected Exception(ArgumentError) was raised, but the message doesn't match. Expected /\\u{30eb 30d3 30fc}/ to match \"ArgumentError\"." +exclude :test_kill_immediately_before_termination, "| Exception in thread \"SIGUSR1 handler\" java.lang.IllegalStateException: Language environment is already disposed." exclude :test_sigchld_ignore, "Errno::ECHILD expected but nothing was raised." -exclude :test_invalid_signal_name, "Expected Exception(ArgumentError) was raised, but the message doesn't match." +exclude :test_sigexit, "needs investigation" +exclude :test_signal, "transient: RuntimeError: Interrupt" +exclude :test_signal2, "ArgumentError: ArgumentError" exclude :test_signal_exception, "Expected /SIG-SIG/ to not match \"invalid signal name SIG-SIGEXIT\"." +exclude :test_signame_delivered, "slow: 48.91s on truffleruby 24.2.0-dev-b555f590, like ruby 3.2.4, GraalVM CE JVM [x86_64-linux] with AMD Ryzen 7 3700X 8-Core Processor: (16 vCPUs)" exclude :test_trap, "ArgumentError: Unsupported command ''" -exclude :test_signal2, "ArgumentError: ArgumentError" exclude :test_trap_system_default, "ArgumentError: Signal already used by VM or OS: SIGQUIT" -exclude :test_signal, "transient: RuntimeError: Interrupt" +exclude :test_trap_uncatchable_KILL, "SIGKILL is not allowed to be caught." +exclude :test_trap_uncatchable_STOP, "SIGSTOP is not allowed to be caught." diff --git a/test/mri/excludes/TestSocket.rb b/test/mri/excludes/TestSocket.rb index fce62f7977b0..a9f90fc64467 100644 --- a/test/mri/excludes/TestSocket.rb +++ b/test/mri/excludes/TestSocket.rb @@ -1,9 +1,9 @@ -exclude :test_bind, "needs investigation" -exclude :test_closed_read, "needs investigation" -exclude :test_getnameinfo, "needs investigation" -exclude :test_socket_new_cloexec, "needs investigation" -exclude :test_tcp_cloexec, "needs investigation" -exclude :test_unix, "needs investigation" -exclude :test_timestamp, "needs investigation" -exclude :test_udp_server, "needs investigation" -exclude :test_timestampns, "needs investigation" +exclude :test_bind, "Expected /bind\\(2\\)\\ for\\ 127\\.0\\.0\\.1:58855/ to match \"Address already in use - bind(2)\"." +exclude :test_closed_read, "retain-on-retag; test timed out" +exclude :test_getnameinfo, "SocketError expected but nothing was raised." +exclude :test_socket_new_cloexec, "Failed assertion, no message given." +exclude :test_tcp_cloexec, "Failed assertion, no message given." +exclude :test_timestamp, "NoMethodError: undefined method `cmsg_is?' for nil:NilClass" +exclude :test_timestampns, "NoMethodError: undefined method `cmsg_is?' for nil:NilClass" +exclude :test_udp_server, "RuntimeError: thread killed" +exclude :test_unix, "Failed assertion, no message given." diff --git a/test/mri/excludes/TestSocketAddrinfo.rb b/test/mri/excludes/TestSocketAddrinfo.rb index 339b044a8b28..81acdc92a9e2 100644 --- a/test/mri/excludes/TestSocketAddrinfo.rb +++ b/test/mri/excludes/TestSocketAddrinfo.rb @@ -1,6 +1,6 @@ -exclude :test_addrinfo_new_inet, "needs investigation" -exclude :test_error_message, "needs investigation" -exclude :test_ipv6_address_predicates, "needs investigation" -exclude :test_addrinfo_ip, "needs investigation" -exclude :test_addrinfo_new_unix, "needs investigation" -exclude :test_socket_getnameinfo, "needs investigation" +exclude :test_addrinfo_ip, "SocketError: Name or service not known" +exclude :test_addrinfo_new_inet, "<2> expected but was <0>." +exclude :test_addrinfo_new_unix, "NoMethodError: undefined method `bytesize' for nil:NilClass" +exclude :test_error_message, "Expected Exception(SocketError) was raised, but the message doesn't match. Expected /getaddrinfo/ to match \"Name or service not known\"." +exclude :test_ipv6_address_predicates, "ai=Addrinfo.getaddrinfo(\"::0.0.0.2\", nil, :INET6, :DGRAM).fetch(0); ai.ipv4? || .ipv6_v4compat?" +exclude :test_socket_getnameinfo, "NoMethodError: undefined method `bytesize' for #" diff --git a/test/mri/excludes/TestSocketAncData.rb b/test/mri/excludes/TestSocketAncData.rb index 1e8e63c918f1..a73d13bc2d78 100644 --- a/test/mri/excludes/TestSocketAncData.rb +++ b/test/mri/excludes/TestSocketAncData.rb @@ -1 +1 @@ -exclude :test_ipv6_pktinfo, "needs investigation" +exclude :test_ipv6_pktinfo, "SocketError: Unknown IPV6 control message: PKTINFO" if RUBY_PLATFORM.include?('darwin') diff --git a/test/mri/excludes/TestSocketNonblock.rb b/test/mri/excludes/TestSocketNonblock.rb index 78981ae8a2e9..299b08acf8ce 100644 --- a/test/mri/excludes/TestSocketNonblock.rb +++ b/test/mri/excludes/TestSocketNonblock.rb @@ -1 +1 @@ -exclude :test_accept_nonblock, "needs investigation" +exclude :test_accept_nonblock, "accepted socket is non-blocking." diff --git a/test/mri/excludes/TestSocketOption.rb b/test/mri/excludes/TestSocketOption.rb index 5fbdade7cd8a..352894f7de05 100644 --- a/test/mri/excludes/TestSocketOption.rb +++ b/test/mri/excludes/TestSocketOption.rb @@ -1,4 +1,4 @@ -exclude :test_ipv4_multicast_loop, "needs investigation" -exclude :test_ipv4_multicast_loop_size, "needs investigation" -exclude :test_ipv4_multicast_ttl, "needs investigation" -exclude :test_ipv4_multicast_ttl_size, "needs investigation" +exclude :test_ipv4_multicast_loop, "NoMethodError: undefined method `ipv4_multicast_loop' for Socket::Option:Class" +exclude :test_ipv4_multicast_loop_size, "NoMethodError: undefined method `ipv4_multicast_loop' for Socket::Option:Class" +exclude :test_ipv4_multicast_ttl, "NoMethodError: undefined method `ipv4_multicast_ttl' for Socket::Option:Class" +exclude :test_ipv4_multicast_ttl_size, "NoMethodError: undefined method `ipv4_multicast_ttl' for Socket::Option:Class" diff --git a/test/mri/excludes/TestSocket_BasicSocket.rb b/test/mri/excludes/TestSocket_BasicSocket.rb index 2cb47411a0bb..d8ff6771e13e 100644 --- a/test/mri/excludes/TestSocket_BasicSocket.rb +++ b/test/mri/excludes/TestSocket_BasicSocket.rb @@ -1,4 +1,4 @@ -exclude :test_getsockopt, "needs investigation" -exclude :test_setsockopt, "needs investigation" -exclude :test_write_nonblock_buffered, "needs investigation" -exclude :test_read_write_nonblock, "needs investigation" +exclude :test_getsockopt, "[IOError] exception expected, not #." +exclude :test_read_write_nonblock, "[Feature #13362]." +exclude :test_setsockopt, "Failed assertion, no message given." +exclude :test_write_nonblock_buffered, "<:wait_readable> expected but was <\"h\">." diff --git a/test/mri/excludes/TestSocket_TCPSocket.rb b/test/mri/excludes/TestSocket_TCPSocket.rb index da2487d95b2f..a5c0ad9bdf7c 100644 --- a/test/mri/excludes/TestSocket_TCPSocket.rb +++ b/test/mri/excludes/TestSocket_TCPSocket.rb @@ -1,5 +1,5 @@ -exclude :test_initialize_failure, "needs investigation" -exclude :test_inspect, "needs investigation" -exclude :test_recvfrom, "needs investigation" -exclude :test_initialize_resolv_timeout, "needs investigation" exclude :test_initialize_connect_timeout, "transient" +exclude :test_initialize_failure, "Expected /for\\ \"192\\.0\\.2\\.1\"\\ port\\ 8000/ to match \"Cannot assign requested address - bind(2)\"." +exclude :test_initialize_resolv_timeout, "NoMethodError: undefined method `close' for nil:NilClass" +exclude :test_inspect, "Expected /AF_INET/ to match \"#\"." +exclude :test_recvfrom, "SocketError: need IPv4 or IPv6 address" diff --git a/test/mri/excludes/TestSocket_UDPSocket.rb b/test/mri/excludes/TestSocket_UDPSocket.rb index acb2a547de29..6948266b653c 100644 --- a/test/mri/excludes/TestSocket_UDPSocket.rb +++ b/test/mri/excludes/TestSocket_UDPSocket.rb @@ -1,5 +1,5 @@ -exclude :test_bind, "needs investigation" -exclude :test_bind_addrinuse, "needs investigation" -exclude :test_connect, "needs investigation" -exclude :test_inspect, "needs investigation" -exclude :test_send_too_long, "needs investigation" +exclude :test_bind, "[IOError] exception expected, not #>." +exclude :test_bind_addrinuse, "Expected /bind\\(2\\)\\ for\\ \"127\\.0\\.0\\.1\"\\ port\\ 47181/ to match \"Address already in use - bind(2)\"." +exclude :test_connect, "[IOError] exception expected, not #>." +exclude :test_inspect, "Expected /AF_INET\\b/ to match \"#\"." +exclude :test_send_too_long, "Expected /for\\ \"127\\.0\\.0\\.1\"\\ port\\ 7/ to match \"Message too long - send(2)\"." diff --git a/test/mri/excludes/TestSocket_UNIXSocket.rb b/test/mri/excludes/TestSocket_UNIXSocket.rb index 7469ac48a4d4..ff9572f6fd42 100644 --- a/test/mri/excludes/TestSocket_UNIXSocket.rb +++ b/test/mri/excludes/TestSocket_UNIXSocket.rb @@ -1,11 +1,12 @@ -exclude :test_cloexec, "needs investigation" -exclude :test_socket_pair_with_block, "needs investigation" -exclude :test_getcred_xucred, "needs investigation" -exclude :test_unix_socket_pair_with_block, "needs investigation" -exclude :test_abstract_namespace, "needs investigation" -exclude :test_abstract_unix_server_socket, "needs investigation" -exclude :test_abstract_unix_socket_econnrefused, "needs investigation" -exclude :test_autobind, "needs investigation" -exclude :test_getcred_ucred, "needs investigation" -exclude :test_sendcred_ucred, "needs investigation" -exclude :test_abstract_unix_server, "needs investigation" +exclude :test_abstract_namespace, "Expected /\\0foo\\z/ to match \"\\x01\\x00\\x00foo\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\"." if RUBY_PLATFORM.include?('linux') +exclude :test_abstract_unix_server, "ArgumentError: string contains null byte" if RUBY_PLATFORM.include?('linux') +exclude :test_abstract_unix_server_socket, "<\"\\u0000ruby-test_unix\"> expected but was <\"\">." if RUBY_PLATFORM.include?('linux') +exclude :test_abstract_unix_socket_econnrefused, "[Errno::ECONNREFUSED] exception expected, not #." if RUBY_PLATFORM.include?('linux') +exclude :test_autobind, "Expected /\\A\\0[0-9a-f]{5}\\z/ to match \"\"." if RUBY_PLATFORM.include?('linux') +exclude :test_cloexec, "Failed assertion, no message given." +exclude :test_getcred_ucred, "Expected / pid=142305 / to match \"#\"." if RUBY_PLATFORM.include?('linux') +exclude :test_getcred_xucred, "NameError: uninitialized constant Socket::LOCAL_PEERCRED" if RUBY_PLATFORM.include?('darwin') +exclude :test_initialize, "spurious; [ArgumentError] exception expected, not #." +exclude :test_sendcred_ucred, "SocketError: Result too large for supplied buffer" if RUBY_PLATFORM.include?('linux') +exclude :test_socket_pair_with_block, "<:return_value> expected but was <[#, #]>." +exclude :test_unix_socket_pair_with_block, "NoMethodError: undefined method `[]' for nil:NilClass" diff --git a/test/mri/excludes/TestSprintf.rb b/test/mri/excludes/TestSprintf.rb index 1ab3468d68cf..a2bdc6dcc2d5 100644 --- a/test/mri/excludes/TestSprintf.rb +++ b/test/mri/excludes/TestSprintf.rb @@ -1,14 +1,11 @@ -exclude :test_width_underflow, "needs investigation" -exclude :test_binary, "needs investigation" -exclude :test_integer, "needs investigation" -exclude :test_named_typed, "needs investigation" -exclude :test_named_typed_enc, "needs investigation" -exclude :test_named_untyped, "needs investigation" -exclude :test_named_untyped_enc, "needs investigation" -exclude :test_negative_width_overflow, "needs investigation" -exclude :test_percent_sign_at_end, "needs investigation" -exclude :test_rational, "needs investigation" -exclude :test_star, "needs investigation" -exclude :test_named_default, "needs investigation" -exclude :test_no_hidden_garbage, "skipped in CI due to thread count, depends on ObjectSpace.count_objects" +exclude :test_binary, "<\"..11\"> expected but was <\" ..1\">." exclude :test_char, "ArgumentError: %c requires a character" +exclude :test_integer, "<\"18446744073709551616\"> expected but was <\"9223372036854775807\">." +exclude :test_named_default, "KeyError: key not found: :location" +exclude :test_named_typed, "Expected Exception(ArgumentError) was raised, but the message doesn't match. <\"named{key2} after numbered\"> expected but was <\"namedkey2 after numbered\">." +exclude :test_named_typed_enc, "Expected Exception(ArgumentError) was raised, but the message doesn't match. <\"named{〒} after numbered\"> expected but was <\"named ̄タメ after numbered\">." +exclude :test_named_untyped, "Expected Exception(ArgumentError) was raised, but the message doesn't match. <\"named after numbered\"> expected but was <\"namedkey2 after numbered\">." +exclude :test_named_untyped_enc, "Expected Exception(ArgumentError) was raised, but the message doesn't match. <\"named<〒> after numbered\"> expected but was <\"named ̄タメ after numbered\">." +exclude :test_negative_width_overflow, "Exception(ArgumentError) with message matches to /too big/." +exclude :test_rational, "Expected /\\A0\\.3+\\z/ to match \"0.333333333333333300000000000000000000000000000000000000000000\"." +exclude :test_star, "Expected Exception(ArgumentError) was raised, but the message doesn't match. Expected /width too big/ to match \"precision too big\"." diff --git a/test/mri/excludes/TestSprintfComb.rb b/test/mri/excludes/TestSprintfComb.rb index 610a6d139692..5cd2cb18e284 100644 --- a/test/mri/excludes/TestSprintfComb.rb +++ b/test/mri/excludes/TestSprintfComb.rb @@ -1,52 +1,52 @@ -exclude :"test_format_float(% #+-00.200e)", "needs investigation" -exclude :"test_format_float(% #+.9999f)", "needs investigation" -exclude :"test_format_float(% #.200e)", "needs investigation" -exclude :"test_format_float(% #0.20G)", "needs investigation" -exclude :"test_format_float(% #05.0g)", "needs investigation" -exclude :"test_format_float(% +0.20E)", "needs investigation" -exclude :"test_format_float(% +0.9999E)", "needs investigation" -exclude :"test_format_float(% -05.9999G)", "needs investigation" -exclude :"test_format_float(% -20.20E)", "needs investigation" -exclude :"test_format_float(% -5.200g)", "needs investigation" -exclude :"test_format_float(%#+-5.20f)", "needs investigation" -exclude :"test_format_float(%#+20.9999g)", "needs investigation" -exclude :"test_format_float(%#+20G)", "needs investigation" -exclude :"test_format_float(%#-0.9999E)", "needs investigation" -exclude :"test_format_float(%#-5.200E)", "needs investigation" -exclude :"test_format_float(%#00.0G)", "needs investigation" -exclude :"test_format_float(%#00.20g)", "needs investigation" -exclude :"test_format_float(%+-05.20e)", "needs investigation" -exclude :"test_format_float(%+0.200E)", "needs investigation" -exclude :"test_format_float(%+0.200G)", "needs investigation" -exclude :"test_format_float(%-00.9999e)", "needs investigation" -exclude :"test_format_float(%.20e)", "needs investigation" -exclude :"test_format_float(%020.200f)", "needs investigation" -exclude :"test_format_float(%5.9999e)", "needs investigation" -exclude :"test_format_integer(% #+-0.8d)", "needs investigation" -exclude :"test_format_integer(% #+-0.B)", "needs investigation" -exclude :"test_format_integer(% #+-0.b)", "needs investigation" -exclude :"test_format_integer(% #+-0.d)", "needs investigation" -exclude :"test_format_integer(% #+-00.b)", "needs investigation" -exclude :"test_format_integer(% #+-020.8o)", "needs investigation" -exclude :"test_format_integer(% #+-0B)", "needs investigation" -exclude :"test_format_integer(% #+-20.8B)", "needs investigation" -exclude :"test_format_integer(% #+-20.8o)", "needs investigation" -exclude :"test_format_integer(% #+-20.X)", "needs investigation" -exclude :"test_format_integer(% +00.0b)", "needs investigation" -exclude :"test_format_integer(% +00.0o)", "needs investigation" -exclude :"test_format_integer(% +020.0x)", "needs investigation" -exclude :"test_format_integer(%#-0.8o)", "needs investigation" -exclude :"test_format_integer(%#-0.b)", "needs investigation" -exclude :"test_format_integer(%#-0.o)", "needs investigation" -exclude :"test_format_integer(%#-05.8b)", "needs investigation" -exclude :"test_format_integer(%#-05.x)", "needs investigation" -exclude :"test_format_integer(%#-05o)", "needs investigation" -exclude :"test_format_integer(%#-0b)", "needs investigation" -exclude :"test_format_integer(%.0X)", "needs investigation" -exclude :"test_format_integer(%.0d)", "needs investigation" -exclude :"test_format_integer(%.20B)", "needs investigation" -exclude :"test_format_integer(%05.0d)", "needs investigation" -exclude :"test_format_integer(%0B)", "needs investigation" -exclude :"test_format_integer(%5.0B)", "needs investigation" -exclude :"test_format_integer(%5.0d)", "needs investigation" -exclude :"test_format_integer(%B)", "needs investigation" +exclude :"test_format_float(% #+-00.200e)", "sprintf(\"% #+-00.200e\", -1e+100)." +exclude :"test_format_float(% #+.9999f)", "sprintf(\"% #+.9999f\", -1e+100)." +exclude :"test_format_float(% #.200e)", "sprintf(\"% #.200e\", -1e+100)." +exclude :"test_format_float(% #0.20G)", "sprintf(\"% #0.20G\", -1e+100)." +exclude :"test_format_float(% #05.0g)", "sprintf(\"% #05.0g\", -0)." +exclude :"test_format_float(% +0.20E)", "sprintf(\"% +0.20E\", -1e+100)." +exclude :"test_format_float(% +0.9999E)", "sprintf(\"% +0.9999E\", -1e+100)." +exclude :"test_format_float(% -05.9999G)", "sprintf(\"% -05.9999G\", -1e+100)." +exclude :"test_format_float(% -20.20E)", "sprintf(\"% -20.20E\", -1e+100)." +exclude :"test_format_float(% -5.200g)", "sprintf(\"% -5.200g\", -1e+100)." +exclude :"test_format_float(%#+-5.20f)", "sprintf(\"%#+-5.20f\", 0.01)." +exclude :"test_format_float(%#+20.9999g)", "sprintf(\"%#+20.9999g\", -1e+100)." +exclude :"test_format_float(%#+20G)", "sprintf(\"%#+20G\", -1e+100)." +exclude :"test_format_float(%#-0.9999E)", "sprintf(\"%#-0.9999E\", -1e+100)." +exclude :"test_format_float(%#-5.200E)", "sprintf(\"%#-5.200E\", -1e+100)." +exclude :"test_format_float(%#00.0G)", "sprintf(\"%#00.0G\", -0)." +exclude :"test_format_float(%#00.20g)", "sprintf(\"%#00.20g\", -1e+100)." +exclude :"test_format_float(%+-05.20e)", "sprintf(\"%+-05.20e\", -1e+100)." +exclude :"test_format_float(%+0.200E)", "sprintf(\"%+0.200E\", -1e+100)." +exclude :"test_format_float(%+0.200G)", "sprintf(\"%+0.200G\", -1e+100)." +exclude :"test_format_float(%-00.9999e)", "sprintf(\"%-00.9999e\", -1e+100)." +exclude :"test_format_float(%.20e)", "sprintf(\"%.20e\", -1e+100)." +exclude :"test_format_float(%020.200f)", "sprintf(\"%020.200f\", 0.01)." +exclude :"test_format_float(%5.9999e)", "sprintf(\"%5.9999e\", -1e+100)." +exclude :"test_format_integer(% #+-0.8d)", "sprintf(\"% #+-0.8d\", -1)." +exclude :"test_format_integer(% #+-0.B)", "sprintf(\"% #+-0.B\", 0)." +exclude :"test_format_integer(% #+-0.b)", "sprintf(\"% #+-0.b\", 0)." +exclude :"test_format_integer(% #+-0.d)", "sprintf(\"% #+-0.d\", 0)." +exclude :"test_format_integer(% #+-00.b)", "sprintf(\"% #+-00.b\", 0)." +exclude :"test_format_integer(% #+-020.8o)", "sprintf(\"% #+-020.8o\", 3)." +exclude :"test_format_integer(% #+-0B)", "sprintf(\"% #+-0B\", 0)." +exclude :"test_format_integer(% #+-20.8B)", "sprintf(\"% #+-20.8B\", 3)." +exclude :"test_format_integer(% #+-20.8o)", "sprintf(\"% #+-20.8o\", 3)." +exclude :"test_format_integer(% #+-20.X)", "sprintf(\"% #+-20.X\", 0)." +exclude :"test_format_integer(% +00.0b)", "sprintf(\"% +00.0b\", 0)." +exclude :"test_format_integer(% +00.0o)", "sprintf(\"% +00.0o\", 0)." +exclude :"test_format_integer(% +020.0x)", "sprintf(\"% +020.0x\", 0)." +exclude :"test_format_integer(%#-0.8o)", "sprintf(\"%#-0.8o\", 3)." +exclude :"test_format_integer(%#-0.b)", "sprintf(\"%#-0.b\", 0)." +exclude :"test_format_integer(%#-0.o)", "sprintf(\"%#-0.o\", -1)." +exclude :"test_format_integer(%#-05.8b)", "sprintf(\"%#-05.8b\", 3)." +exclude :"test_format_integer(%#-05.x)", "sprintf(\"%#-05.x\", 0)." +exclude :"test_format_integer(%#-05o)", "sprintf(\"%#-05o\", 3)." +exclude :"test_format_integer(%#-0b)", "sprintf(\"%#-0b\", 0)." +exclude :"test_format_integer(%.0X)", "sprintf(\"%.0X\", 0)." +exclude :"test_format_integer(%.0d)", "sprintf(\"%.0d\", 0)." +exclude :"test_format_integer(%.20B)", "sprintf(\"%.20B\", -1)." +exclude :"test_format_integer(%05.0d)", "sprintf(\"%05.0d\", 0)." +exclude :"test_format_integer(%0B)", "sprintf(\"%0B\", -18446744073709551615)." +exclude :"test_format_integer(%5.0B)", "sprintf(\"%5.0B\", 0)." +exclude :"test_format_integer(%5.0d)", "sprintf(\"%5.0d\", 0)." +exclude :"test_format_integer(%B)", "sprintf(\"%B\", -18446744073709551615)." diff --git a/test/mri/excludes/TestStack.rb b/test/mri/excludes/TestStack.rb index 0a0e58c161f0..8a88cc81fd69 100644 --- a/test/mri/excludes/TestStack.rb +++ b/test/mri/excludes/TestStack.rb @@ -1,3 +1,3 @@ -exclude :test_machine_stack_size, "needs investigation" -exclude :test_vm_stack_size, "needs investigation" -exclude :test_relative_stack_sizes, "needs investigation" +exclude :test_machine_stack_size, "Expected 48 to be <= 46." +exclude :test_relative_stack_sizes, "NoMethodError: undefined method `[]' for nil:NilClass" +exclude :test_vm_stack_size, "Expected 374 to be > 628." diff --git a/test/mri/excludes/TestString.rb b/test/mri/excludes/TestString.rb index 105b581e5b5e..b9c9d727bbe9 100644 --- a/test/mri/excludes/TestString.rb +++ b/test/mri/excludes/TestString.rb @@ -1,34 +1,21 @@ -exclude :test_ascii_incomat_inspect, "needs investigation" -exclude :test_chomp!, "needs investigation" -exclude :test_crypt, "needs investigation" -exclude :test_dummy_inspect, "needs investigation" -exclude :test_dump, "needs investigation" -exclude :test_each, "needs investigation" -exclude :test_each_grapheme_cluster, "needs investigation" -exclude :test_each_line, "needs investigation" -exclude :test_each_line_chomp, "needs investigation" -exclude :test_fs, "needs investigation" -exclude :test_initialize, "needs investigation" -exclude :test_partition, "needs investigation" -exclude :test_respond_to, "needs investigation" -exclude :test_rstrip, "needs investigation" -exclude :test_rstrip_bang, "needs investigation" -exclude :test_setter, "needs investigation" -exclude :test_to_i, "needs investigation" -exclude :test_undump, "needs investigation" -exclude :test_upto_nonalnum, "needs investigation" -exclude :test_upto_numeric, "needs investigation" -exclude :test_match_method, "needs investigation" -exclude :test_lstrip, "needs investigation" -exclude :test_lstrip_bang, "needs investigation" -exclude :test_strip, "needs investigation" -exclude :test_strip!, "needs investigation" -exclude :test_uminus_frozen, "needs investigation" -exclude :test_ASET, "needs investigation" -exclude :test_inspect_next_line, "[ruby-core:98231]." -exclude :test_upcase, "<\"\\u{10574}\"> expected but was" -exclude :test_byterindex, "Encoding::CompatibilityError: incompatible character encodings: UTF-8 and ASCII-8BIT" -exclude :test_rindex, "Encoding::CompatibilityError: incompatible character encodings: UTF-8 and ASCII-8BIT" -exclude :test_byteindex, "Encoding::CompatibilityError: incompatible character encodings: UTF-8 and ASCII-8BIT" -exclude :test_index, "Encoding::CompatibilityError: incompatible character encodings: UTF-8 and ASCII-8BIT" -exclude :test_fs_setter, "Expected Exception(TypeError) was raised, but the message doesn't match." +exclude :test_chomp!, "Exception(FrozenError) with message matches to /frozen/." +exclude :test_crypt, "ArgumentError expected but nothing was raised." +exclude :test_dummy_inspect, "<\"\\\"\\\\e\\\\x24\\\\x42\\\\x22\\\\x4C\\\\x22\\\\x68\\\\e\\\\x28\\\\x42\\\"\"> expected but was <\"\\\"\\\\x1B\\\\x24\\\\x42\\\\x22\\\\x4C\\\\x22\\\\x68\\\\x1B\\\\x28\\\\x42\\\"\">." +exclude :test_each, "<\"hello\\n\" + \"\\n\"> expected but was <\"hello\\n\" + \"\\n\" + \"\\n\">." +exclude :test_each_grapheme_cluster, "<1> expected but was <2>." +exclude :test_each_line, "<\"hello\\n\" + \"\\n\"> expected but was <\"hello\\n\" + \"\\n\" + \"\\n\">." +exclude :test_each_line_chomp, "<\"hello\"> expected but was <\"hello\\n\">." +exclude :test_fs, "Exception(TypeError) with message matches to /\\$;/." +exclude :test_fs_setter, "Expected Exception(TypeError) was raised, but the message doesn't match. Expected /\\$分行/ to match \"$/ must be a String\"." +exclude :test_initialize, "FrozenError expected but nothing was raised." +exclude :test_inspect_next_line, "<\"\\\"\\\\u0085\\\"\"> expected but was <\"\\\"\u0085\\\"\">." +exclude :test_match_method, "TypeError: can't define singleton" +exclude :test_respond_to, " expected but was ." +exclude :test_rstrip, "Encoding::CompatibilityError expected but nothing was raised." +exclude :test_rstrip_bang, "Encoding::CompatibilityError expected but nothing was raised." +exclude :test_to_i, "Encoding::CompatibilityError expected but nothing was raised." +exclude :test_uminus_frozen, "Expected \"foobarfoobarfoobar\" (oid=96) to be the same as \"foobarfoobarfoobar\" (oid=15416)." +exclude :test_undump, "Expected Exception(RuntimeError) was raised, but the message doesn't match. Expected /invalid/ to match \"dumped string contained Unicode escape but used force_encoding\"." +exclude :test_upcase, "<\"\\u{10574}\"> expected but was <\"\\u{1059B}\">." +exclude :test_upto_nonalnum, "<83> expected but was <1>." +exclude :test_upto_numeric, "<#> expected but was <#>." diff --git a/test/mri/excludes/TestStringIO.rb b/test/mri/excludes/TestStringIO.rb index 1920cffc48dd..d1437643c620 100644 --- a/test/mri/excludes/TestStringIO.rb +++ b/test/mri/excludes/TestStringIO.rb @@ -1,28 +1,27 @@ -exclude :test_frozen, "[ruby-core:33648]." -exclude :test_gets_chomp, "<\"abc\\n\"> expected but was" -exclude :test_read, "Expected \"あい\" (oid=1192) to be the same as \"あい\" (oid=1208)." -exclude :test_ungetc, "<\"x\"> expected but was" -exclude :test_ungetbyte, "<\"q紅玉bar\\n\"> expected but was" -exclude :test_ungetbyte_padding, "<\"\\u0000a\"> expected but was" -exclude :test_close_write, "Exception raised:" -exclude :test_each, "<[\"foo\\n\" + \"bar\\n\", \"baz\"]> expected but was" -exclude :test_set_encoding, "<\"foo\\x83\"> (ASCII-8BIT) expected but was" -exclude :test_new_block_warning, "expected: /does not take block/" -exclude :test_initialize, "ArgumentError expected but nothing was raised." -exclude :test_close_read, "Exception raised:" -exclude :"test_strip_bom:UTF-16BE", "TypeError: no implicit conversion of Hash into String" +exclude :"test_strip_bom:UTF-16BE", "UTF-16BE." +exclude :"test_strip_bom:UTF-16LE", "UTF-16LE." +exclude :"test_strip_bom:UTF-32BE", "UTF-32BE." +exclude :"test_strip_bom:UTF-32LE", "UTF-32LE." +exclude :"test_strip_bom:UTF-8", "UTF-8." +exclude :test_close_read, "Exception raised: <#>" +exclude :test_close_write, "Exception raised: <#>" +exclude :test_each, "<[\"foo\\n\" + \"bar\\n\" + \"\\n\" + \"\\n\", \"baz\\n\"]> expected but was <[\"foo\\n\" + \"bar\\n\" + \"\\n\", \"baz\\n\"]>." exclude :test_encoding_read, "Encoding::CompatibilityError: incompatible character encodings: UTF-32BE and UTF-8" -exclude :test_write_with_multiple_arguments, "ArgumentError: wrong number of arguments (given 2, expected 1)" -exclude :"test_strip_bom:UTF-32LE", "TypeError: no implicit conversion of Hash into String" -exclude :"test_strip_bom:UTF-16LE", "TypeError: no implicit conversion of Hash into String" -exclude :"test_strip_bom:UTF-32BE", "TypeError: no implicit conversion of Hash into String" -exclude :"test_strip_bom:UTF-8", "TypeError: no implicit conversion of Hash into String" -exclude :test_gets2, "Encoding::CompatibilityError: incompatible character encodings: UTF-16BE and UTF-8" exclude :test_encoding_write, "Encoding::CompatibilityError: incompatible character encodings: UTF-32BE and UTF-8" -exclude :test_write_encoding_conversion, "ArgumentError: wrong number of arguments (given 2, expected 1)" +exclude :test_frozen, "FrozenError expected but nothing was raised." +exclude :test_frozen_string, "IOError expected but nothing was raised." +exclude :test_gets2, "Encoding::CompatibilityError: incompatible character encodings: UTF-16BE and UTF-8" +exclude :test_gets_chomp, "<\"abc\\n\" + \"\\n\" + \"def\\n\"> expected but was <\"abc\\n\" + \"\\n\" + \"def\">." +exclude :test_gets_chomp_eol, "<\"abc\\r\\n\" + \"\\r\\n\" + \"def\\r\\n\"> expected but was <\"abc\\r\\n\" + \"\\r\\n\" + \"def\">." +exclude :test_initialize, "ArgumentError expected but nothing was raised." exclude :test_overflow, "it hangs up on darwin" -exclude :test_frozen_string, "[ruby-core:48530]." -exclude :test_gets_chomp_eol, "<\"abc\\r\\n\"> expected but was" -exclude :test_ungetc_padding, "<\"b\\u0000a\"> expected but was" -exclude :test_ungetc_fill, "<500> expected but was" -exclude :test_truncate, "<0> expected but was" +exclude :test_read, "Expected \"あい\" (oid=2328) to be the same as \"あい\" (oid=2344)." +exclude :test_set_encoding, "<\"foo\\x83\"> (ASCII-8BIT) expected but was <\"foo\\x83\"> (UTF-8)." +exclude :test_truncate, "<0> expected but was <10>." +exclude :test_ungetbyte, "<\"q紅玉bar\\n\"> expected but was <\"foo\\n\" + \"bar\\n\">." +exclude :test_ungetbyte_padding, "<\"\\u0000a\"> expected but was <\"a\">." +exclude :test_ungetc, "<\"x\"> expected but was <\"1\">." +exclude :test_ungetc_fill, "<500> expected but was <599>." +exclude :test_ungetc_padding, "<\"b\\u0000a\"> expected but was <\"\\u0000a\">." +exclude :test_write_encoding_conversion, "ArgumentError: wrong number of arguments (given 2, expected 1)" +exclude :test_write_with_multiple_arguments, "ArgumentError: wrong number of arguments (given 2, expected 1)" diff --git a/test/mri/excludes/TestStringScanner.rb b/test/mri/excludes/TestStringScanner.rb index 68bd9d8aef73..e69de29bb2d1 100644 --- a/test/mri/excludes/TestStringScanner.rb +++ b/test/mri/excludes/TestStringScanner.rb @@ -1,3 +0,0 @@ -exclude :test_invalid_encoding_string, "needs investigation" -exclude :test_aref_without_regex, "needs investigation" -exclude :test_charpos_not_use_string_methods, "needs investigation" diff --git a/test/mri/excludes/TestStringchar.rb b/test/mri/excludes/TestStringchar.rb index a7e135a6841f..e69de29bb2d1 100644 --- a/test/mri/excludes/TestStringchar.rb +++ b/test/mri/excludes/TestStringchar.rb @@ -1 +0,0 @@ -exclude :test_char, "needs investigation" diff --git a/test/mri/excludes/TestStubSpecification.rb b/test/mri/excludes/TestStubSpecification.rb index 777727ae9336..e69de29bb2d1 100644 --- a/test/mri/excludes/TestStubSpecification.rb +++ b/test/mri/excludes/TestStubSpecification.rb @@ -1 +0,0 @@ -exclude :test_contains_requirable_file_eh_extension, "<\"Ignoring stub_e-2 because its extensions are not built. Try: gem pristine stub_e --version 2\\n\"> expected but was" diff --git a/test/mri/excludes/TestSuper.rb b/test/mri/excludes/TestSuper.rb index c5900a170052..f139a0d7d39d 100644 --- a/test/mri/excludes/TestSuper.rb +++ b/test/mri/excludes/TestSuper.rb @@ -1,10 +1,8 @@ -exclude :test_from_eval, "needs investigation" -exclude :test_super_in_BEGIN, "needs investigation" -exclude :test_define_method, "needs investigation" -exclude :test_super_in_instance_eval, "needs investigation" -exclude :test_super_in_instance_eval_in_module, "needs investigation" -exclude :test_super_in_instance_eval_with_define_method, "needs investigation" -exclude :test_super_in_module_unbound_method, "needs investigation" -exclude :test_super_in_orphan_block_with_instance_eval, "needs investigation" -exclude :test_double_include, "needs investigation" -exclude :test_double_include2, "needs investigation" +exclude :test_define_method, "[RuntimeError] exception expected, not #." +exclude :test_double_include, "SystemStackError: stack level too deep" +exclude :test_double_include2, "SystemStackError: stack level too deep" +exclude :test_super_in_instance_eval, "Exception(TypeError) with message matches to /Sub\\u{30af 30e9 30b9}/." +exclude :test_super_in_instance_eval_in_module, "Exception(TypeError) with message matches to /Sub\\u{30af 30e9 30b9}/." +exclude :test_super_in_instance_eval_with_define_method, "Exception(TypeError) with message matches to /Sub\\u{30af 30e9 30b9}/." +exclude :test_super_in_module_unbound_method, "Exception raised: <#>" +exclude :test_super_in_orphan_block_with_instance_eval, "Exception(TypeError) with message matches to /Sub\\u{30af 30e9 30b9}/." diff --git a/test/mri/excludes/TestSymbol.rb b/test/mri/excludes/TestSymbol.rb index 8d0413daa904..cd06e0c47b5e 100644 --- a/test/mri/excludes/TestSymbol.rb +++ b/test/mri/excludes/TestSymbol.rb @@ -1,10 +1,5 @@ -exclude :test_eq_can_be_redefined, "needs investigation" -exclude :test_symbol_encoding, "needs investigation" -exclude :test_to_proc_arg, "needs investigation" -exclude :test_to_proc_binding, "needs investigation" -exclude :test_ascii_incomat_inspect, "needs investigation" -exclude :test_match_method, "needs investigation" -exclude :test_to_proc_iseq, "needs investigation" -exclude :test_to_proc_lambda?, "needs investigation" -exclude :test_to_proc_lambda_with_refinements, "needs investigation" -exclude :test_name, "needs investigation" +exclude :test_ascii_incomat_inspect, "Encoding::CompatibilityError: incompatible encoding regexp match (US-ASCII regexp with UTF-16LE string)" +exclude :test_eq_can_be_redefined, "| Error while formatting Ruby exception: | core/posix.rb:150:in `as_pointer': Message not supported. (Polyglot::UnsupportedMessageError)" +exclude :test_match_method, "TypeError: can't define singleton" +exclude :test_to_proc_arg, "Expected # (oid=712) to be the same as # (oid=728)." +exclude :test_to_proc_binding, "ArgumentError expected but nothing was raised." diff --git a/test/mri/excludes/TestSyntax.rb b/test/mri/excludes/TestSyntax.rb index f785033670e1..1472943f0524 100644 --- a/test/mri/excludes/TestSyntax.rb +++ b/test/mri/excludes/TestSyntax.rb @@ -1,75 +1,27 @@ -exclude :test_constant_reassignment_nested, "needs investigation" -exclude :test_constant_reassignment_toplevel, "needs investigation" -exclude :test_return_toplevel, "needs investigation" -exclude :test__END___cr, "needs investigation" -exclude :test_alias_symbol, "needs investigation" -exclude :test_argument_forwarding, "needs investigation" -exclude :test_array_kwsplat_hash, "needs investigation" -exclude :test_brace_after_literal_argument, "needs investigation" -exclude :test_classdef_in_cond, "needs investigation" -exclude :test_cmdarg_in_paren, "needs investigation" -exclude :test_dedented_heredoc_continued_line, "needs investigation" -exclude :test_dedented_heredoc_expr_at_beginning, "needs investigation" -exclude :test_dedented_heredoc_expr_string, "needs investigation" -exclude :test_dedented_heredoc_invalid_identifer, "needs investigation" -exclude :test_dedented_heredoc_with_blank_less_indented_line, "needs investigation" -exclude :test_dedented_heredoc_with_blank_more_indented_line, "needs investigation" -exclude :test_dedented_heredoc_with_empty_line, "needs investigation" -exclude :test_dedented_heredoc_with_indentation, "needs investigation" -exclude :test_dedented_heredoc_with_interpolated_expression, "needs investigation" -exclude :test_dedented_heredoc_with_interpolated_string, "needs investigation" -exclude :test_dedented_heredoc_with_newline, "needs investigation" -exclude :test_duplicated_when, "needs investigation" -exclude :test_duplicated_when_check_option, "needs investigation" -exclude :test_error_message_encoding, "needs investigation" -exclude :test_heredoc_mixed_encoding, "needs investigation" -exclude :test_heredoc_no_terminator, "needs investigation" -exclude :test_integer_suffix, "needs investigation" -exclude :test_invalid_break, "needs investigation" -exclude :test_invalid_jump, "needs investigation" -exclude :test_invalid_literal_message, "needs investigation" -exclude :test_keyword_duplicated_splat, "needs investigation" -exclude :test_keyword_invalid_name, "needs investigation" -exclude :test_keyword_self_reference, "needs investigation" -exclude :test_method_call_location, "needs investigation" -exclude :test_methoddef_in_cond, "needs investigation" -exclude :test_optional_self_reference, "needs investigation" -exclude :test_parenthesised_statement_argument, "needs investigation" -exclude :test_range_at_eol, "needs investigation" -exclude :test_safe_call_in_massign_lhs, "needs investigation" -exclude :test_script_lines, "needs investigation" -exclude :test_syntax_error_at_newline, "needs investigation" -exclude :test_syntax_error_in_rescue, "needs investigation" -exclude :test_undef_symbol, "needs investigation" -exclude :test_unterminated_heredoc, "needs investigation" -exclude :test_unterminated_heredoc_cr, "needs investigation" -exclude :test_warn_balanced, "needs investigation" -exclude :test_warn_unreachable, "needs investigation" -exclude :test_warning_literal_in_condition, "needs investigation" -exclude :test_warning_literal_in_flip_flop, "needs investigation" -exclude :test_return_toplevel_with_argument, "needs investigation" -exclude :test_do_block_after_lambda, "needs investigation" -exclude :test_hash_kwsplat_hash, "needs investigation" -exclude :test_methoddef_endless, "needs investigation" -exclude :test_numbered_parameter, "needs investigation" -exclude :test_warning_for_cr, "needs investigation" -exclude :test_invalid_next, "#syntax_check does catch {|tag| eval(code, binding, ...) } and so next is arguably valid since it's in a block" -exclude :test_argument_forwarding_with_leading_arguments, "SyntaxError: /home/eregon/code/truffleruby-ws/truffleruby/test/mri/tests/ruby/test_syntax.rb:1797: syntax error, unexpected tIDENTIFIER" -exclude :test_methoddef_endless_command, "/home/eregon/code/truffleruby-ws/truffleruby/test/mri/tests/ruby/test_syntax.rb:1491:in `test_methoddef_endless_command'." -exclude :test_argument_forwarding_with_anon_rest_kwrest_and_block, "/home/eregon/code/truffleruby-ws/truffleruby/test/mri/tests/ruby/test_syntax.rb:175:in `test_argument_forwarding_with_anon_rest_kwrest_and_block'." -exclude :test_anonymous_rest_forwarding, "/home/eregon/code/truffleruby-ws/truffleruby/test/mri/tests/ruby/test_syntax.rb:145:in `test_anonymous_rest_forwarding'." -exclude :test_anonymous_keyword_rest_forwarding, "/home/eregon/code/truffleruby-ws/truffleruby/test/mri/tests/ruby/test_syntax.rb:158:in `test_anonymous_keyword_rest_forwarding'." -exclude :test_script_lines_encoding, "pid 42586 exit 0." +exclude :test_argument_forwarding, "/home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/test/mri/tests/ruby/test_syntax.rb:1717:in `test_argument_forwarding'." +exclude :test_array_kwsplat_hash, "<[]> expected but was <[{}]>." exclude :test_class_module_Object_ancestors, "TypeError: 1:Integer is not a class" -exclude :test_unassignable, "prism" -exclude :test_anonymous_block_forwarding, "prism" -exclude :test_newline_in_block_parameters, "prism" -exclude :test_invalid_symbol_space, "prism" -exclude :test_keywords_specified_and_not_accepted, "prism" -exclude :test_unexpected_fraction, "prism" -exclude :test_heredoc_cr, "prism" -exclude :test_no_label_with_percent, "prism" -exclude :test_keyword_duplicated, "prism" -exclude :test_dedented_heredoc_concatenation, "prism heredoc" -exclude :test_too_big_nth_ref, "prism" -exclude :test_null_range_cmdarg, "prism" +exclude :test_constant_reassignment_nested, "very slow: 85.74s on truffleruby 24.2.0-dev-b555f590, like ruby 3.2.4, GraalVM CE JVM [x86_64-linux] with AMD Ryzen 7 3700X 8-Core Processor (16 vCPUs)" +exclude :test_constant_reassignment_toplevel, "very slow: 84.30s on truffleruby 24.2.0-dev-b555f590, like ruby 3.2.4, GraalVM CE JVM [x86_64-linux] with AMD Ryzen 7 3700X 8-Core Processor (16 vCPUs)" +exclude :test_dedented_heredoc_concatenation, "<\"\\n\" + \"0\\n\" + \"1\"> expected but was <\" \\n\" + \"0\\n\" + \"1\">." +exclude :test_duplicated_when, "expected: /3: warning: duplicated `when' clause with line 3 is ignored.+4: warning: duplicated `when' clause with line 3 is ignored.+4: warning: duplicated `when' clause with line 3 is ignored.+5: warning: duplicated `when' clause with line 3 is ignored.+5: warning: duplicated `when' clause with line 3 is ignored/m" +exclude :test_duplicated_when_check_option, "| -:4: warning: 'when' clause on line 4 duplicates 'when' clause on line 3 and is ignored" +exclude :test_error_message_encoding, "```# -*- coding: utf-8 -*-\ndef n \"∈\"; end\n```" +exclude :test_hash_kwsplat_hash, " expected but was ." +exclude :test_heredoc_no_terminator, "/home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/test/mri/tests/ruby/test_syntax.rb:1074:in `test_heredoc_no_terminator'." +exclude :test_invalid_break, "/home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/test/mri/tests/ruby/test_syntax.rb:715:in `test_invalid_break'." +exclude :test_invalid_jump, "| truffleruby: -e:1: Invalid redo (SyntaxError)" +exclude :test_invalid_next, "/home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/test/mri/tests/ruby/test_syntax.rb:721:in `test_invalid_next'." +exclude :test_keyword_self_reference, "SyntaxError: (eval):1: circular argument reference - var" +exclude :test_method_call_location, "<1556> expected but was <1553>." +exclude :test_methoddef_endless_command, "/home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/test/mri/tests/ruby/test_syntax.rb:1614:in `test_methoddef_endless_command'." +exclude :test_no_label_with_percent, "/home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/test/mri/tests/ruby/test_syntax.rb:525:in `test_no_label_with_percent'." +exclude :test_numbered_parameter, "<[:a]> expected but was <[0]>." +exclude :test_optional_self_reference, "SyntaxError: (eval):1: circular argument reference - var" +exclude :test_parenthesised_statement_argument, "/home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/test/mri/tests/ruby/test_syntax.rb:1272:in `test_parenthesised_statement_argument'." +exclude :test_return_toplevel, "very slow: 295.12s on truffleruby 24.2.0-dev-b555f590, like ruby 3.2.4, GraalVM CE JVM [x86_64-linux] with AMD Ryzen 7 3700X 8-Core Processor (16 vCPUs)" +exclude :test_return_toplevel_with_argument, "LocalJumpError: unexpected return" +exclude :test_script_lines, "<[\"/tmp/bug4361_20240905-563476-g59fvx\"]> expected but was <[]>." +exclude :test_script_lines_encoding, "needs investigation" +exclude :test_syntax_error_at_newline, "/home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/test/mri/tests/ruby/test_syntax.rb:1435:in `test_syntax_error_at_newline'." +exclude :test_warn_balanced, "needs investigation" diff --git a/test/mri/excludes/TestSystem.rb b/test/mri/excludes/TestSystem.rb index de73cf11baf6..dbd3785ebb19 100644 --- a/test/mri/excludes/TestSystem.rb +++ b/test/mri/excludes/TestSystem.rb @@ -1,4 +1,4 @@ -exclude :test_system, "needs investigation" -exclude :test_system_exception, "needs investigation" -exclude :test_system_exception_nonascii, "needs investigation" -exclude :test_fallback_to_sh, "needs investigation" +exclude :test_fallback_to_sh, " expected but was ." +exclude :test_system, "<\"678\"> expected but was <\"\">." +exclude :test_system_exception, "Expected Exception(RuntimeError) was raised, but the message doesn't match. Expected /\\ACommand failed with exit / to match \"command failed\"." +exclude :test_system_exception_nonascii, "Exception(RuntimeError) with message matches to /テスト\\.cmd/." diff --git a/test/mri/excludes/TestThread.rb b/test/mri/excludes/TestThread.rb index d058c3f64396..14dd622bda07 100644 --- a/test/mri/excludes/TestThread.rb +++ b/test/mri/excludes/TestThread.rb @@ -1,29 +1,25 @@ -exclude :test_no_valid_cfp, "needs investigation" -exclude :test_thread_join_current, "test hangs" -exclude :test_thread_join_main_thread, "test hangs" -exclude :test_abort_on_exception, "needs investigation" +exclude :test_abort_on_exception, "| Exception: `RuntimeError' at -:3:in `block in
' - " exclude :test_handle_interrupt_and_io, "needs investigation" -exclude :test_handle_interrupt_blocking, "needs investigation" -exclude :test_handle_interrupt_invalid_argument, "needs investigation" -exclude :test_handle_interrupted?, "needs investigation" -exclude :test_kill_wrong_argument, "needs investigation" -exclude :test_machine_stack_size, "needs investigation" +exclude :test_handle_interrupt_and_p, "transient" +exclude :test_handle_interrupt_blocking, "<:ok> expected but was ." +exclude :test_handle_interrupt_invalid_argument, "[ArgumentError] exception expected, not # expected but was <:ng1>." +exclude :test_ignore_deadlock, "very slow: 60.41s on truffleruby 24.2.0-dev-b555f590, like ruby 3.2.4, GraalVM CE JVM [x86_64-linux] with AMD Ryzen 7 3700X 8-Core Processor (16 vCPUs)" +exclude :test_join_argument_conversion, "TypeError: TruffleRuby doesn't have a case for the org.truffleruby.core.thread.ThreadNodesFactory$JoinNodeFactory$JoinNodeGen node with values of type TestThread::Thread(org.truffleruby.core.thread.RubyThread) #(org.truffleruby.core.basicobject.RubyBasicObject)" +exclude :test_kill_wrong_argument, "[TypeError] exception expected, not #." +exclude :test_machine_stack_size, "transient; Expected 46 to be >= 47" exclude :test_main_thread_status_at_exit, "needs investigation" -exclude :test_priority, "needs investigation" -exclude :test_thread_invalid_name, "needs investigation" -exclude :test_thread_timer_and_interrupt, "needs investigation" -exclude :test_vm_machine_stack_size, "needs investigation" -exclude :test_stack_size, "needs investigation" -exclude :test_stop, "needs investigation" -exclude :test_thread_interrupt_for_killed_thread, "needs investigation" -exclude :test_uninitialized, "needs investigation" -exclude :test_wakeup, "needs investigation" -exclude :test_handle_interrupt, "needs investigation" -exclude :test_ignore_deadlock, "needs investigation" +exclude :test_no_valid_cfp, "transient; java.lang.AssertionError: null element in Object[] at index 0: [null] at org.graalvm.ruby/org.truffleruby.language.RubyBaseNode.createArray(RubyBaseNode.java:220)" +exclude :test_pending_interrupt?, "ArgumentError: Thread#pending_interrupt? does not support being called for another Thread than the current Thread" +exclude :test_priority, "spurious; Expected 3481319 to be > 3618431." +exclude :test_stack_size, "NoMethodError: undefined method `[]' for nil:NilClass" +exclude :test_stop, "transient; hangs" exclude :test_switch_while_busy_loop, "transient" -exclude :test_handle_interrupt_and_p, "transient" +exclude :test_thread_interrupt_for_killed_thread, "transient; hangs or very slow -- high CPU" +exclude :test_thread_invalid_name, "[ArgumentError] exception expected, not #." +exclude :test_thread_join_current, "test hangs" +exclude :test_thread_join_main_thread, "test hangs" exclude :test_thread_value_in_trap, "transient" -exclude :test_join_argument_conversion, "TypeError: TruffleRuby doesn't have a case for the org.truffleruby.core.thread.ThreadNodesFactory$JoinNodeFactory$JoinNodeGen node with values of type TestThread::Thread(org.truffleruby.core.thread.RubyThread) #(org.truffleruby.core.basicobject.RubyBasicObject)" -exclude :test_inspect, "<\"#<#::Cスレッド:0x34d208 /Users/graal/slave/e/main/test/mri/tests/ruby/test_thread.rb:33 run>\"> expected but was" -exclude :test_pending_interrupt?, "ArgumentError: Thread#pending_interrupt? does not support being called for another Thread than the current Thread" +exclude :test_uninitialized, "ArgumentError: Thread#pending_interrupt? does not support being called for another Thread than the current Thread" +exclude :test_vm_machine_stack_size, "0 size." exclude :test_yield_across_thread_through_enum, "LocalJumpError: unexpected return" diff --git a/test/mri/excludes/TestThreadConditionVariable.rb b/test/mri/excludes/TestThreadConditionVariable.rb index b384bff8ba61..4f93e8aeae60 100644 --- a/test/mri/excludes/TestThreadConditionVariable.rb +++ b/test/mri/excludes/TestThreadConditionVariable.rb @@ -1,5 +1,6 @@ -exclude :test_dump, "needs investigation" -exclude :test_dup, "needs investigation" -exclude :test_initialized, "needs investigation" -exclude :test_condvar_wait_deadlock, "needs investigation" -exclude :test_condvar_timed_wait, "Expected # to be nil." +exclude :test_condvar_timed_wait, "Expected # to be nil." +exclude :test_condvar_wait_deadlock, "very slow: 600.33s on truffleruby 24.2.0-dev-b555f590, like ruby 3.2.4, GraalVM CE JVM [x86_64-linux] with AMD Ryzen 7 3700X 8-Core Processor (16 vCPUs)" +exclude :test_condvar_wait_deadlock_2, "spurious; hangs" +exclude :test_dump, "TypeError expected but nothing was raised." +exclude :test_dup, "NoMethodError expected but nothing was raised." +exclude :test_initialized, "[TypeError] exception expected, not #." diff --git a/test/mri/excludes/TestThreadFdClose.rb b/test/mri/excludes/TestThreadFdClose.rb index c27b421ab094..c592d7d6bb58 100644 --- a/test/mri/excludes/TestThreadFdClose.rb +++ b/test/mri/excludes/TestThreadFdClose.rb @@ -1 +1 @@ -exclude :test_thread_fd_close, "needs investigation" +exclude :test_thread_fd_close, "undefined symbol: rb_thread_fd_close" diff --git a/test/mri/excludes/TestThreadGroup.rb b/test/mri/excludes/TestThreadGroup.rb index c1ea573cc6ee..da846d589087 100644 --- a/test/mri/excludes/TestThreadGroup.rb +++ b/test/mri/excludes/TestThreadGroup.rb @@ -1 +1 @@ -exclude :test_frozen_thgroup, "needs investigation" +exclude :test_frozen_thgroup, "ThreadError expected but nothing was raised." diff --git a/test/mri/excludes/TestThreadInstrumentation.rb b/test/mri/excludes/TestThreadInstrumentation.rb index 227c56058b84..bd1689f22352 100644 --- a/test/mri/excludes/TestThreadInstrumentation.rb +++ b/test/mri/excludes/TestThreadInstrumentation.rb @@ -1,4 +1,4 @@ -exclude :test_join_counters, "Polyglot::ForeignException: External LLVMFunction rb_internal_thread_add_event_hook cannot be found." -exclude :test_thread_instrumentation_unregister, "Polyglot::ForeignException: External LLVMFunction rb_internal_thread_add_event_hook cannot be found." -exclude :test_thread_instrumentation, "Polyglot::ForeignException: External LLVMFunction rb_internal_thread_add_event_hook cannot be found." -exclude :test_thread_instrumentation_fork_safe, "Polyglot::ForeignException: External LLVMFunction rb_internal_thread_add_event_hook cannot be found." +exclude :test_join_counters, "undefined symbol: rb_internal_thread_add_event_hook" +exclude :test_thread_instrumentation, "undefined symbol: rb_internal_thread_add_event_hook" +exclude :test_thread_instrumentation_fork_safe, "undefined symbol: rb_internal_thread_add_event_hook" +exclude :test_thread_instrumentation_unregister, "undefined symbol: rb_internal_thread_add_event_hook" diff --git a/test/mri/excludes/TestThreadQueue.rb b/test/mri/excludes/TestThreadQueue.rb index 43fdc3ee5950..08a268e20d65 100644 --- a/test/mri/excludes/TestThreadQueue.rb +++ b/test/mri/excludes/TestThreadQueue.rb @@ -1,6 +1,5 @@ -exclude :test_sized_queue_assign_max, "hangs" -exclude :test_dump, "needs investigation" -exclude :test_dup, "needs investigation" -exclude :test_queue_initialize, "" -exclude :test_sized_queue_initialized, "needs investigation" +exclude :test_dump, "TypeError expected but nothing was raised." +exclude :test_dup, "NoMethodError expected but nothing was raised." exclude :test_queue_initialized, "TypeError expected but nothing was raised." +exclude :test_sized_queue_assign_max, "hangs" +exclude :test_sized_queue_initialized, "Cannot invoke \"org.truffleruby.core.queue.SizedQueue.put(Object)\" because \"queue\" is null (java.lang.NullPointerException) from org.truffleruby.core.queue.SizedQueueNodes$PushNode.lambda$doPushBlocking$0(SizedQueueNodes.java:137)" diff --git a/test/mri/excludes/TestTime.rb b/test/mri/excludes/TestTime.rb index d04b75d2a3a3..484bb7442940 100644 --- a/test/mri/excludes/TestTime.rb +++ b/test/mri/excludes/TestTime.rb @@ -1,29 +1,24 @@ -exclude :test_strftime_too_wide, "needs investigation" -exclude :test_asctime, "needs investigation" -exclude :test_at, "needs investigation" -exclude :test_inspect, "needs investigation" -exclude :test_marshal_nsec_191, "needs investigation" -exclude :test_marshal_timezone, "needs investigation" -exclude :test_marshal_to_s, "needs investigation" -exclude :test_plus_type, "needs investigation" -exclude :test_reinitialize, "needs investigation" -exclude :test_strftime_flags, "needs investigation" -exclude :test_strftime_rational, "needs investigation" -exclude :test_strftime_wide_precision, "needs investigation" -exclude :test_2038, "needs investigation" -exclude :test_future, "needs investigation" -exclude :test_getlocal_utc, "ArgumentError: \"+HH:MM\" or \"-HH:MM\" expected for utc_offset" -exclude :test_marshal_distant_future, "needs investigation" -exclude :test_marshal_distant_past, "needs investigation" -exclude :test_past, "needs investigation" -exclude :test_strftime_seconds_from_epoch, "needs investigation" -exclude :test_strftime_year, "needs investigation" -exclude :test_utc_or_local, "needs investigation" -exclude :test_memsize, "needs investigation" -exclude :test_strftime, "needs investigation" -exclude :test_getlocal_utc, "needs investigation" +exclude :test_2038, "RangeError: bignum too big to convert into `long'" +exclude :test_asctime, "<#> expected but was <#>." +exclude :test_at, "<0> expected but was <1>." +exclude :test_future, "RangeError: bignum too big to convert into `long'" +exclude :test_getlocal_utc, "Expected 2000-01-01 00:00:00 +0000 to be utc?." +exclude :test_inspect, "<\"2000-01-01 00:00:00 1/10000000000 UTC\"> expected but was <\"2000-01-01 00:00:00 UTC\">." exclude :test_marshal_broken_month, "ArgumentError: argument out of range" -exclude :test_strfimte_zoneoffset, "<\"-0000\"> expected but was" +exclude :test_marshal_distant_future, "RangeError: float 5.67E9 out of range of integer" +exclude :test_marshal_distant_past, "ArgumentError: year too big to marshal: 1890" +exclude :test_marshal_nsec_191, "<1969-12-31 19:00:00.123456789 -0500> expected but was <1969-12-31 19:00:00.123456 -0500>." +exclude :test_memsize, "NameError: uninitialized constant GC::INTERNAL_CONSTANTS" exclude :test_new, "Exception(ArgumentError) with message matches to /invalid value for Integer/." -exclude :test_getlocal_utc_offset, "ArgumentError: \"+HH:MM\" or \"-HH:MM\" expected for utc_offset" exclude :test_new_from_string, "ArgumentError expected but nothing was raised." +exclude :test_past, "RangeError: bignum too big to convert into `long'" +exclude :test_plus_type, "TypeError expected but nothing was raised." +exclude :test_reinitialize, "[TypeError] exception expected, not #." +exclude :test_strftime, "expected: /strftime called with empty format string/" +exclude :test_strftime_flags, "<\"SAT JAN 1 00:00:00 2000\"> expected but was <\"SAT Jan 1 00:00:00 2000\">." +exclude :test_strftime_rational, "<\"03/14/1592 6:53:58.97932384626433832795028841971\"> expected but was <\"03/14/1592 6:53:58.97932384600000000000000000000\">." +exclude :test_strftime_seconds_from_epoch, "RangeError: UNIX epoch + 10000000000000000000000 seconds out of range for Time (java.time limitation)" +exclude :test_strftime_too_wide, "padding width 8189 too large (java.lang.IndexOutOfBoundsException) from org.truffleruby.core.time.RubyTimeOutputFormatter.padding(RubyTimeOutputFormatter.java:158)" +exclude :test_strftime_wide_precision, "<28> expected but was <49>." +exclude :test_strftime_year, "RangeError: bignum too big to convert into `long'" +exclude :test_utc_or_local, "NoMethodError: undefined method `*' for :foo:Symbol" diff --git a/test/mri/excludes/TestTimeTZ.rb b/test/mri/excludes/TestTimeTZ.rb index 22ed329db9f2..8eea846387e9 100644 --- a/test/mri/excludes/TestTimeTZ.rb +++ b/test/mri/excludes/TestTimeTZ.rb @@ -1,5 +1,5 @@ -exclude :test_europe_berlin, "[ruby-core:67345] [Bug #10698]" -exclude :test_localtime_zone, "<\"GMT+08:00\"> expected but was" exclude :test_america_los_angeles, "RangeError: bignum too big to convert into `long'" +exclude :test_europe_berlin, "TZ=Europe/Berlin Time.local(2011, 10, 30, 2, 0, 0)." exclude :test_europe_lisbon, "RangeError: bignum too big to convert into `long'" +exclude :test_localtime_zone, "<\"GMT+08:00\"> expected but was <\"PST\">." exclude :test_utc_names, "ArgumentError: \"+HH:MM\", \"-HH:MM\", \"UTC\" or \"A\"..\"I\",\"K\"..\"Z\" expected for utc_offset: utc" diff --git a/test/mri/excludes/TestTimeTZ/DummyTZ.rb b/test/mri/excludes/TestTimeTZ/DummyTZ.rb index a0c907e64bc8..592b21417db5 100644 --- a/test/mri/excludes/TestTimeTZ/DummyTZ.rb +++ b/test/mri/excludes/TestTimeTZ/DummyTZ.rb @@ -6,7 +6,6 @@ exclude :"test_dst?@America/Los_Angeles", "NoMethodError: undefined method `name' for \"UTC\":String" exclude :"test_dst?@Asia/Tokyo", "NoMethodError: undefined method `name' for \"UTC\":String" exclude :"test_dst?@Etc/UTC", "NoMethodError: undefined method `name' for \"UTC\":String" -exclude :test_fractional_second, "TypeError: wrong argument type Object (expected Integer)" exclude :"test_fractional_second@Africa/Ndjamena", "NoMethodError: undefined method `name' for \"UTC\":String" exclude :"test_fractional_second@America/Los_Angeles", "NoMethodError: undefined method `name' for \"UTC\":String" exclude :"test_fractional_second@Asia/Tokyo", "NoMethodError: undefined method `name' for \"UTC\":String" @@ -43,3 +42,4 @@ exclude :"test_to_a@America/Los_Angeles", "NoMethodError: undefined method `name' for \"UTC\":String" exclude :"test_to_a@Asia/Tokyo", "NoMethodError: undefined method `name' for \"UTC\":String" exclude :"test_to_a@Etc/UTC", "NoMethodError: undefined method `name' for \"UTC\":String" +exclude :test_fractional_second, "TypeError: wrong argument type Object (expected Integer)" diff --git a/test/mri/excludes/TestTrace.rb b/test/mri/excludes/TestTrace.rb index 90bdca3cd3ac..02fba7c3251b 100644 --- a/test/mri/excludes/TestTrace.rb +++ b/test/mri/excludes/TestTrace.rb @@ -1,4 +1,4 @@ -exclude :test_trace, "needs investigation" -exclude :test_trace_proc_that_raises_exception, "needs investigation" -exclude :test_trace_string, "needs investigation" -exclude :test_trace_break, "needs investigation" +exclude :test_trace, "<40414> expected but was <0>." +exclude :test_trace_break, "NoMethodError: undefined method `add_trace_func' for #" +exclude :test_trace_proc_that_raises_exception, "RuntimeError expected but nothing was raised." +exclude :test_trace_string, "<:bar> expected but was <0>." diff --git a/test/mri/excludes/TestTracepointObj.rb b/test/mri/excludes/TestTracepointObj.rb index c8331fb9bac7..26c3b55b45c7 100644 --- a/test/mri/excludes/TestTracepointObj.rb +++ b/test/mri/excludes/TestTracepointObj.rb @@ -1,5 +1,5 @@ -exclude :test_after_gc_start_hook_with_GC_stress, "needs investigation" -exclude :test_tracepoint_specify_normal_and_internal_events, "needs investigation" -exclude :test_teardown_with_active_GC_end_hook, "needs investigation" -exclude :test_tracks_objspace_count, "needs investigation" -exclude :test_tracks_objspace_events, "needs investigation" +exclude :test_after_gc_start_hook_with_GC_stress, "| core/kernel.rb:269:in `require': cannot load such file -- c/tracepoint (LoadError)" +exclude :test_teardown_with_active_GC_end_hook, "ArgumentError: unknown event 0x4000000" +exclude :test_tracepoint_specify_normal_and_internal_events, "[TypeError] exception expected, not #." +exclude :test_tracks_objspace_count, "ArgumentError: unknown event 0x1c00000" +exclude :test_tracks_objspace_events, "ArgumentError: unknown event 0x1c00000" diff --git a/test/mri/excludes/TestTranscode.rb b/test/mri/excludes/TestTranscode.rb index 0a9ad0344210..915fb467292f 100644 --- a/test/mri/excludes/TestTranscode.rb +++ b/test/mri/excludes/TestTranscode.rb @@ -1,7 +1,5 @@ -exclude :test_CESU_8, "encoding not defined" -exclude :test_invalid_replace, "needs investigation" -exclude :test_noargument, "needs investigation" -exclude :test_IBM720, "needs investigation" -exclude :test_newline_options, "needs investigation" -exclude :test_encode_xml_multibyte, "needs investigation" -exclude :test_pseudo_encoding_inspect, "<\"\\\"\\\\xFE\\\\xFF\\\\x00\\\\x61\\\\x00\\\\x61\\\\x00\\\\x61\\\"\"> expected but was" +exclude :test_encode_xml_multibyte, "Encoding::CompatibilityError: incompatible encoding regexp match (US-ASCII regexp with UTF-16LE string)" +exclude :test_invalid_replace, "Encoding::CompatibilityError: incompatible character encodings: ISO-2022-JP and UTF-8" +exclude :test_newline_options, "<\"A\\n\" + \"B\\n\" + \"C\"> expected but was <\"A\\n\" + \"B\\r\\n\" + \"C\">." +exclude :test_noargument, "Encoding::InvalidByteSequenceError: \"\\x81\" on UTF-8" +exclude :test_pseudo_encoding_inspect, "<\"\\\"\\\\xFE\\\\xFF\\\\x00\\\\x61\\\\x00\\\\x61\\\\x00\\\\x61\\\"\"> expected but was <\"\\\"\\\\uFEFFaaa\\\"\">." diff --git a/test/mri/excludes/TestUTF16.rb b/test/mri/excludes/TestUTF16.rb index e255e03c2dd2..b43a30d8103f 100644 --- a/test/mri/excludes/TestUTF16.rb +++ b/test/mri/excludes/TestUTF16.rb @@ -1,6 +1,6 @@ -exclude :test_casecmp2, "needs investigation" -exclude :test_hex, "needs investigation" -exclude :test_oct, "needs investigation" -exclude :test_split_awk, "needs investigation" -exclude :test_is_mbc_newline, "needs investigation" -exclude :test_succ, "needs investigation" +exclude :test_casecmp2, "<0> expected but was <-1>." +exclude :test_hex, "Encoding::CompatibilityError expected but nothing was raised." +exclude :test_is_mbc_newline, "Encoding::CompatibilityError: incompatible character encodings: UTF-16LE and UTF-8" +exclude :test_oct, "Encoding::CompatibilityError expected but nothing was raised." +exclude :test_split_awk, "<2> expected but was <3>." +exclude :test_succ, "Encoding::CompatibilityError: incompatible character encodings: UTF-16BE and UTF-8" diff --git a/test/mri/excludes/TestUTF32.rb b/test/mri/excludes/TestUTF32.rb index 665faa3cb0e2..ab094ca2512e 100644 --- a/test/mri/excludes/TestUTF32.rb +++ b/test/mri/excludes/TestUTF32.rb @@ -1 +1 @@ -exclude :test_mbc_newline, "needs investigation" +exclude :test_mbc_newline, "Encoding::CompatibilityError: incompatible character encodings: UTF-32LE and UTF-8" diff --git a/test/mri/excludes/TestUnicodeEscape.rb b/test/mri/excludes/TestUnicodeEscape.rb index 0e7d19832303..a1c550c4c63c 100644 --- a/test/mri/excludes/TestUnicodeEscape.rb +++ b/test/mri/excludes/TestUnicodeEscape.rb @@ -1,2 +1 @@ -exclude :test_fail, "needs investigation" -exclude :test_regexp, "needs investigation" +exclude :test_regexp, " expected to be != to" diff --git a/test/mri/excludes/TestVM.rb b/test/mri/excludes/TestVM.rb index 74f3413e352a..cb60aa29162b 100644 --- a/test/mri/excludes/TestVM.rb +++ b/test/mri/excludes/TestVM.rb @@ -1 +1 @@ -exclude :test_at_exit, "needs investigation" +exclude :test_at_exit, "| core/kernel.rb:269:in `require': cannot load such file -- c/vm/at_exit (LoadError)" diff --git a/test/mri/excludes/TestVMDump.rb b/test/mri/excludes/TestVMDump.rb index e9c78c9d1efa..810bba69a207 100644 --- a/test/mri/excludes/TestVMDump.rb +++ b/test/mri/excludes/TestVMDump.rb @@ -1,3 +1,3 @@ -exclude :test_darwin_invalid_access, "needs investigation" -exclude :test_darwin_invalid_call, "needs investigation" -exclude :test_darwin_segv_in_syscall, "needs investigation" +exclude :test_darwin_invalid_access, "| /Users/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/mxbuild/truffleruby-jvm-ce/lib/truffle/truffle/fiddle_backend.rb:229:in `dlunwrap': NotImplementedError (NotImplementedError)" if RUBY_PLATFORM.include?('darwin') +exclude :test_darwin_invalid_call, "| core/truffle/ffi/pointer.rb:54:in `address=': TruffleRuby doesn't have a case for the org.truffleruby.extra.ffi.PointerNodesFactory$PointerSetAddressNodeFactory$PointerSetAddressNodeGen node with values of type Truffle::FFI::Pointer(org.truffleruby.extra.ffi.RubyPointer) Fiddle::Pointer(org.truffleruby.core.basicobject.RubyBasicObject) (TypeError)" if RUBY_PLATFORM.include?('darwin') +exclude :test_darwin_segv_in_syscall, "pid 86668 killed by SIGABRT (signal 6)." if RUBY_PLATFORM.include?('darwin') diff --git a/test/mri/excludes/TestVariable.rb b/test/mri/excludes/TestVariable.rb index 58d876455f00..ee5df25804b4 100644 --- a/test/mri/excludes/TestVariable.rb +++ b/test/mri/excludes/TestVariable.rb @@ -1,4 +1,4 @@ -exclude :test_cloned_allows_setting_cvar, "<\"Athena\"> expected but was" +exclude :test_cloned_allows_setting_cvar, "<\"Athena\"> expected but was <\"Cronus\">." exclude :test_cvar_overtaken_by_module, "RuntimeError expected but nothing was raised." exclude :test_cvar_overtaken_by_parent_class, "RuntimeError expected but nothing was raised." exclude :test_global_variables, "Expected [] to include :$1." diff --git a/test/mri/excludes/TestWait.rb b/test/mri/excludes/TestWait.rb index 5d2bccd90d0d..5a2b28f8cf2f 100644 --- a/test/mri/excludes/TestWait.rb +++ b/test/mri/excludes/TestWait.rb @@ -1,4 +1 @@ -exclude :"test_wait_for_invalid_fd[To redirect Truffle log output to a file use one of the following options", "* '--log.file=' if the option is passed using a guest language launcher." -exclude :test_wait_for_invalid_fd, "[Errno::EBADF] exception expected, not # expected but was ." diff --git a/test/mri/excludes/TestWeakMap.rb b/test/mri/excludes/TestWeakMap.rb index e85a5e4d3bd4..b1e4e62bf2d3 100644 --- a/test/mri/excludes/TestWeakMap.rb +++ b/test/mri/excludes/TestWeakMap.rb @@ -1 +1 @@ -exclude :test_inspect_garbage, "Expected /\\A\\#\\s\\#<(?:Object|collected):[^:<>]*+>(?:,|>\\z))+/ to match \"# => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #, # => #>\"." diff --git a/test/mri/excludes/TestZlibGzipFile.rb b/test/mri/excludes/TestZlibGzipFile.rb index 711ce3a7c03e..3b0922235ee1 100644 --- a/test/mri/excludes/TestZlibGzipFile.rb +++ b/test/mri/excludes/TestZlibGzipFile.rb @@ -1 +1 @@ -exclude :test_path_tmpfile, "NoMethodError expected but nothing was raised." +exclude :test_path_tmpfile, "Expected \"/tmp/d20240907-1506763-z5tipz\" to be nil." diff --git a/test/mri/excludes/TestZlibGzipReader.rb b/test/mri/excludes/TestZlibGzipReader.rb index 54b617d6f8dc..e69de29bb2d1 100644 --- a/test/mri/excludes/TestZlibGzipReader.rb +++ b/test/mri/excludes/TestZlibGzipReader.rb @@ -1,2 +0,0 @@ -exclude :test_gets, "needs investigation" -exclude :test_gets2, "needs investigation" diff --git a/test/mri/excludes/TestZlibInflate.rb b/test/mri/excludes/TestZlibInflate.rb index 7ca1a5efce17..9695e6b2f249 100644 --- a/test/mri/excludes/TestZlibInflate.rb +++ b/test/mri/excludes/TestZlibInflate.rb @@ -1,2 +1,2 @@ -exclude :test_multithread_inflate, "hangs" exclude :test_multithread_deflate, "hangs" +exclude :test_multithread_inflate, "hangs" diff --git a/test/mri/excludes/Test_ArithSeq.rb b/test/mri/excludes/Test_ArithSeq.rb index b98e98261fe5..408c633fdfdf 100644 --- a/test/mri/excludes/Test_ArithSeq.rb +++ b/test/mri/excludes/Test_ArithSeq.rb @@ -1,4 +1,4 @@ -exclude :test_extract_with_arith_seq, "needs investigation" -exclude :test_extract_with_others, "needs investigation" -exclude :test_extract_with_range, "needs investigation" -exclude :test_beg_len_step, "assert_separately failed with error message" +exclude :test_beg_len_step, "spurious; assert_separately failed with error message pid 1044872 exit 127" +exclude :test_extract_with_arith_seq, "assert_separately failed with error message" +exclude :test_extract_with_others, "assert_separately failed with error message" +exclude :test_extract_with_range, "assert_separately failed with error message" diff --git a/test/mri/excludes/Test_BUG_14834.rb b/test/mri/excludes/Test_BUG_14834.rb index 190422222254..47518537236b 100644 --- a/test/mri/excludes/Test_BUG_14834.rb +++ b/test/mri/excludes/Test_BUG_14834.rb @@ -1 +1 @@ -exclude :test, "needs investigation" +exclude :test, "| core/kernel.rb:269:in `require': cannot load such file -- c/bug_14834 (LoadError)" diff --git a/test/mri/excludes/Test_BUG_3571.rb b/test/mri/excludes/Test_BUG_3571.rb index 7ead8a9ccf6e..4dd12591be84 100644 --- a/test/mri/excludes/Test_BUG_3571.rb +++ b/test/mri/excludes/Test_BUG_3571.rb @@ -1 +1 @@ -exclude :test_block_call_id, "needs investigation" +exclude :test_block_call_id, "| core/kernel.rb:269:in `require': cannot load such file -- c/bug_3571 (LoadError)" diff --git a/test/mri/excludes/Test_DotDot.rb b/test/mri/excludes/Test_DotDot.rb index 3b8c5754abff..e69de29bb2d1 100644 --- a/test/mri/excludes/Test_DotDot.rb +++ b/test/mri/excludes/Test_DotDot.rb @@ -1 +0,0 @@ -exclude :test_load_dot_dot, "needs investigation" diff --git a/test/mri/excludes/Test_EConvAppend.rb b/test/mri/excludes/Test_EConvAppend.rb index 6aa2614d4c43..bc5b9df0279b 100644 --- a/test/mri/excludes/Test_EConvAppend.rb +++ b/test/mri/excludes/Test_EConvAppend.rb @@ -1,2 +1,2 @@ -exclude :test_econv_str_append_valid, "TypeError: wrong argument type Bug::EConv (expected T_DATA)" exclude :test_econv_str_append_broken, "TypeError: wrong argument type Bug::EConv (expected T_DATA)" +exclude :test_econv_str_append_valid, "TypeError: wrong argument type Bug::EConv (expected T_DATA)" diff --git a/test/mri/excludes/Test_FileStat.rb b/test/mri/excludes/Test_FileStat.rb index d0e1010b4269..60a63404f579 100644 --- a/test/mri/excludes/Test_FileStat.rb +++ b/test/mri/excludes/Test_FileStat.rb @@ -1,2 +1,2 @@ -exclude :test_stat_for_fd, "needs investigation" -exclude :test_stat_for_path, "needs investigation" +exclude :test_stat_for_fd, "undefined symbol: rb_stat_new" +exclude :test_stat_for_path, "undefined symbol: rb_stat_new" diff --git a/test/mri/excludes/Test_Integer.rb b/test/mri/excludes/Test_Integer.rb index e0073f8a49b6..17d67276b1ef 100644 --- a/test/mri/excludes/Test_Integer.rb +++ b/test/mri/excludes/Test_Integer.rb @@ -1,2 +1 @@ -exclude :test_fixnum_range, "needs investigation" -exclude :test_positive_pow, "needs investigation" +exclude :test_fixnum_range, "NoMethodError: undefined method `assert_bignum' for #" diff --git a/test/mri/excludes/Test_Load_Protect.rb b/test/mri/excludes/Test_Load_Protect.rb index f9fc926aa472..e98e16c57d0f 100644 --- a/test/mri/excludes/Test_Load_Protect.rb +++ b/test/mri/excludes/Test_Load_Protect.rb @@ -1,2 +1 @@ -exclude :test_load_protect, "needs investigation" -exclude :test_load_protect, "needs investigation" +exclude :test_load_protect, "undefined symbol: rb_load_protect" diff --git a/test/mri/excludes/Test_MyInteger.rb b/test/mri/excludes/Test_MyInteger.rb index 7cbb9ad47978..fdc2ef360715 100644 --- a/test/mri/excludes/Test_MyInteger.rb +++ b/test/mri/excludes/Test_MyInteger.rb @@ -1,2 +1,2 @@ -exclude :test_my_integer_cmp, "needs investigation" -exclude :test_my_integer_to_f, "needs investigation" +exclude :test_my_integer_cmp, "[NotImplementedError] exception expected, not #\"> expected but was <\"<\\xE3\\x81\\x82\\xE3\\x81\\x84\\xE3\\x81\\x86\\xE3\\x81\\x88\\xE3\\x81\\x8A>\">." +exclude :test_quote, "<\"[\\\\n]\"> expected but was <\"[\\n\" + \"]\">." +exclude :test_snprintf_count, "undefined symbol: ruby_snprintf" diff --git a/test/mri/excludes/Test_StringCStr.rb b/test/mri/excludes/Test_StringCStr.rb index 143f040f9ab3..5ad9fbf5b89f 100644 --- a/test/mri/excludes/Test_StringCStr.rb +++ b/test/mri/excludes/Test_StringCStr.rb @@ -1,20 +1,9 @@ -exclude :test_embed, "needs investigation" -exclude :test_frozen, "needs investigation" -exclude :test_long, "needs investigation" -exclude :test_wchar_embed, "needs investigation" -exclude :test_wchar_long, "needs investigation" -exclude :test_embedded_from_heap, "needs investigation" -exclude :test_rb_str_new_frozen_embed, "needs investigation" -exclude :test_shared, "needs investigation" -exclude :test_wchar_chomp!, "needs investigation" -exclude :test_wchar_chop!, "needs investigation" -exclude :test_wchar_delete!, "needs investigation" -exclude :test_wchar_lstrip!, "needs investigation" -exclude :test_wchar_replace, "needs investigation" -exclude :test_wchar_rstrip!, "needs investigation" -exclude :test_wchar_squeeze!, "needs investigation" -exclude :test_wchar_sub!, "needs investigation" -exclude :test_wchar_tr!, "needs investigation" -exclude :test_wchar_tr_s!, "needs investigation" -exclude :test_wchar_aset, "needs investigation" -exclude :test_wchar_aset, "needs investigation" +exclude :test_embed, "<0> expected but was <120>." +exclude :test_embedded_from_heap, "Encoding::CompatibilityError: incompatible character encodings: UTF-16BE and UTF-8" +exclude :test_frozen, "<0> expected but was <120>." +exclude :test_long, "<0> expected but was <120>." +exclude :test_rb_str_new_frozen_embed, "NoMethodError: undefined method `cstr_noembed' for Bug::String:Class" +exclude :test_shared, "JVM crash; SIGSEGV: C [string.so+0x30ec] bug_str_unterminated_substring+0x5c" +exclude :test_wchar_embed, "<0> expected but was <30720>." +exclude :test_wchar_long, "UTF-16BE." +exclude :test_wchar_sub!, 'the given string is not compatible to the expected encoding "UTF_16BE", did you forget to convert it? (java.lang.IllegalArgumentException)' diff --git a/test/mri/excludes/Test_StringCapacity.rb b/test/mri/excludes/Test_StringCapacity.rb index 49e2dd2bf755..27bc4f3c6438 100644 --- a/test/mri/excludes/Test_StringCapacity.rb +++ b/test/mri/excludes/Test_StringCapacity.rb @@ -1,8 +1,8 @@ -exclude :test_capacity_embedded, "needs investigation" -exclude :test_capacity_frozen, "needs investigation" -exclude :test_capacity_fstring, "needs investigation" -exclude :test_capacity_normal, "needs investigation" -exclude :test_capacity_shared, "needs investigation" -exclude :test_io_read, "needs investigation" -exclude :test_literal_capacity, "needs investigation" -exclude :test_s_new_capacity, "needs investigation" +exclude :test_capacity_embedded, "NameError: uninitialized constant GC::INTERNAL_CONSTANTS" +exclude :test_capacity_frozen, "NameError: uninitialized constant GC::INTERNAL_CONSTANTS" +exclude :test_capacity_fstring, "NameError: uninitialized constant GC::INTERNAL_CONSTANTS" +exclude :test_capacity_normal, "NameError: uninitialized constant GC::INTERNAL_CONSTANTS" +exclude :test_capacity_shared, "NameError: uninitialized constant GC::INTERNAL_CONSTANTS" +exclude :test_io_read, "<1048576> expected but was <2162>." +exclude :test_literal_capacity, "NameError: uninitialized constant GC::INTERNAL_CONSTANTS" +exclude :test_s_new_capacity, "<10000> expected but was <0>." diff --git a/test/mri/excludes/Test_StringCoderange.rb b/test/mri/excludes/Test_StringCoderange.rb index cff90aa79a78..220dd9b1c0cb 100644 --- a/test/mri/excludes/Test_StringCoderange.rb +++ b/test/mri/excludes/Test_StringCoderange.rb @@ -1,3 +1,3 @@ -exclude :test_ascii8bit, "needs investigation" -exclude :test_usascii, "needs investigation" -exclude :test_utf8, "needs investigation" +exclude :test_ascii8bit, "undefined symbol: RB_ENC_CODERANGE_SET" +exclude :test_usascii, "undefined symbol: RB_ENC_CODERANGE_SET" +exclude :test_utf8, "undefined symbol: RB_ENC_CODERANGE_SET" diff --git a/test/mri/excludes/Test_StringEllipsize.rb b/test/mri/excludes/Test_StringEllipsize.rb index c8ead900a179..b4b20041a57c 100644 --- a/test/mri/excludes/Test_StringEllipsize.rb +++ b/test/mri/excludes/Test_StringEllipsize.rb @@ -1,4 +1,4 @@ -exclude :test_negative_length, "needs investigation" -exclude :test_longer, "needs investigation" -exclude :test_nonascii, "needs investigation" -exclude :test_shorter, "needs investigation" +exclude :test_longer, "undefined symbol: rb_str_ellipsize" +exclude :test_negative_length, "undefined symbol: rb_str_ellipsize" +exclude :test_nonascii, "undefined symbol: rb_str_ellipsize" +exclude :test_shorter, "undefined symbol: rb_str_ellipsize" diff --git a/test/mri/excludes/Test_StringEncStrBufCat.rb b/test/mri/excludes/Test_StringEncStrBufCat.rb index 04ae9d5ab2a5..35c94339d29f 100644 --- a/test/mri/excludes/Test_StringEncStrBufCat.rb +++ b/test/mri/excludes/Test_StringEncStrBufCat.rb @@ -1,2 +1,2 @@ -exclude :test_unknown, "needs investigation" -exclude :test_str_conv_enc, "needs investigation" +exclude :test_str_conv_enc, "<\"aaa\"> expected but was <\"a\\u0000a\\u0000a\\u0000\">." +exclude :test_unknown, "an assertion for following tests." diff --git a/test/mri/excludes/Test_StringExternalNew.rb b/test/mri/excludes/Test_StringExternalNew.rb index 4e0dd6306bcf..e69de29bb2d1 100644 --- a/test/mri/excludes/Test_StringExternalNew.rb +++ b/test/mri/excludes/Test_StringExternalNew.rb @@ -1 +0,0 @@ -exclude :test_buf_new, "needs investigation" diff --git a/test/mri/excludes/Test_StringNormalize.rb b/test/mri/excludes/Test_StringNormalize.rb index e1d646f90379..8bea21fcd816 100644 --- a/test/mri/excludes/Test_StringNormalize.rb +++ b/test/mri/excludes/Test_StringNormalize.rb @@ -1,4 +1,4 @@ -exclude :test_dont_normalize_hfsplus, "needs investigation" -exclude :test_invalid_sequence, "needs investigation" -exclude :test_normalize, "needs investigation" -exclude :test_not_normalize_kc, "needs investigation" +exclude :test_dont_normalize_hfsplus, "NotImplementedError: normalize_ospath() function is unimplemented on this machine" +exclude :test_invalid_sequence, "NotImplementedError: normalize_ospath() function is unimplemented on this machine" +exclude :test_normalize, "NotImplementedError: normalize_ospath() function is unimplemented on this machine" +exclude :test_not_normalize_kc, "NotImplementedError: normalize_ospath() function is unimplemented on this machine" diff --git a/test/mri/excludes/Test_StringQSort.rb b/test/mri/excludes/Test_StringQSort.rb index d599e8f97381..144f0b282783 100644 --- a/test/mri/excludes/Test_StringQSort.rb +++ b/test/mri/excludes/Test_StringQSort.rb @@ -1,2 +1,2 @@ -exclude :test_qsort, "needs investigation" -exclude :test_qsort_slice, "needs investigation" +exclude :test_qsort, "dyld: missing symbol called" if RUBY_PLATFORM.include?('darwin') +exclude :test_qsort_slice, "dyld: missing symbol called" if RUBY_PLATFORM.include?('darwin') diff --git a/test/mri/excludes/Test_String_Fstring.rb b/test/mri/excludes/Test_String_Fstring.rb new file mode 100644 index 000000000000..020c3a12441c --- /dev/null +++ b/test/mri/excludes/Test_String_Fstring.rb @@ -0,0 +1,5 @@ +exclude :test_rb_enc_interned_str_autoloaded_encoding, "Expected \"#\" to include \"autoload\"." +exclude :test_rb_enc_str_new_autoloaded_encoding, "Expected \"#\" to include \"autoload\"." +exclude :test_singleton_class, "undefined symbol: rb_check_symbol" +exclude :test_singleton_method, "Expected \"test_singleton_methodtest_singleton_methodtest_singleton_method\".respond_to?(:foo) to return true." +exclude :test_subclass, "Expected \"test_subclasstest_subclasstest_subclass\" to be an instance of Test_String_Fstring::S, not String." diff --git a/test/mri/excludes/Test_TypedData.rb b/test/mri/excludes/Test_TypedData.rb index f34a551a6a0f..47ec51d113d2 100644 --- a/test/mri/excludes/Test_TypedData.rb +++ b/test/mri/excludes/Test_TypedData.rb @@ -1,2 +1,2 @@ -exclude :test_deferred_free, "needs investigation" -exclude :test_wrong_argtype, "needs investigation" +exclude :test_deferred_free, "| core/kernel.rb:269:in `require': cannot load such file -- c/typeddata (LoadError)" +exclude :test_wrong_argtype, "Expected Exception(TypeError) was raised, but the message doesn't match. <\"wrong argument type false (expected typed_data)\"> expected but was <\"wrong argument type FalseClass (expected T_DATA)\">." diff --git a/test/mri/excludes/VariableNameCheckTest.rb b/test/mri/excludes/VariableNameCheckTest.rb index 944d2d8392de..8079f37b2c54 100644 --- a/test/mri/excludes/VariableNameCheckTest.rb +++ b/test/mri/excludes/VariableNameCheckTest.rb @@ -1,2 +1,2 @@ -exclude :test_corrections_include_local_variable_name, "needs investigation" -exclude :test_struct_name_error, "needs investigation" +exclude :test_corrections_include_local_variable_name, "Expected [] to only include :person." +exclude :test_struct_name_error, "ArgumentError: no receiver is available" diff --git a/test/mri/excludes/WebauthnPollerTest.rb b/test/mri/excludes/WebauthnPollerTest.rb new file mode 100644 index 000000000000..dec2499d29b0 --- /dev/null +++ b/test/mri/excludes/WebauthnPollerTest.rb @@ -0,0 +1 @@ +exclude :test_poll_for_otp_pending_sleeps, "spurious; hangs" diff --git a/test/mri/excludes/YAMLStoreTest.rb b/test/mri/excludes/YAMLStoreTest.rb index 9ee1ae72f798..e69de29bb2d1 100644 --- a/test/mri/excludes/YAMLStoreTest.rb +++ b/test/mri/excludes/YAMLStoreTest.rb @@ -1 +0,0 @@ -exclude :test_yaml_store_files_are_accessed_as_binary_files, "needs investigation" diff --git a/tool/jt.rb b/tool/jt.rb index 205c2801e395..e21c7f860d2d 100755 --- a/tool/jt.rb +++ b/tool/jt.rb @@ -43,6 +43,18 @@ METRICS_REPS = Integer(ENV['TRUFFLERUBY_METRICS_REPS'] || 10) DEFAULT_PROFILE_OPTIONS = %w[--cpusampler --cpusampler.Output=flamegraph] +MRI_TEST_RETAG_RETAIN_PATTERNS = [ + /hangs/i, + /slow/i, + /retain-on-retag/, + /OOM/, + /flaky/, + /spurious/, + /transient/, + /if RUBY_PLATFORM/, + /pid \d+ (exit|killed)/, +] + RUBOCOP_INCLUDE_LIST = %w[ lib/cext lib/truffle @@ -503,6 +515,8 @@ def sh(*args) end if status.success? || continue_on_failure + $LAST_SH_STATUS = status + if capture out else @@ -1365,14 +1379,30 @@ def retag(*args) test_files.each do |test_file| puts '', test_file - test_classes = File.read(test_file).scan(/class\s+([\w:]+)\s*<.+TestCase/).map(&:first) + test_classes = File.read(test_file).scrub.scan(/class\s+([\w:]+)\s*<.+TestCase/).map(&:first) raise "Could not find class inheriting from TestCase in #{test_file}" if test_classes.empty? found_excludes = false test_classes.each do |test_class| prefix = "test/mri/excludes/#{test_class.gsub('::', '/')}" ["#{prefix}.rb", prefix].each do |file| - if File.exist?(file) + if File.exist?(file) && File.file?(file) + lines = File.readlines(file) FileUtils::Verbose.rm_r file + + # We know some tests hang and odds are very good they're going to continue to hang, so let's keep those + # tests as excluded and manually inspect them later. We need to be careful that we're not checking for our + # retains pattern on the test name. Thus, we limit our checks to either the exclusion reason string or a + # conditional guard that applies to the exclusion. + retain = lines.select do |line| + reason_or_guard = line.split(',', 2).last + + MRI_TEST_RETAG_RETAIN_PATTERNS.any? { |pattern| reason_or_guard =~ pattern } + end + + puts 'Retaining:' + puts retain + File.write(file, retain.sort.join) + found_excludes = true end end @@ -1382,12 +1412,17 @@ def retag(*args) next end - puts '1. Tagging tests' - output_file = 'mri_tests.txt' - run_mri_tests(options, [test_file], [], out: output_file, continue_on_failure: true) + process_tests = true + while process_tests + puts '1. Tagging tests' + output_file = 'mri_tests.txt' + run_mri_tests(options, [test_file], [], [:err, :out] => output_file, continue_on_failure: true) - puts '2. Parsing errors' - sh 'ruby', 'tool/parse_mri_errors.rb', output_file + puts '2. Parsing errors' + sh 'ruby', 'tool/parse_mri_errors.rb', output_file, continue_on_failure: true + + process_tests = $LAST_SH_STATUS.exitstatus == 2 + end puts '3. Verifying tests pass' run_mri_tests(options, [test_file], [], use_exec: test_files.size == 1) @@ -1444,7 +1479,7 @@ def retag(*args) script = "#{dir}/bin/#{test_name}" # bin/backtraces relies on being run with an absolute path for __FILE__ script = "#{TRUFFLERUBY_DIR}/#{script}" if test_name == 'backtraces' - run_ruby "-I#{dir}/lib", script, out: output_file + run_ruby "-I#{dir}/lib", script, out: output_file, continue_on_failure: true begin actual = File.read(output_file) expected_file = "#{dir}/expected.txt" diff --git a/tool/parse_mri_errors.rb b/tool/parse_mri_errors.rb index 62b7c4182797..ab0dc3af5664 100755 --- a/tool/parse_mri_errors.rb +++ b/tool/parse_mri_errors.rb @@ -6,63 +6,257 @@ # tool/parse_mri_errors.rb output.txt # or # jt test mri test/mri/tests/rdoc/test_rdoc_token_stream.rb | tool/parse_mri_errors.rb +require 'etc' +require 'fileutils' REASON = ENV['REASON'] +SLOW_TEST_THRESHOLD = 30 +VERY_SLOW_TEST_THRESHOLD = 60 +REPO_ROOT = File.expand_path("../..", __FILE__) +EXCLUDES_DIR = "#{REPO_ROOT}/test/mri/excludes" +RETRY_EXIT_STATUS = 2 -contents = ARGF.read - -load_error_output = "0 tests, 0 assertions, 0 failures, 0 errors, 0 skips" - -summary_regex = /\d+\stests,\s\d+\sassertions,\s\d+\sfailures,\s\d+\serrors,\s\d+\sskips/ -split_errors = contents.split(load_error_output) -if split_errors.size > 1 - puts "split_errors #{split_errors.size}" - err_files = split_errors.map { |e| e.scan(/filesf \[\"(.*)\"\]/).last[0] } - patt = err_files.map { |err| err.split("/mri/")[1] } - - all_tests = contents.scan(/filesf \[\"(.*)\"\]/) - all_tests_patt = all_tests.map { |err| err[0].split("/mri/")[1] } - - non_excluded = all_tests_patt - patt - - puts "# Test index" - - i_hash = Hash[non_excluded.map { |v| [v, true] }] - e_hash = Hash[patt.map { |v| [v, false] }] +# Usually the first line in the error message gives us enough context to quickly identify what caused the failure. +# Sometimes, the first line isn't helpful and we need to look further down. This filter helps us discard unhelpful data. +def should_skip_error?(message) + Regexp.union( + /\[ruby-\w+:\d+\]/i, # MRI bug IDs. + /\[Bug #?\d+\]/i, # MRI bug IDs. + /\[bug:\d+\]/i, # MRI bug IDs. + /pid \d+ exit \d/i, # PID and exit status upon failure. + ).match(message) +end - all_hash = i_hash.merge(e_hash) - all_hash = Hash[all_hash.sort_by{ |k,v| k }] - all_hash.each do |k,v| - if v - puts k - else - puts "# #{k}" - end +def platform_info + if RUBY_PLATFORM.include?('darwin') + cpu_model = `sysctl -n machdep.cpu.brand_string`.strip + elsif RUBY_PLATFORM.include?('linux') + cpu_model = `cat /proc/cpuinfo | grep 'model name' | uniq`.split(':').last.strip + else + cpu_model = 'unknown' end + "#{cpu_model}: ( #{Etc.nprocessors} vCPUs)" end -require 'fileutils' +def exclude_test!(class_name, test_method, error_display, platform = nil) + file = EXCLUDES_DIR + "/" + class_name.split("::").join('/') + ".rb" + prefix = "exclude #{test_method.strip.to_sym.inspect}," -repo_root = File.expand_path("../..", __FILE__) -excludes = "#{repo_root}/test/mri/excludes" + if test_method =~ /(linux|darwin)/ + platform = $1 + end -t = /^((?:\w+::)*\w+)#(.+?)(?:\s*\[(?:[^\]])+\])?:\n(.*)$/ -contents.scan(t) do |class_name, test_method, error| - file = excludes + "/" + class_name.split("::").join('/') + ".rb" - prefix = "exclude #{test_method.strip.to_sym.inspect}" - new_line = "#{prefix}, #{(REASON || error).inspect}\n" + platform_guard = platform ? " if RUBY_PLATFORM.include?('#{platform}')" : '' + new_line = "#{prefix} #{(REASON || error_display).inspect}#{platform_guard}\n" FileUtils.mkdir_p(File.dirname(file)) lines = File.exist?(file) ? File.readlines(file) : [] # we need the ',' to handle a case when one test name is a substring of another test name - if i = lines.index { |line| line.start_with?(prefix + ",") } + if i = lines.index { |line| line.start_with?(prefix) } puts "already excluded: #{class_name}##{test_method}" lines[i] = new_line else puts "adding exclude: #{class_name}##{test_method}" lines << new_line end + + # The test method name in the tag may have characters that can't appear in a symbol literal without quoting. However, + # the presence of the quotation marks causes the sorting to look a little funny. Such tags will appear at the front + # of the list because of lexicographic ordering. However, we'd prefer to have an alphabetic ordering based on the + # name of the method. So, we extract the name from each symbol and sort them that way. + lines.sort_by! { |line| line.match(/^exclude :"?(.*?)"?,/)[1] } + File.write(file, lines.join) end + +module Patterns + # Sample: + # + # [101/125] TestM17N#test_string_inspect_encoding + # truffleruby: an internal exception escaped out of the interpreter, + # please report it to https://github.com/oracle/truffleruby/issues + # + # ``` + # (java.lang.AssertionError) + # from org.truffleruby.core.string.StringNodes$CharacterPrintablePrimitiveNode.isCharacterPrintable(StringNodes.java:3102) + # + # Extracts: ['TestM17N', 'test_string_inspect_encoding', ' (java.lang.AssertionError) from org.truffleruby.core.string.StringNodes$CharacterPrintablePrimitiveNode.isCharacterPrintable(StringNodes.java:3102)'] + ESCAPED_EXCEPTION = /^\[\s*\d+\/\d+\] ((?:\w+::)*\w+)#(\w+)\n.*?```\n(.*?\n.*?)\n/m + + # Sample: + # + # [ 7/13] TestNum2int#test_num2ll# + # # A fatal error has been detected by the Java Runtime Environment: + # # + # # SIGSEGV (0xb) at pc=0x00000001049c29b8, pid=68349, tid=6151 + # # + # # JRE version: OpenJDK Runtime Environment GraalVM CE 24-dev+11.1 (24.0+11) (build 24+11-jvmci-b01) + # # Java VM: OpenJDK 64-Bit Server VM GraalVM CE 24-dev+11.1 (24+11-jvmci-b01, mixed mode, sharing, tiered, jvmci, jvmci compiler, compressed oops, compressed class ptrs, g1 gc, bsd-aarch64) + # # Problematic frame: + # # V [libjvm.dylib+0x9be9b8] Unsafe_GetDouble(JNIEnv_*, _jobject*, _jobject*, long)+0x13c + # + # Extracts: ['TestNum2int', 'test_num2ll', 'SIGSEGV', 'V [libjvm.dylib+0x9be9b8] Unsafe_GetDouble(JNIEnv_*, _jobject*, _jobject*, long)+0x13c'] + JVM_CRASH = /^\[\s*\d+\/\d+\] ((?:\w+::)*\w+)#(\w+)\s*#\n# A fatal error has been detected.*?(?:\n#)+\s+(SIG\w+).*?Problematic frame:\n#\s+(.+?)\n/m + + # Sample: [19/21] TestSH#test_strftimetest/mri/tests/runner.rb: TestSH#test_strftime: symbol lookup error: /home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/mxbuild/truffleruby-jvm-ce/lib/mri/date_core.so: undefined symbol: rb_str_format + # Extracts: ['TestSH', 'test_strftimetest', 'rb_str_format'] + # + # Sample: [1/3] TestBignum_Big2str#test_big2str_generictest/mri/tests/runner.rb: TestBignum_Big2str#test_big2str_generic: symbol lookup error: /home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/.ext/c/bignum.so: undefined symbol: rb_big2str_generic + # Extracts: ['TestBignum_Big2str', 'test_big2str', 'rb_big2str_generic'] + MISSING_SYMBOL = / ((?:\w+::)*\w+)#(\w+): symbol lookup error.*? undefined symbol: (\w+)/ + + # Sample: [1/4] TestThreadInstrumentation#test_join_counters/home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/mxbuild/truffleruby-jvm-ce/bin/ruby: symbol lookup error: /home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/.ext/c/thread/instrumentation.so: undefined symbol: rb_internal_thread_add_event_hook + # Extracts: ['TestThreadInstrumentation', 'test_join', 'rb_internal_thread_add_event_hook'] + SYMBOL_LOOKUP_ERROR = / ((?:\w+::)*\w+)#(\w+?)(?:\/.*?)?: symbol lookup error.*? undefined symbol: (\w+)/ + + # Sample: [ 35/123] TestFileExhaustive#test_expand_path_hfsdyld[32447]: missing symbol called + # Extracts: ['TestFileExhaustive', 'test_expand_path_hfs', 'missing symbol called'] + DYLD_MISSING_SYMBOL = / ((?:\w+::)*\w+)#(\w+?)dyld\[\d+\]: (.*)/ + + # Sample: [ 6/39] TestSocket_UNIXSocket#test_addr = 0.02 s + # Extracts: ['TestSocket_UNIXSocket', 'test_addr', '0.02'] + TEST_EXECUTION_TIME = /^\[\s*\d+\/\d+\] ((?:\w+::)*\w+)#(.+?) = (\d+\.\d+) s/ + + # Too many examples to list. Take a look at the generated mri_tests.txt file when you use `jt retag`. + TEST_FAILURE = /^\s+\d+\) (Error|Failure|Timeout):\n((?:\w+::)*\w+)#(.+?)(?:\s*\[(?:[^\]])+\])?:?\n(.*?)\n$/m +end + +def process_fatal_errors!(contents) + # If we have an exception escape the interpreter, it will have caused the TruffleRuby process to abort. The test + # results will likely be truncated. We'll attempt to figure out what test was running when the exception occurred + # and tag it. Then we'll let the caller know that they should retry tagging by exiting with a particular status code. + contents.scan(Patterns::ESCAPED_EXCEPTION) do |class_name, test_method, exception_message| + exclude_test!(class_name, test_method, exception_message.sub(/\n\s+/, ' ')) + + exit RETRY_EXIT_STATUS + end + + # In rare cases a bug in TruffleRuby or GraalVM can result in the process crashing. We'll attempt to parse out the + # signal type and the problematic frame to write the exclusion message, and then retry tagging so any other tests + # have the opportunity to run. + contents.scan(Patterns::JVM_CRASH) do |class_name, test_method, error_type, source| + exclude_test!(class_name, test_method, "JVM crash; #{error_type}: #{source}") + + exit RETRY_EXIT_STATUS + end + + # If we're running a test that relies on a C symbol we haven't implemented, the process will exit informing us that + # the symbol was undefined. We want to parse that out, tag the associated test, and then retry tagging so any other + # tests have the opportunity to run. + contents.scan(Patterns::MISSING_SYMBOL) do |class_name, test_method, missing_symbol| + exclude_test!(class_name, test_method, "undefined symbol: #{missing_symbol}") + + exit RETRY_EXIT_STATUS + end + + # In some cases the output format is a little different when an undefined symbol is encountered. We treat this as a + # separate case to keep the regular expression simpler. Since this could overlap with the other symbol lookup error + # case, this one must appear second. Otherwise, the extracted method could be incorrect. + # + # In this case, the interpreter path is printed instead of the path to the runner. And it is attached to the test + # method name with no space between them. Additionally, the method name isn't printed twice as it is when the runner + # path is printed, so we're forced to have to extract the method name that's joined to the interpreter path3. + # Fortunately, the path is absolute so we do have a delimiter character we can use. + contents.scan(Patterns::SYMBOL_LOOKUP_ERROR) do |class_name, test_method, missing_symbol| + exclude_test!(class_name, test_method, "undefined symbol: #{missing_symbol}") + + exit RETRY_EXIT_STATUS + end + + # We've observed on macOS that encountering undefined symbols presents yet another format to parse. Unfortunately, in + # this situation the message may not include what the symbol is. But, we can still extract the error message and tag + # the test for reprocessing. + contents.scan(Patterns::DYLD_MISSING_SYMBOL) do |class_name, test_method, dyld_message| + exclude_test!(class_name, test_method, "dyld: #{dyld_message}", 'darwin') + + exit RETRY_EXIT_STATUS + end +end + +def process_test_failures!(contents) + contents.scan(Patterns::TEST_FAILURE) do |error_type, class_name, test_method, error| + if error_type == 'Timeout' + exclude_test!(class_name, test_method, "retain-on-retag; test timed out") + next + end + + error_lines = error.split("\n") + index = 0 + + while should_skip_error?(error_lines[index]) + index += 1 + end + + error_display = error_lines[index] + + # Mismatched expectations span two lines. It's much more useful if they're combined into one message. + if error_display =~ /expected but was/ + index += 1 + error_display << ' ' + error_lines[index] + + # Mismatched exception messages span three lines. It's much more useful if they're combined into one message. + elsif error_display =~ /but the message doesn't match/ + error_display << ' ' + error_lines[index + 1..].join(' ') + index = error_lines.size + + # Handle exceptions by reading the message up until the backtrace. + elsif error_display =~ /Exception raised:/ + while (line = error_lines[index + 1]) !~ /Backtrace:/ + index += 1 + error_display << ' ' << line.strip + end + + # Assertion errors are more useful with the first line of the backtrace. + elsif error_display&.include?('java.lang.AssertionError') + index += 1 + error_display << ' ' << error_lines[index ] + + # As a catch-all, any message ending with a colon likely has more context on the next line. + elsif error_display&.end_with?(':') + index += 1 + error_display << ' ' << error_lines[index] + end + + # Generated Markdown code blocks span multiple lines. It's much more useful if they're combined into one message. + if error_display =~ /```/ + index += 1 + + begin + until (line = error_lines[index]) =~ /```/ + error_display << line << "\n" + index += 1 + end + + error_display << line + rescue + error_display = "needs investigation; multi-line code block" + end + end + + if error_display.to_s.strip.empty? + error_display = "needs investigation" + end + + exclude_test!(class_name, test_method, error_display) + end +end + +def process_slow_tests!(contents) + test_ruby_version = contents.match(/ruby -v: (.*)/)[1].strip + + contents.scan(Patterns::TEST_EXECUTION_TIME) do |class_name, test_method, execution_time| + if execution_time.to_f > SLOW_TEST_THRESHOLD + prefix = execution_time.to_f > VERY_SLOW_TEST_THRESHOLD ? "very slow" : "slow" + message = "#{prefix}: #{execution_time}s on #{test_ruby_version} with #{platform_info}" + + exclude_test!(class_name, test_method, message) + end + end +end + +contents = ARGF.read.scrub.gsub("[ruby] WARNING StackOverflowError\n", '') +process_fatal_errors!(contents) +process_test_failures!(contents) +process_slow_tests!(contents) \ No newline at end of file