From 29cbc8fb6b2d253a9916fae905ae5387cad7ecbd Mon Sep 17 00:00:00 2001 From: Julian Scheid Date: Fri, 13 Dec 2024 08:35:04 +0100 Subject: [PATCH] Skip test_stream_writer_subprocess on Windows --- test/test_writer.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/test_writer.rb b/test/test_writer.rb index b6dd6c85..34463fde 100755 --- a/test/test_writer.rb +++ b/test/test_writer.rb @@ -380,6 +380,8 @@ def test_stream_writer_push_null_value_with_key end def test_stream_writer_subprocess + skip if RbConfig::CONFIG['host_os'] =~ /(mingw|mswin)/ + Open3.popen3("/bin/bash", "-c", "cat > /dev/null") do |stdin, _stdout, _stderr, _wait_thr| w = Oj::StreamWriter.new(stdin, :indent => 0) w.push_array()