Skip to content

Commit

Permalink
Retag MRI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
andrykonchin committed Oct 18, 2024
1 parent 11488fc commit 337326c
Show file tree
Hide file tree
Showing 1,005 changed files with 16,853 additions and 7,771 deletions.
2 changes: 0 additions & 2 deletions test/mri/excludes/CGIUtilPureRubyTest.rb
Original file line number Diff line number Diff line change
@@ -1,2 +0,0 @@
exclude :test_cgi_escapeHTML_with_invalid_byte_sequence, "NameError: uninitialized constant CGI::Escape"
exclude :test_cgi_unescapeHTML_with_invalid_byte_sequence, "NameError: uninitialized constant CGI::Escape"
7 changes: 4 additions & 3 deletions test/mri/excludes/Complex_Test.rb
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
exclude :test_Complex_with_exception, "Exception raised: <RuntimeError>"
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, "very slow: 1645.20s on truffleruby 24.2.0-dev-76574fc8*, like ruby 3.3.5, Interpreted JVM [x86_64-darwin23] with Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz: ( 16 vCPUs)"
exclude :test_canonicalize_internal, "NoMethodError: undefined method `+' for #<#<Class:0x538>:0x558 @real=false>"
exclude :test_canonicalize_internal, "NoMethodError: undefined method `+' for #<#<Class:0x498>:0x4b8 @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_conv, "Expected (1+0i) (oid=1464) to be the same as (1+0i) (oid=1480)."
exclude :test_div, "Expected (1/1) to be integer?."
exclude :test_expt, "<(-3+4i)> expected but was <(-3.0+4.000000000000002i)>."
exclude :test_expt_for_special_angle, "Expected NaN to not be nan?."
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: <#<NoMethodError: undefined method `<' for nil:NilClass>>"
Expand Down
13 changes: 7 additions & 6 deletions test/mri/excludes/Fiddle/TestClosure.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
exclude :test_argument_errors, "needs investigation"
exclude :test_block_caller, "NoMethodError: undefined method `freed?' for #<Fiddle::Closure::BlockCaller:0x10ac5b8>"
exclude :test_bool, "NoMethodError: undefined method `freed?' for #<#<Class:0x3e8>:0x408>"
exclude :test_call, "NoMethodError: undefined method `freed?' for #<#<Class:0x10ac478>:0x10ac498>"
exclude :test_const_string, "needs investigation"
exclude :test_conversion_char, "needs investigation"
exclude :test_conversion_int, "NoMethodError: undefined method `freed?' for #<#<Class:0x10ac4d8>:0x10ac508>"
exclude :test_conversion_long, "needs investigation"
exclude :test_conversion_long_long, "needs investigation"
exclude :test_conversion_short, "needs investigation"
Expand All @@ -8,11 +13,7 @@
exclude :test_conversion_unsigned_long, "needs investigation"
exclude :test_conversion_unsigned_long_long, "needs investigation"
exclude :test_conversion_unsigned_short, "needs investigation"
exclude :test_type_symbol, "needs investigation"
exclude :test_const_string, "needs investigation"
exclude :test_free, "NoMethodError: undefined method `freed?' for #<Fiddle::Closure:0x10ac3c8>"
exclude :test_returner, "NoMethodError: undefined method `freed?' for #<#<Class:0x10ac408>:0x10ac438>"
exclude :test_call, "NoMethodError: undefined method `freed?' for #<#<Class:0x10ac478>:0x10ac498>"
exclude :test_conversion_int, "NoMethodError: undefined method `freed?' for #<#<Class:0x10ac4d8>:0x10ac508>"
exclude :test_memsize_ruby_dev_42480, "NoMethodError: undefined method `freed?' for #<Fiddle::Closure:0x10ac558>"
exclude :test_block_caller, "NoMethodError: undefined method `freed?' for #<Fiddle::Closure::BlockCaller:0x10ac5b8>"
exclude :test_returner, "NoMethodError: undefined method `freed?' for #<#<Class:0x10ac408>:0x10ac438>"
exclude :test_type_symbol, "needs investigation"
19 changes: 10 additions & 9 deletions test/mri/excludes/Fiddle/TestImport.rb
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
exclude :test_io, "needs investigation"
exclude :test_sizeof, "needs investigation"
exclude :test_strcpy, "needs investigation"
exclude :test_struct, "needs investigation"
exclude :test_unsigned_result, "needs investigation"
exclude :test_value, "needs investigation"
exclude :test_gettimeofday, "needs investigation"
exclude :test_io, "needs investigation"
exclude :test_malloc, "needs investigation"
exclude :test_nested_struct_alignment_is_not_its_size, "needs investigation"
exclude :test_sizeof, "needs investigation"
exclude :test_sizeof_bool, "NameError: uninitialized constant Fiddle::Importer::TYPE_CONST_STRING"
exclude :test_sizeof_int64_t, "NameError: uninitialized constant Fiddle::Importer::TYPE_CONST_STRING"
exclude :"test_sizeof_long long", "needs investigation"
exclude :test_sizeof_uint64_t, "NameError: uninitialized constant Fiddle::Importer::TYPE_CONST_STRING"
exclude :"test_sizeof_ulong long", "NameError: uninitialized constant Fiddle::Importer::TYPE_CONST_STRING"
exclude :test_strcpy, "needs investigation"
exclude :test_struct, "needs investigation"
exclude :test_struct_array_assignment, "needs investigation"
exclude :test_struct_memory_access, "needs investigation"
exclude :test_struct_nested_struct_members, "needs investigation"
Expand All @@ -18,6 +20,5 @@
exclude :test_struct_nested_struct_replace_entire_array_with_different_struct, "needs investigation"
exclude :test_struct_ptr_array_subscript_multiarg, "needs investigation"
exclude :test_union_nested_struct_members, "needs investigation"
exclude :test_sizeof_int64_t, "NameError: uninitialized constant Fiddle::Importer::TYPE_CONST_STRING"
exclude :"test_sizeof_ulong long", "NameError: uninitialized constant Fiddle::Importer::TYPE_CONST_STRING"
exclude :test_sizeof_uint64_t, "NameError: uninitialized constant Fiddle::Importer::TYPE_CONST_STRING"
exclude :test_unsigned_result, "needs investigation"
exclude :test_value, "needs investigation"
17 changes: 9 additions & 8 deletions test/mri/excludes/Fiddle/TestPointer.rb
Original file line number Diff line number Diff line change
@@ -1,16 +1,23 @@
exclude :test_malloc_free_func_int, "needs investigation"
exclude :test_null_pointer, "needs investigation"
exclude :test_aref_aset, "needs investigation"
exclude :test_can_read_write_memory, "NoMethodError: undefined method `write' for Fiddle::Pointer:Class"
exclude :test_cmp, "needs investigation"
exclude :test_cptr_to_int, "needs investigation"
exclude :test_equals, "needs investigation"
exclude :test_free, "needs investigation"
exclude :test_free=, "needs investigation"
exclude :test_free_with_func, "needs investigation"
exclude :test_free_with_no_func, "needs investigation"
exclude :test_freed?, "needs investigation"
exclude :test_inspect, "needs investigation"
exclude :test_malloc_block, "needs investigation"
exclude :test_malloc_block_no_free, "needs investigation"
exclude :test_malloc_free_func, "needs investigation"
exclude :test_malloc_free_func_int, "needs investigation"
exclude :test_malloc_subclass, "needs investigation"
exclude :test_minus, "needs investigation"
exclude :test_not_equals, "needs investigation"
exclude :test_null?, "needs investigation"
exclude :test_null_pointer, "needs investigation"
exclude :test_plus, "needs investigation"
exclude :test_ref_ptr, "needs investigation"
exclude :test_size, "needs investigation"
Expand All @@ -22,9 +29,3 @@
exclude :test_to_s, "needs investigation"
exclude :test_to_str, "needs investigation"
exclude :test_to_value, "needs investigation"
exclude :test_malloc_block_no_free, "needs investigation"
exclude :test_free_with_func, "needs investigation"
exclude :test_free_with_no_func, "needs investigation"
exclude :test_freed?, "needs investigation"
exclude :test_malloc_block, "needs investigation"
exclude :test_malloc_subclass, "needs investigation"
1 change: 0 additions & 1 deletion test/mri/excludes/JSONCommonInterfaceTest.rb
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
exclude :test_dump, "SystemStackError: stack level too deep"
1 change: 0 additions & 1 deletion test/mri/excludes/JSONParserTest.rb
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
exclude :test_nesting, "[JSON::NestingError] exception expected, not #<SystemStackError: stack level too deep"
1 change: 0 additions & 1 deletion test/mri/excludes/Reline/Test.rb
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
exclude :test_dumb_terminal, '<"Reline::GeneralIO"> expected but was <"Reline::ANSI">'
1 change: 0 additions & 1 deletion test/mri/excludes/TC_Set.rb
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
exclude :test_eq, "needs investigation"
24 changes: 12 additions & 12 deletions test/mri/excludes/TestArgf.rb
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
exclude :test_argf, "<\"[\\\"1\\\", 1, \\\"1\\\", 1]\"> expected but was <\"[\\\"1\\\", 1, \\\"3\\\", 1]\">."
exclude :test_close_replace, "hangs"
exclude :test_each_line_chomp, "| <internal:core> core/type.rb:280:in `convert_type': no implicit conversion of Hash into Integer (TypeError)"
exclude :test_each_line_chomp, "Errno::EPIPE: Broken pipe"
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 `<main>': undefined method `inplace_mode=' for #<Truffle::ARGFClass:0xc8> (NoMethodError)"
exclude :test_inplace2, "| -:2:in `<main>': undefined method `inplace_mode=' for #<Truffle::ARGFClass:0xc8> (NoMethodError)"
exclude :test_inplace3, "| truffleruby: the -i option is not implemented"
exclude :test_inplace, "| -:2:in `<main>': undefined method `inplace_mode=' for #<Truffle::ARGFClass:0xb8> (NoMethodError)"
exclude :test_inplace2, "| -:2:in `<main>': undefined method `inplace_mode=' for #<Truffle::ARGFClass:0xb8> (NoMethodError)"
exclude :test_inplace3, "Errno::EPIPE: Broken pipe"
exclude :test_inplace_bug_17117, "needs investigation"
exclude :test_inplace_dup, "| -:2:in `<main>': undefined method `inplace_mode=' for #<Truffle::ARGFClass:0xc8> (NoMethodError)"
exclude :test_inplace_invalid_backup, "[ArgumentError] exception expected, not #<NoMethodError: undefined method `inplace_mode=' for #<Truffle::ARGFClass:0x988>>."
exclude :test_inplace_no_backup, "<[]> expected but was <[\"-:2:in `<main>': undefined method `inplace_mode=' for #<Truffle::ARGFClass:0xc8> (NoMethodError)\"]>."
exclude :test_inplace_dup, "| -:2:in `<main>': undefined method `inplace_mode=' for #<Truffle::ARGFClass:0xb8> (NoMethodError)"
exclude :test_inplace_invalid_backup, "[ArgumentError] exception expected, not #<NoMethodError: undefined method `inplace_mode=' for #<Truffle::ARGFClass:0x8a8>>."
exclude :test_inplace_no_backup, "<[]> expected but was <[\"-:2:in `<main>': undefined method `inplace_mode=' for #<Truffle::ARGFClass:0xb8> (NoMethodError)\"]>."
exclude :test_inplace_nonascii, "| truffleruby: the -i option is not implemented"
exclude :test_inplace_rename_impossible, "Expected /Can't rename .* to .*: .*. skipping file/ to match \"-:2:in `<main>': undefined method `inplace_mode=' for #<Truffle::ARGFClass:0xc8> (NoMethodError)\"."
exclude :test_inplace_stdin, "| -:2:in `<main>': undefined method `inplace_mode=' for #<Truffle::ARGFClass:0xc8> (NoMethodError)"
exclude :test_inplace_stdin2, "| -:2:in `<main>': undefined method `inplace_mode=' for #<Truffle::ARGFClass:0xc8> (NoMethodError)"
exclude :test_inplace_suffix_encoding, "NoMethodError: undefined method `inplace_mode=' for #<Truffle::ARGFClass:0xb08>"
exclude :test_inplace_rename_impossible, "Expected /Can't rename .* to .*: .*. skipping file/ to match \"-:2:in `<main>': undefined method `inplace_mode=' for #<Truffle::ARGFClass:0xb8> (NoMethodError)\"."
exclude :test_inplace_stdin, "| -:2:in `<main>': undefined method `inplace_mode=' for #<Truffle::ARGFClass:0xb8> (NoMethodError)"
exclude :test_inplace_stdin2, "| -:2:in `<main>': undefined method `inplace_mode=' for #<Truffle::ARGFClass:0xb8> (NoMethodError)"
exclude :test_inplace_suffix_encoding, "NoMethodError: undefined method `inplace_mode=' for #<Truffle::ARGFClass:0xa28>"
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 <nil>."
Expand All @@ -24,4 +24,4 @@
exclude :test_readlines_chomp, "TypeError: no implicit conversion of Hash into Integer"
exclude :test_readlines_limit_0, "very slow: 3090.95s on truffleruby 24.2.0-dev-76574fc8*, like ruby 3.3.5, Interpreted JVM [x86_64-darwin23] with Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz: ( 16 vCPUs)"
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/."
exclude :test_unreadable, "Exception(Errno::ENOENT) with message matches to /- \\/b\\/b\\/e\\/\\.tmp\\/bug4274\\-20241017\\-71116\\-oekgxv\\z/."
16 changes: 9 additions & 7 deletions test/mri/excludes/TestArray.rb
Original file line number Diff line number Diff line change
@@ -1,27 +1,29 @@
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_aset_error, "-2147483648 (java.lang.NegativeArraySizeException) from org.truffleruby.core.array.library.ObjectArrayStore$ObjectArrayAllocator.allocate(ObjectArrayStore.java:232)"
exclude :test_assoc, "<[\"pork\", \"porcine\"]> expected but was <nil>."
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_combination_with_callcc, "RuntimeError: Continuations are unsupported on TruffleRuby"
exclude :test_count, "| | | Error while formatting Ruby exception: | <internal:core> core/post.rb:80:in `block in p': stack level too deep (SystemStackError)"
exclude :test_count, "| | | "
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 #<NoMemoryError: failed to allocate memory>."
exclude :test_initialize, "ArgumentError expected but nothing was raised."
exclude :test_insert, "TypeError expected but nothing was raised."
exclude :test_join, "expected: /non-nil value/"
exclude :test_join2, "[ArgumentError] exception expected, not #<SystemStackError: stack level too deep"
exclude :test_join2, "<no message> (java.lang.IndexOutOfBoundsException) from com.oracle.svm.core.jni.functions.JNIFunctions$NewObjectWithObjectArrayArgFunctionPointer.invoke(JNIFunctions.java:-1)"
exclude :test_join_recheck_array_length, "<\"b\"> expected but was <\"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaz\">."
exclude :test_join_recheck_elements_type, "<\"ab012z\"> expected but was <\"abcz\">."
exclude :test_permutation_stack_error, "Exception raised: Exception raised: <#<SystemStackError: stack level too deep from java.lang.StringCoding.implEncodeAsciiArray(StringCoding.java:77)>>"
exclude :test_permutation_stack_error, "assert_separately failed with error message"
exclude :test_permutation_with_callcc, "RuntimeError: Continuations are unsupported on TruffleRuby"
exclude :test_product2, "Exception raised: <#<RangeError: product result is too large>>"
exclude :test_product_with_callcc, "RuntimeError: Continuations are unsupported on TruffleRuby"
exclude :test_rassoc, "<[\"pork\", \"porcine\"]> expected but was <nil>."
exclude :test_reject_with_callcc, "RuntimeError: Continuations are unsupported on TruffleRuby"
exclude :test_repeated_combination_stack_error, "Exception raised: <#<SystemStackError: stack level too deep from java.lang.String.getChars(String.java:1782)>>"
exclude :test_repeated_combination_stack_error, "assert_separately failed with error message"
exclude :test_repeated_combination_with_callcc, "RuntimeError: Continuations are unsupported on TruffleRuby"
exclude :test_repeated_permutation_stack_error, "Exception raised: <#<SystemStackError: stack level too deep from com.oracle.truffle.api.TruffleStackTrace.innerAddStackFrameSlow(TruffleStackTrace.java:353)>>"
exclude :test_repeated_permutation_with_callcc, "RuntimeError: Continuations are unsupported on TruffleRuby"
Expand All @@ -35,7 +37,7 @@
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: <#<SystemStackError: stack level too deep from java.lang.StringCoding.implEncodeAsciiArray(StringCoding.java:77)>>"
exclude :test_sort_with_replace, "assert_separately failed with error message"
exclude :test_times, "[ArgumentError] exception expected, not #<RangeError: new array size too large>."
exclude :test_union, "Failed assertion, no message given."
exclude :test_uniq_bang_with_freeze, "frozen during comparison."
Loading

0 comments on commit 337326c

Please sign in to comment.