Commit 174b54c
[ruby/rubygems] Add a Mutex to prevent a bug on Ruby 3.2:
- There are failing tests on Ruby 3.2 due to an expecation that
checks wheter stderr is empty. In this case, stderr outputs a
warning from Ruby "warning: loading in progress, circular require
considered harmful", but this is not true.
This is a bug in Ruby 3.2 that I also encountered in ruby/rubygems#9100 (comment)
The problem is that Ruby 3.2 wrongly output this warning when
multiple threads try to require a file at the same time.
See https://bugs.ruby-lang.org/issues/19415 which was fixed in Ruby
3.2.2.
I opted to add a Mutex, as otherwise users on Ruby 3.2 will have this
warning output.
ruby/rubygems@713dd5c0e11 parent ac3b237 commit 174b54c
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
521 | 522 | | |
522 | 523 | | |
523 | 524 | | |
524 | | - | |
| 525 | + | |
525 | 526 | | |
526 | 527 | | |
527 | 528 | | |
| |||
0 commit comments