<commit_before>Patch by MSP-Greg
Changes to allow tests to pass when run parallel on Appveyor.
Changes often involve setting timeouts longer to allow disk I/O
diff --git a/test/ruby/test_file_exhaustive.rb b/test/ruby/test_file_exhaustive.rb
index 4c5540eb4c..767a0c16b6 100644
--- a/test/ruby/test_file_exhaustive.rb
+++ b/test/ruby/test_file_exhaustive.rb
@@ -1311,12 +1311,14 @@ def test_truncate
   end
 
   def test_flock_exclusive
+    time_out = !(/mingw|mswin|bccwin/ !~ RUBY_PLATFORM) ? 0.5 : 0.1
     File.open(regular_file, "r+") do |f|
       f.flock(File::LOCK_EX)
       assert_separately(["-rtimeout", "-", regular_file], "#{<<~begin}#{<<~"end;"}")
       begin
         open(ARGV[0], "r") do |f|
-          Timeout.timeout(0.1) do
+          time_out = !(/mingw|mswin|bccwin/ !~ RUBY_PLATFORM) ? 0.5 : 0.1
+          Timeout.timeout(time_out) do
             assert(!f.flock(File::LOCK_SH|File::LOCK_NB))
           end
         end
@@ -1324,8 +1326,9 @@ def test_flock_exclusive
       assert_separately(["-rtimeout", "-", regular_file], "#{<<~begin}#{<<~"end;"}")
       begin
         open(ARGV[0], "r") do |f|
+          time_out = !(/mingw|mswin|bccwin/ !~ RUBY_PLATFORM) ? 0.5 : 0.1
           assert_raise(Timeout::Error) do
-            Timeout.timeout(0.1) do
+            Timeout.timeout(time_out) do
               f.flock(File::LOCK_SH)
             end
           end
@@ -1342,7 +1345,8 @@ def test_flock_shared
       assert_separately(["-rtimeout", "-", regular_file], "#{<<~begin}#{<<~"end;"}")
       begin
         open(ARGV[0], "r") do |f|
-          Timeout.timeout(0.1) do
+          time_out = !(/mingw|mswin|bccwin/ !~ RUBY_PLATFORM) ? 0.5 : 0.1
+          Timeout.timeout(time_out) do
             assert(f.flock(File::LOCK_SH))
           end
         end
@@ -1351,7 +1355,8 @@ def test_flock_shared
       begin
         open(ARGV[0], "r+") do |f|
           assert_raise(Timeout::Error) do<commit_msg>Update test_file_exhaustive.rb.patch [skip ci]<commit_after>Patch by MSP-Greg
lengtens timeouts for Appveyor parallel testing
diff --git a/test/ruby/test_file_exhaustive.rb b/test/ruby/test_file_exhaustive.rb
index 4c5540eb4c..e3b59bc34b 100644
--- a/test/ruby/test_file_exhaustive.rb
+++ b/test/ruby/test_file_exhaustive.rb
@@ -1316,7 +1316,8 @@ def test_flock_exclusive
       assert_separately(["-rtimeout", "-", regular_file], "#{<<~begin}#{<<~"end;"}")
       begin
         open(ARGV[0], "r") do |f|
-          Timeout.timeout(0.1) do
+          time_out = !(/mingw|mswin|bccwin/ !~ RUBY_PLATFORM) ? 0.5 : 0.1
+          Timeout.timeout(time_out) do
             assert(!f.flock(File::LOCK_SH|File::LOCK_NB))
           end
         end
@@ -1324,8 +1325,9 @@ def test_flock_exclusive
       assert_separately(["-rtimeout", "-", regular_file], "#{<<~begin}#{<<~"end;"}")
       begin
         open(ARGV[0], "r") do |f|
+          time_out = !(/mingw|mswin|bccwin/ !~ RUBY_PLATFORM) ? 0.5 : 0.1
           assert_raise(Timeout::Error) do
-            Timeout.timeout(0.1) do
+            Timeout.timeout(time_out) do
               f.flock(File::LOCK_SH)
             end
           end
@@ -1342,7 +1344,8 @@ def test_flock_shared
       assert_separately(["-rtimeout", "-", regular_file], "#{<<~begin}#{<<~"end;"}")
       begin
         open(ARGV[0], "r") do |f|
-          Timeout.timeout(0.1) do
+          time_out = !(/mingw|mswin|bccwin/ !~ RUBY_PLATFORM) ? 0.5 : 0.1
+          Timeout.timeout(time_out) do
             assert(f.flock(File::LOCK_SH))
           end
         end
@@ -1351,7 +1354,8 @@ def test_flock_shared
       begin
         open(ARGV[0], "r+") do |f|
           assert_raise(Timeout::Error) do
{'fraction_non_alphanumeric': 0.16866485013623977, 'fraction_numerical': 0.045231607629427795, 'mean_word_length': 2.4697542533081287, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6030568', 'n_tokens_mistral': 1497, 'n_tokens_neox': 1391, 'n_words': 236}