Skip to content

Commit 6982357

Browse files
committed
[GR-48376] Skip spec if scheduling is unfair and we could never look at the other thread's status
1 parent 222e551 commit 6982357

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

spec/truffle/thread/status_spec.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,15 @@
2929
regexp =~ string
3030
end
3131

32+
saw_status = false
3233
while status = t.status
34+
saw_status = true
3335
status.should == "run"
3436
Thread.pass
3537
end
3638
t.join
39+
40+
skip 'unfair scheduling' unless saw_status
3741
end
3842

3943
end

0 commit comments

Comments
 (0)