From bfae855c82147fb21b38f5cb6c1b3529dbaf308f Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Fri, 25 Sep 2026 08:31:59 +0900 Subject: [PATCH] [ruby/zlib] Check that Zlib::OS_CODE is OS_WIN32 on Windows test_os_code only compared the written os_code with Zlib::OS_CODE itself, so it could not catch OS_CODE falling back to OS_UNIX. https://github.com/ruby/zlib/commit/104cbd525f Co-Authored-By: Claude Opus 5.5 --- test/zlib/test_zlib.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/test/zlib/test_zlib.rb b/test/zlib/test_zlib.rb index 71159a0d990..38f39e5fab0 100644 --- a/test/zlib/test_zlib.rb +++ b/test/zlib/test_zlib.rb @@ -677,6 +677,7 @@ if defined? Zlib assert_equal(Zlib::OS_CODE, f.os_code) end } + assert_equal(Zlib::OS_WIN32, Zlib::OS_CODE) if /mswin|mingw/ =~ RUBY_PLATFORM end def test_orig_name