From 09874e90bf4e7850c00552cfee2beb103902a4ad Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Mon, 4 Nov 2024 21:12:49 +0900 Subject: [PATCH] Mingw: Exclude failing tests due to the crt change Mingw crt-git 12.0.0.r369.g0d4221712-1 now prohibits "command line contains characters that are not supported in the active code page". https://sourceforge.net/p/mingw-w64/mingw-w64/ci/0d42217123d3aec0341b79f6d959c76e09648a1e/ Provisionally exclude tests that fail by passing such characters. --- test/.excludes/TestArgf.rb | 9 +++++++++ test/.excludes/TestRubyOptions.rb | 11 +++++++++++ 2 files changed, 20 insertions(+) create mode 100644 test/.excludes/TestArgf.rb create mode 100644 test/.excludes/TestRubyOptions.rb diff --git a/test/.excludes/TestArgf.rb b/test/.excludes/TestArgf.rb new file mode 100644 index 0000000000..8cdda716e0 --- /dev/null +++ b/test/.excludes/TestArgf.rb @@ -0,0 +1,9 @@ +if RUBY_PLATFORM.include?("mingw") + reason = <<~EOS + Mingw crt-git 12.0.0.r369.g0d4221712-1 now prohibits "command line + contains characters that are not supported in the active code page". + https://sourceforge.net/p/mingw-w64/mingw-w64/ci/0d42217123d3aec0341b79f6d959c76e09648a1e/ + EOS + + exclude(:test_inplace_nonascii, reason) +end diff --git a/test/.excludes/TestRubyOptions.rb b/test/.excludes/TestRubyOptions.rb new file mode 100644 index 0000000000..0aad715f60 --- /dev/null +++ b/test/.excludes/TestRubyOptions.rb @@ -0,0 +1,11 @@ +if RUBY_PLATFORM.include?("mingw") + reason = <<~EOS + Mingw crt-git 12.0.0.r369.g0d4221712-1 now prohibits "command line + contains characters that are not supported in the active code page". + https://sourceforge.net/p/mingw-w64/mingw-w64/ci/0d42217123d3aec0341b79f6d959c76e09648a1e/ + EOS + + exclude(:test_chdir, reason) + exclude(:test_locale_codepage, reason) + exclude(:test_command_line_progname_nonascii, reason) +end