Skip to content

Commit 0dd26d5

Browse files
committed
[GR-38139] Fix several transient issues with MRI tests and fix #owner MRI tests
PullRequest: truffleruby/3302
2 parents 45983e1 + afb9a69 commit 0dd26d5

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

test/mri/excludes/TestHash/TestSubHash.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
exclude :test_ar2st, "mutating Hash during key.hash"
12
exclude :test_ASET_fstring_key, "needs investigation"
23
exclude :test_ASET_fstring_non_literal_key, "needs investigation"
34
exclude :test_NEWHASH_fstring_key, "needs investigation"

test/mri/excludes/TestIO.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,4 @@
7171
exclude :test_fcntl_lock_linux, "needs investigation"
7272
exclude :test_copy_stream_megacontent_nonblock, "needs investigation"
7373
exclude :test_select_memory_leak, "needs investigation"
74+
exclude :test_race_gets_and_close, "transient"

test/mri/excludes/TestSetTraceFunc.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,3 +140,4 @@
140140
exclude :test_tracepoint_with_multithreads, "needs investigation"
141141
exclude :test_while_in_while, "needs investigation"
142142
exclude :test_tracepoint_enable_with_target_line_two_times, "needs investigation"
143+
exclude :test_tracpoint_memory_leak, "transient timeout"

test/mri/tests/ruby/test_method.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1057,8 +1057,8 @@ def test_super_method_removed
10571057

10581058
def test_prepended_public_zsuper
10591059
mod = EnvUtil.labeled_module("Mod") {private def foo; :ok end}
1060-
mods = [mod]
10611060
obj = Object.new.extend(mod)
1061+
mods = [obj.singleton_class]
10621062
class << obj
10631063
public :foo
10641064
end
@@ -1299,7 +1299,7 @@ module M2
12991299
::Object.prepend(M2)
13001300
13011301
m = Object.instance_method(:x)
1302-
assert_equal M, m.owner
1302+
assert_equal M2, m.owner
13031303
end;
13041304
end
13051305

0 commit comments

Comments
 (0)