| 1 | Descriptionscip-debian debian ruby-re2 2.27.0-3 ruby-re2/patches/`skip-gc-compact-on-s390x.patch`#Description.: Skip GC.compact examples on s390x |
| 2 | Authorscip-debian debian ruby-re2 2.27.0-3 ruby-re2/patches/`skip-gc-compact-on-s390x.patch`#Author.: Simon Quigley <[email protected]scip-debian . . . identity/`[email protected]`.> |
| 3 | Bug-Debianscip-debian debian ruby-re2 2.27.0-3 ruby-re2/patches/`skip-gc-compact-on-s390x.patch`#Bug-Debian.: https://bugs.debian.org/1142853scip-debian-bts debian-bts . . 1142853: |
| 4 | Originscip-debian debian ruby-re2 2.27.0-3 ruby-re2/patches/`skip-gc-compact-on-s390x.patch`#Origin.: vendor |
| 5 | Forwardedscip-debian debian ruby-re2 2.27.0-3 ruby-re2/patches/`skip-gc-compact-on-s390x.patch`#Forwarded.: not-needed |
| 6 | Last-Updatescip-debian debian ruby-re2 2.27.0-3 ruby-re2/patches/`skip-gc-compact-on-s390x.patch`#Last-Update.: 2026-08-01 |
| 7 | --- |
| 8 | --- a/spec/spec_helper.rbscip-debian debian ruby-re2 2.27.0-3 ruby-re2/upstream/`spec/spec_helper.rb`: |
| 9 | +++ b/spec/spec_helper.rbscip-debian debian ruby-re2 2.27.0-3 ruby-re2/upstream/`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 |