| 1 | Description: Skip GC.compact examples on s390x |
| 2 | Author: Simon Quigley <[email protected]> |
| 3 | Bug-Debian: https://bugs.debian.org/1142853 |
| 4 | Origin: vendor |
| 5 | Forwarded: not-needed |
| 6 | Last-Update: 2026-08-01 |
| 7 | --- |
| 8 | --- a/spec/spec_helper.rb |
| 9 | +++ b/spec/spec_helper.rb |
| 10 | @@ -28,4 +28,14 @@ RSpec.configure do |config| |
| 11 | config.default_formatter = 'doc' if config.files_to_run.one? |
| 12 | config.order = :random |
| 13 | Kernel.srand config.seed |
| 14 | + |
| 15 | + if RUBY_PLATFORM.include?("s390x") |
| 16 | + config.around(:each) do |example| |
| 17 | + if example.metadata[:description] == "supports GC compaction" |
| 18 | + skip "GC.compact hangs intermittently on s390x (Debian #1142853)" |
| 19 | + else |
| 20 | + example.run |
| 21 | + end |
| 22 | + end |
| 23 | + end |
| 24 | end |