diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-10-23 03:49:35 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-10-23 03:49:35 +0100 |
commit | 850d399c4f1568d3c6d013d7f4e2e371c0118bd6 (patch) | |
tree | 37fe91f80d4b072d27976558c05df3503c196e85 /dev-ruby/rack-test/files | |
parent | 7b77dd2858b06e4a9367ca16d4c24aacb119b142 (diff) |
gentoo auto-resync : 23:10:2022 - 03:49:35
Diffstat (limited to 'dev-ruby/rack-test/files')
-rw-r--r-- | dev-ruby/rack-test/files/backport-b1084c1-issue-323.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/dev-ruby/rack-test/files/backport-b1084c1-issue-323.patch b/dev-ruby/rack-test/files/backport-b1084c1-issue-323.patch new file mode 100644 index 000000000000..84b3b2307aeb --- /dev/null +++ b/dev-ruby/rack-test/files/backport-b1084c1-issue-323.patch @@ -0,0 +1,29 @@ +https://github.com/rack/rack-test/issues/323 + +From b1084c1f7b04f6bdaad73c9d1ffc1b279af55e78 Mon Sep 17 00:00:00 2001 +From: Jeremy Evans <code@jeremyevans.net> +Date: Wed, 28 Sep 2022 18:33:43 -0700 +Subject: [PATCH] Make the UploadedFile GC finalizer test more reliable on + CRuby + +--- + spec/rack/test/uploaded_file_spec.rb | 6 ++++-- + 1 file changed, 4 insertions(+), 2 deletions(-) + +diff --git a/spec/rack/test/uploaded_file_spec.rb b/spec/rack/test/uploaded_file_spec.rb +index 2cb56ac..67bfbc5 100644 +--- a/spec/rack/test/uploaded_file_spec.rb ++++ b/spec/rack/test/uploaded_file_spec.rb +@@ -69,8 +69,10 @@ def file_path + System.gc + end + else +- c.new(file_path) +- GC.start ++ 50.times do |_i| ++ c.new(file_path) ++ GC.start ++ end + end + + # Due to CRuby's conservative garbage collection, you can never guarantee |