Skip to content

Commit

Permalink
Retag MRI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
andrykonchin committed Nov 8, 2024
1 parent 7f18d78 commit 326faec
Show file tree
Hide file tree
Showing 231 changed files with 1,768 additions and 1,110 deletions.
1 change: 0 additions & 1 deletion test/mri/capi_tests.list
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ cext-ruby/test_printf.rb
cext-ruby/test_random.rb
cext-ruby/test_recursion.rb
cext-ruby/test_scan_args.rb
cext-ruby/thread/test_instrumentation_api.rb
cext-ruby/time/test_new.rb
cext-ruby/tracepoint/test_tracepoint.rb
cext-ruby/typeddata/test_typeddata.rb
Expand Down
2 changes: 1 addition & 1 deletion test/mri/excludes/Bug/Marshal/TestInternalIVar.rb
Original file line number Diff line number Diff line change
@@ -1 +1 @@
exclude :test_marshal, "needs investigation"
exclude :test_marshal, "expected: /instance variable `E' on class \\S+ is not dumped/"
4 changes: 2 additions & 2 deletions test/mri/excludes/Bug/Marshal/TestUsrMarshal.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
exclude :test_compat, "needs investigation"
exclude :test_incompat, "needs investigation"
exclude :test_compat, "<\"\\x04\\bU:\\x1DBug::Marshal::UsrMarshali/\"> expected but was <\"\">."
exclude :test_incompat, "Exception(ArgumentError) with message matches to \"dump format error\"."
10 changes: 5 additions & 5 deletions test/mri/excludes/Bug/StTable/Test_Update.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
exclude :test_continue, "needs investigation"
exclude :test_delete, "needs investigation"
exclude :test_notfound, "needs investigation"
exclude :test_pass_objects_in_st_table, "needs investigation"
exclude :test_update, "needs investigation"
exclude :test_continue, "undefined symbol: rb_hash_tbl"
exclude :test_delete, "undefined symbol: rb_hash_tbl"
exclude :test_notfound, "undefined symbol: rb_hash_tbl"
exclude :test_pass_objects_in_st_table, "undefined symbol: rb_hash_tbl"
exclude :test_update, "undefined symbol: rb_hash_tbl"
1 change: 0 additions & 1 deletion test/mri/excludes/Bug/Test_ExceptionAT.rb

This file was deleted.

1 change: 0 additions & 1 deletion test/mri/excludes/Bug/Test_ExceptionE.rb

This file was deleted.

2 changes: 0 additions & 2 deletions test/mri/excludes/CGIUtilPureRubyTest.rb

This file was deleted.

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
26 changes: 13 additions & 13 deletions test/mri/excludes/Fiddle/TestCStructEntity.rb
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
exclude :test_aref_pointer, "needs investigation"
exclude :test_aref_pointer_array, "needs investigation"
exclude :test_set_ctypes, "needs investigation"
exclude :test_malloc_block_no_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_malloc_block, "needs investigation"
exclude :test_new_double_free, "needs investigation"
exclude :test_null?, "needs investigation"
exclude :test_size, "needs investigation"
exclude :test_size=, "needs investigation"
exclude :test_aref_pointer, "NotImplementedError: NotImplementedError"
exclude :test_aref_pointer_array, "NotImplementedError: NotImplementedError"
exclude :test_free, "NotImplementedError: NotImplementedError"
exclude :test_free_with_func, "NotImplementedError: NotImplementedError"
exclude :test_free_with_no_func, "NotImplementedError: NotImplementedError"
exclude :test_freed?, "NotImplementedError: NotImplementedError"
exclude :test_malloc_block, "NotImplementedError: NotImplementedError"
exclude :test_malloc_block_no_free, "[ArgumentError] exception expected, not #<NotImplementedError: NotImplementedError>."
exclude :test_new_double_free, "NotImplementedError: NotImplementedError"
exclude :test_null?, "NotImplementedError: NotImplementedError"
exclude :test_set_ctypes, "NotImplementedError: NotImplementedError"
exclude :test_size, "NotImplementedError: NotImplementedError"
exclude :test_size=, "NotImplementedError: NotImplementedError"
2 changes: 1 addition & 1 deletion test/mri/excludes/Fiddle/TestCUnionEntity.rb
Original file line number Diff line number Diff line change
@@ -1 +1 @@
exclude :test_set_ctypes, "needs investigation"
exclude :test_set_ctypes, "NotImplementedError: NotImplementedError"
37 changes: 19 additions & 18 deletions test/mri/excludes/Fiddle/TestClosure.rb
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
exclude :test_argument_errors, "needs investigation"
exclude :test_conversion_char, "needs investigation"
exclude :test_conversion_long, "needs investigation"
exclude :test_conversion_long_long, "needs investigation"
exclude :test_conversion_short, "needs investigation"
exclude :test_conversion_unsigned_char, "needs investigation"
exclude :test_conversion_unsigned_int, "needs investigation"
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_argument_errors, "TypeError expected but nothing was raised."
exclude :test_block_caller, "NoMethodError: undefined method `freed?' for #<Fiddle::Closure::BlockCaller:0x3f8>"
exclude :test_bool, "NoMethodError: undefined method `freed?' for #<#<Class:0x448>:0x468>"
exclude :test_call, "NoMethodError: undefined method `freed?' for #<#<Class:0x488>:0x4a8>"
exclude :test_const_string, "NoMethodError: undefined method `freed?' for #<#<Class:0x4c8>:0x4e8>"
exclude :test_conversion_char, "NoMethodError: undefined method `freed?' for #<#<Class:0x508>:0x538>"
exclude :test_conversion_int, "NoMethodError: undefined method `freed?' for #<#<Class:0x558>:0x588>"
exclude :test_conversion_long, "NoMethodError: undefined method `freed?' for #<#<Class:0x5a8>:0x5d8>"
exclude :test_conversion_long_long, "NoMethodError: undefined method `freed?' for #<#<Class:0x5f8>:0x628>"
exclude :test_conversion_short, "NoMethodError: undefined method `freed?' for #<#<Class:0x648>:0x678>"
exclude :test_conversion_unsigned_char, "NoMethodError: undefined method `freed?' for #<#<Class:0x698>:0x6c8>"
exclude :test_conversion_unsigned_int, "NoMethodError: undefined method `freed?' for #<#<Class:0x6e8>:0x718>"
exclude :test_conversion_unsigned_long, "NoMethodError: undefined method `freed?' for #<#<Class:0x738>:0x768>"
exclude :test_conversion_unsigned_long_long, "NoMethodError: undefined method `freed?' for #<#<Class:0x788>:0x7b8>"
exclude :test_conversion_unsigned_short, "NoMethodError: undefined method `freed?' for #<#<Class:0x7d8>:0x808>"
exclude :test_free, "NoMethodError: undefined method `freed?' for #<Fiddle::Closure:0x838>"
exclude :test_memsize_ruby_dev_42480, "NoMethodError: undefined method `freed?' for #<Fiddle::Closure:0x868>"
exclude :test_returner, "NoMethodError: undefined method `freed?' for #<#<Class:0x888>:0x8b8>"
exclude :test_type_symbol, "NoMethodError: undefined method `freed?' for #<Fiddle::Closure:0x928>"
7 changes: 3 additions & 4 deletions test/mri/excludes/Fiddle/TestFunc.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
exclude :test_qsort1, "needs investigation"
exclude :test_sinf, "needs investigation"
exclude :test_string, "needs investigation"
exclude :test_strtod, "needs investigation"
exclude :test_qsort1, "NoMethodError: undefined method `free' for #<#<Class:0x3d8>:0x3f8>"
exclude :test_string, "NotImplementedError: NotImplementedError"
exclude :test_strtod, "NoMethodError: undefined method `string_pointer_to_native' for Truffle::CExt:Module"
18 changes: 9 additions & 9 deletions test/mri/excludes/Fiddle/TestFunction.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
exclude :test_argument_count, "needs investigation"
exclude :test_argument_errors, "needs investigation"
exclude :test_default_abi, "needs investigation"
exclude :test_last_error, "needs investigation"
exclude :test_name, "needs investigation"
exclude :test_strcpy, "needs investigation"
exclude :test_argument_type_conversion, "needs investigation"
exclude :test_need_gvl?, "needs investigation"
exclude :test_function_as_proc, "NotImplementedError: NotImplementedError"
exclude :test_argument_count, "NoMethodError: undefined method `freed?' for #<#<Class:0x3a8>:0x418>"
exclude :test_argument_errors, "[TypeError] exception expected, not #<NoMethodError: undefined method `map' for 8:Integer>."
exclude :test_argument_type_conversion, "NotImplementedError: #<struct int=8, call_count=0> not implemented"
exclude :test_default_abi, "<:default_abi> expected but was <nil>."
exclude :test_function_as_method, "NotImplementedError: NotImplementedError"
exclude :test_function_as_proc, "NotImplementedError: NotImplementedError"
exclude :test_last_error, "Expected nil to not be nil."
exclude :test_name, "<\"sin\"> expected but was <nil>."
exclude :test_need_gvl?, "ArgumentError: unknown keyword: :need_gvl"
exclude :test_strcpy, "NotImplementedError: NotImplementedError"
25 changes: 12 additions & 13 deletions test/mri/excludes/Fiddle/TestHandle.rb
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
exclude :test_static_sym_unknown, "needs investigation"
exclude :test_sym_unknown, "needs investigation"
exclude :test_disable_close, "needs investigation"
exclude :test_enable_close, "needs investigation"
exclude :test_handle_close, "needs investigation"
exclude :test_handle_close_twice, "needs investigation"
exclude :test_initialize_noargs, "needs investigation"
exclude :test_static_sym, "needs investigation"
exclude :test_sym_closed_handle, "needs investigation"
exclude :test_to_i, "needs investigation"
exclude :test_file_name, "NoMethodError: undefined method `file_name' for #<Fiddle::Handle:0xc63718>"
exclude :test_to_ptr, "NoMethodError: undefined method `to_ptr' for #<Fiddle::Handle:0xc63768>"
exclude :test_sym, "NoMethodError: undefined method `sym_defined?' for #<Fiddle::Handle:0x510208>"
exclude :test_disable_close, "NotImplementedError: NotImplementedError"
exclude :test_enable_close, "NotImplementedError: NotImplementedError"
exclude :test_file_name, "NoMethodError: undefined method `file_name' for #<Fiddle::Handle:0x3e8>"
exclude :test_handle_close, "NotImplementedError: NotImplementedError"
exclude :test_handle_close_twice, "NotImplementedError: NotImplementedError"
exclude :test_static_sym, "NotImplementedError: NotImplementedError"
exclude :test_static_sym_unknown, "[Fiddle::DLError] exception expected, not #<NotImplementedError: NotImplementedError>."
exclude :test_sym, "NoMethodError: undefined method `sym_defined?' for #<Fiddle::Handle:0x4a8>"
exclude :test_sym_closed_handle, "NotImplementedError: NotImplementedError"
exclude :test_sym_unknown, "[Fiddle::DLError] exception expected, not #<NameError: Unknown identifier: fooo>."
exclude :test_to_i, "NotImplementedError: NotImplementedError"
exclude :test_to_ptr, "NoMethodError: undefined method `to_ptr' for #<Fiddle::Handle:0x528>"
43 changes: 22 additions & 21 deletions test/mri/excludes/Fiddle/TestImport.rb
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
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_malloc, "needs investigation"
exclude :test_nested_struct_alignment_is_not_its_size, "needs investigation"
exclude :"test_sizeof_long long", "needs investigation"
exclude :test_struct_array_assignment, "needs investigation"
exclude :test_struct_memory_access, "needs investigation"
exclude :test_struct_nested_struct_members, "needs investigation"
exclude :test_struct_nested_struct_replace_array_element, "needs investigation"
exclude :test_struct_nested_struct_replace_array_element_hash, "needs investigation"
exclude :test_struct_nested_struct_replace_array_element_nil, "needs investigation"
exclude :test_struct_nested_struct_replace_entire_array, "needs investigation"
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_gettimeofday, "NotImplementedError: NotImplementedError"
exclude :test_io, "NotImplementedError: #<IO:fd 8> to pointer"
exclude :test_malloc, "NotImplementedError: NotImplementedError"
exclude :test_nested_struct_alignment_is_not_its_size, "NotImplementedError: NotImplementedError"
exclude :test_sizeof, "NotImplementedError: NotImplementedError"
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_ulong long", "NameError: uninitialized constant Fiddle::Importer::TYPE_CONST_STRING"
exclude :"test_sizeof_long long", "NameError: uninitialized constant Fiddle::Importer::TYPE_CONST_STRING"
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, "NotImplementedError: NotImplementedError"
exclude :test_struct, "NotImplementedError: NotImplementedError"
exclude :test_struct_array_assignment, "NotImplementedError: NotImplementedError"
exclude :test_struct_memory_access, "NotImplementedError: NotImplementedError"
exclude :test_struct_nested_struct_members, "NotImplementedError: NotImplementedError"
exclude :test_struct_nested_struct_replace_array_element, "NotImplementedError: NotImplementedError"
exclude :test_struct_nested_struct_replace_array_element_hash, "NotImplementedError: NotImplementedError"
exclude :test_struct_nested_struct_replace_array_element_nil, "NotImplementedError: NotImplementedError"
exclude :test_struct_nested_struct_replace_entire_array, "NotImplementedError: NotImplementedError"
exclude :test_struct_nested_struct_replace_entire_array_with_different_struct, "NotImplementedError: NotImplementedError"
exclude :test_struct_ptr_array_subscript_multiarg, "NotImplementedError: NotImplementedError"
exclude :test_union_nested_struct_members, "NotImplementedError: NotImplementedError"
exclude :test_unsigned_result, "NotImplementedError: 2147483649 from type -5"
exclude :test_value, "NotImplementedError: NotImplementedError"
4 changes: 2 additions & 2 deletions test/mri/excludes/Fiddle/TestPinned.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
exclude :test_clear, "needs investigation"
exclude :test_pin_object, "needs investigation"
exclude :test_clear, "NameError: uninitialized constant Fiddle::TestPinned::Pinned"
exclude :test_pin_object, "NameError: uninitialized constant Fiddle::TestPinned::Pinned"
61 changes: 31 additions & 30 deletions test/mri/excludes/Fiddle/TestPointer.rb
Original file line number Diff line number Diff line change
@@ -1,30 +1,31 @@
exclude :test_malloc_free_func_int, "needs investigation"
exclude :test_null_pointer, "needs investigation"
exclude :test_aref_aset, "needs investigation"
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_inspect, "needs investigation"
exclude :test_malloc_free_func, "needs investigation"
exclude :test_minus, "needs investigation"
exclude :test_not_equals, "needs investigation"
exclude :test_null?, "needs investigation"
exclude :test_plus, "needs investigation"
exclude :test_ref_ptr, "needs investigation"
exclude :test_size, "needs investigation"
exclude :test_size=, "needs investigation"
exclude :test_to_ptr_io, "needs investigation"
exclude :test_to_ptr_string, "needs investigation"
exclude :test_to_ptr_with_num, "needs investigation"
exclude :test_to_ptr_with_ptr, "needs investigation"
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"
exclude :test_aref_aset, "NoMethodError: undefined method `string_pointer_to_native' for Truffle::CExt:Module"
exclude :test_can_read_write_memory, "NoMethodError: undefined method `write' for Fiddle::Pointer:Class"
exclude :test_cmp, "NotImplementedError: NotImplementedError"
exclude :test_cptr_to_int, "NameError: uninitialized constant Fiddle::NULL"
exclude :test_equals, "NotImplementedError: NotImplementedError"
exclude :test_free, "NotImplementedError: NotImplementedError"
exclude :test_free=, "NotImplementedError: NotImplementedError"
exclude :test_free_with_func, "NotImplementedError: NotImplementedError"
exclude :test_free_with_no_func, "NotImplementedError: NotImplementedError"
exclude :test_freed?, "NotImplementedError: NotImplementedError"
exclude :test_inspect, "NotImplementedError: NotImplementedError"
exclude :test_malloc_block, "NotImplementedError: NotImplementedError"
exclude :test_malloc_block_no_free, "[ArgumentError] exception expected, not #<NotImplementedError: NotImplementedError>."
exclude :test_malloc_free_func, "NotImplementedError: NotImplementedError"
exclude :test_malloc_free_func_int, "<0> expected but was <140149941148512>."
exclude :test_malloc_subclass, "NotImplementedError: NotImplementedError"
exclude :test_minus, "NoMethodError: undefined method `string_pointer_to_native' for Truffle::CExt:Module"
exclude :test_not_equals, "NotImplementedError: NotImplementedError"
exclude :test_null?, "NotImplementedError: NotImplementedError"
exclude :test_null_pointer, "[Fiddle::DLError] exception expected, not #<Truffle::FFI::NullPointerError: invalid memory access at address=0x0>."
exclude :test_plus, "NoMethodError: undefined method `string_pointer_to_native' for Truffle::CExt:Module"
exclude :test_ref_ptr, "NotImplementedError: NotImplementedError"
exclude :test_size, "NotImplementedError: NotImplementedError"
exclude :test_size=, "NotImplementedError: NotImplementedError"
exclude :test_to_ptr_io, "NotImplementedError: NotImplementedError"
exclude :test_to_ptr_string, "NoMethodError: undefined method `string_pointer_to_native' for Truffle::CExt:Module"
exclude :test_to_ptr_with_num, "NotImplementedError: NotImplementedError"
exclude :test_to_ptr_with_ptr, "NotImplementedError: NotImplementedError"
exclude :test_to_s, "NoMethodError: undefined method `string_pointer_to_native' for Truffle::CExt:Module"
exclude :test_to_str, "NoMethodError: undefined method `string_pointer_to_native' for Truffle::CExt:Module"
exclude :test_to_value, "NotImplementedError: NotImplementedError"
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/NameErrorExtensionTest.rb

This file was deleted.

Loading

0 comments on commit 326faec

Please sign in to comment.