Skip to content

Commit 3408558

Browse files
committed
Exclude failing MRI tests
EvalTest.rb - bug in C rb_eval_string function Reline/Test.rb - cannot reproduce locally TestAutoload.rb - needs investigation TestCoverage.rb - .start method accepts arguments now TestEncoding.rb - MRI specific TestException.rb - needs investigation TestGc.rb - GC.stat_heap isn't implemented TestRefinement.rb - bug in refinements, masked by Syntax error because method one-line syntax is used (def foo() = ...) TestRegexp.rb - #timeout/#timeout= not implemented TestSyntax.rb - test_script_lines_encoding - needs investigation, it seems the feature (-Ke option to set default encoding EUC-JP) works - test_class_module_Object_ancestors - should be fixed on our side TestTRICK2022.rb - requires files from <ruby repo>/sample/trick2022 that aren't synched/imported TestThreadInstrumentation.rb - a new C function rb_internal_thread_add_event_hook is not implemented TestTimeout.rb - needs investigation Test_ArithSeq.rb - missing C function rb_arithmetic_sequence_beg_len_step TestString.rb - exception message contains original global variable name even when an alias accessed TestIRB/TestContext.rb - cannot reproduce locally TestRipper/Lexer.rb - cannot reproduce locally TestRipper/Sexp.rb - cannot reproduce locally
1 parent 4c05942 commit 3408558

19 files changed

+48
-0
lines changed

test/mri/excludes/EvalTest.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
exclude :test_rb_eval_string, "NameError: undefined local variable or method `_a' for Truffle::CExt:Module"

test/mri/excludes/Reline/Test.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
exclude :test_dumb_terminal, "<\"Reline::GeneralIO\"> expected but was"

test/mri/excludes/TestAutoload.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
exclude :test_source_location, "needs investigation"
22
exclude :test_threaded_accessing_inner_constant, "Exception raised:"
3+
exclude :test_autoload_parent_namespace, "expected: /\\/some_const.rb to define SomeNamespace::SomeConst but it didn't/"

test/mri/excludes/TestCoverage.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,7 @@
2929
exclude :test_coverage_suspendable, "pid 271590 exit 1"
3030
exclude :test_double_suspend, "pid 271610 exit 1"
3131
exclude :test_coverage_supported, "NoMethodError: undefined method `supported?' for Coverage:Module"
32+
exclude :test_eval_coverage, "pid 28392 exit 1"
33+
exclude :test_tag_break_with_branch_coverage, "pid 28394 exit 1"
34+
exclude :test_coverage_ensure_if_return, "pid 28398 exit 1"
35+
exclude :test_coverage_in_main_script, "pid 28399 exit 1"

test/mri/excludes/TestEncoding.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
exclude :test_replicate, "needs investigation"
44
exclude :test_singleton, "needs investigation"
55
exclude :test_extra_encoding, "needs investigation"
6+
exclude :test_exceed_encoding_table_size, "Failed assertion, no message given."

test/mri/excludes/TestException.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,4 @@
4646
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\"."
4747
exclude :test_syntax_error_path, "NoMethodError: undefined method `path' for #<SyntaxError:0x6282d8>"
4848
exclude :test_detailed_message, "NoMethodError: undefined method `detailed_message' for #<RuntimeError: message>"
49+
exclude :test_syntax_error_detailed_message, "pid 32232 exit 1"

test/mri/excludes/TestGc.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@
1919
exclude :test_stat_heap_constraints, "NoMethodError: undefined method `stat_heap' for GC:Module"
2020
exclude :test_stat_heap_all, "NoMethodError: undefined method `stat_heap' for GC:Module"
2121
exclude :test_latest_gc_info_need_major_by, "NameError: uninitialized constant GC::OPTS"
22+
exclude :test_thrashing_for_young_objects, "NoMethodError: undefined method `stat_heap' for GC:Module"
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
exclude :test_echo_on_assignment, "<\"=> 1\\n\" + \"=> 2\\n\" + \"=> 3\\n\" + \"=> 4\\n\"> expected but was"
2+
exclude :test_omit_multiline_on_assignment, "<\"=> \\n\" +"
3+
exclude :test_omit_on_assignment, "<\"=> \\n\" +"
4+
exclude :test_assignment_expression_with_local_variable, "a /1;x=1#/: should be an assignment expression"

test/mri/excludes/TestObjSpace.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,6 @@
3232
exclude :test_dump_array, "Expected \"{\\\"address\\\":\\\"0x2d9048\\\",\\\"class\\\":\\\"0xa18\\\",\\\"memsize\\\":1,\\\"flags\\\":{},\\\"type\\\":\\\"ARRAY\\\",\\\"length\\\":0}\" to include \"\\\"length\\\":0, \\\"embedded\\\":true\"."
3333
exclude :test_dump_includes_slot_size, "NameError: uninitialized constant GC::INTERNAL_CONSTANTS"
3434
exclude :test_dump_shapes, "NoMethodError: undefined method `dump_shapes' for ObjectSpace:Module"
35+
exclude :test_load_allocation_path_load, "<1> expected but was"
36+
exclude :test_dump_objects_dumps_page_slot_sizes, "<\"true\"> expected but was"
37+
exclude :test_load_allocation_path_compile_file, "NameError: uninitialized constant RubyVM"

test/mri/excludes/TestRefinement.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@
1414
exclude :test_refined_class, "TruffleRuby does not guarantee refinement list ordering"
1515
exclude :test_prepend_into_refinement, "TypeError expected but nothing was raised."
1616
exclude :test_include_into_refinement, "TypeError expected but nothing was raised."
17+
exclude :test_refined_protected_methods, "assert_separately failed with error message"

test/mri/excludes/TestRegexp.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,13 @@
4343
exclude :test_match_data_deconstruct, "NoMethodError: undefined method `deconstruct' for #<MatchData \"foobarbaz\">"
4444
exclude :test_linear_time_p, "NoMethodError: undefined method `linear_time?' for Regexp:Class"
4545
exclude :test_match_data_deconstruct_keys, "NoMethodError: undefined method `deconstruct_keys' for #<MatchData \"foobarbaz\">"
46+
exclude :test_extended_comment_invalid_escape_bug_18294, "assert_separately failed with error message"
47+
exclude :test_timeout_nil, "NoMethodError: undefined method `timeout=' for Regexp:Class"
48+
exclude :test_timeout_shorter_than_global, "NoMethodError: undefined method `timeout=' for Regexp:Class"
49+
exclude :test_cache_optimization_square, "NoMethodError: undefined method `timeout=' for Regexp:Class"
50+
exclude :test_timeout_corner_cases, "NoMethodError: private method `timeout' called for //:Regexp"
51+
exclude :test_timeout_longer_than_global, "NoMethodError: undefined method `timeout=' for Regexp:Class"
52+
exclude :test_cache_optimization_exponential, "NoMethodError: undefined method `timeout=' for Regexp:Class"
53+
exclude :test_s_timeout_corner_cases, "NoMethodError: private method `timeout' called for Regexp:Class"
54+
exclude :test_bug_19467, "NoMethodError: undefined method `timeout=' for Regexp:Class"
55+
exclude :test_s_timeout, "NoMethodError: undefined method `timeout=' for Regexp:Class"

test/mri/excludes/TestRipper/Lexer.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
exclude :test_lexer_scan_with_syntax_error, ""

test/mri/excludes/TestRipper/Sexp.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,10 @@
33
exclude :test_pattern_matching_439, "needs investigation"
44
exclude :test_params_mlhs, "transient"
55
exclude :test_pattern_matching_216, " case 0; in *a,b,c; end ."
6+
exclude :test_pattern_matching_402, " case 0; in [a]; end ."
7+
exclude :test_pattern_matching_234, " case 0; in *,a; end ."
8+
exclude :test_pattern_matching_166, " case 0; in a; end ."
9+
exclude :test_pattern_matching_171, " case 0; in a,; end ."
10+
exclude :test_pattern_matching_371, " case 0; in A[a]; end ."
11+
exclude :test_pattern_matching_321, " case 0; in 0 => a; end ."
12+
exclude :test_pattern_matching_183, " case 0; in a,b; end ."

test/mri/excludes/TestString.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,4 @@
3131
exclude :test_rindex, "Encoding::CompatibilityError: incompatible character encodings: UTF-8 and ASCII-8BIT"
3232
exclude :test_byteindex, "Encoding::CompatibilityError: incompatible character encodings: UTF-8 and ASCII-8BIT"
3333
exclude :test_index, "Encoding::CompatibilityError: incompatible character encodings: UTF-8 and ASCII-8BIT"
34+
exclude :test_fs_setter, "Expected Exception(TypeError) was raised, but the message doesn't match."

test/mri/excludes/TestSyntax.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,5 @@
5959
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'."
6060
exclude :test_anonymous_rest_forwarding, "/home/eregon/code/truffleruby-ws/truffleruby/test/mri/tests/ruby/test_syntax.rb:145:in `test_anonymous_rest_forwarding'."
6161
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'."
62+
exclude :test_script_lines_encoding, "pid 42586 exit 0."
63+
exclude :test_class_module_Object_ancestors, "TypeError: 1:Integer is not a class"

test/mri/excludes/TestTRICK2022.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
exclude :test_03_mame, "pid 20544 exit 1"
2+
exclude :test_02_tompng, "pid 20563 exit 1"
3+
exclude :test_01_tompng, "pid 20581 exit 1"
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
exclude :test_join_counters, "Polyglot::ForeignException: External LLVMFunction rb_internal_thread_add_event_hook cannot be found."
2+
exclude :test_thread_instrumentation_unregister, "Polyglot::ForeignException: External LLVMFunction rb_internal_thread_add_event_hook cannot be found."
3+
exclude :test_thread_instrumentation, "Polyglot::ForeignException: External LLVMFunction rb_internal_thread_add_event_hook cannot be found."
4+
exclude :test_thread_instrumentation_fork_safe, "Polyglot::ForeignException: External LLVMFunction rb_internal_thread_add_event_hook cannot be found."

test/mri/excludes/TestTimeout.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@
66
exclude :test_handle_interrupt, "needs investigation"
77
exclude :test_rescue_exit, "needs investigation"
88
exclude :test_skip_rescue, "needs investigation"
9+
exclude :test_threadgroup, "<\"[]\"> expected but was"

test/mri/excludes/Test_ArithSeq.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
exclude :test_extract_with_arith_seq, "needs investigation"
22
exclude :test_extract_with_others, "needs investigation"
33
exclude :test_extract_with_range, "needs investigation"
4+
exclude :test_beg_len_step, "assert_separately failed with error message"

0 commit comments

Comments
 (0)