binutils Newspaper
NOVEMBER 30, 2026
gas — Proposed

gas: testsuite: Fix gas/all/pr27381 test case on Windows/MSYS2.

Test case fix for gas on Windows/MSYS2.

This patch addresses an issue with the gas/all/pr27381 test case on Windows systems using MSYS2. The fix involves updating a regular expression in the .err file to correctly match expected output and replacing the non-existent /etc directory with ./tmpdir to accommodate the Windows environment.

In the Thread 2 participants
  1. Jan Dubiec proposer

    Submitted a patch to fix a gas test case on Windows/MSYS2 by adjusting a regular expression and directory path.

    “This patch fixes the test case by extending the regular expression in pr27381.err accordingly. It also replaces the /etc directory, which does not exist on Windows, with ./tmpdir.”
  2. Alan Modra <amodra@gmail.com> maintainer

    Applied the patch, confirming its acceptance.

    “Applied, thanks.”

Technical Tradeoffs

  • Ensures test suite portability across different operating systems.
  • Minor adjustments to test case files.

In Details

This patch corrects the gas/all/pr27381 test case within the GNU Binutils test suite to function correctly on Windows environments, particularly those using MSYS2. The changes involve modifying gas/all/pr27381.err to adjust a regular expression that was causing test failures due to platform-specific output differences, and updating a hardcoded path from /etc to a more appropriate temporary directory (./tmpdir) for Windows.

For Context
gas
The GNU Assembler, part of the GNU Binutils project, responsible for converting assembly language code into machine code.
testsuite
A collection of tests designed to verify the correctness of a software program.
Windows/MSYS2
MSYS2 is a software distribution and building platform for Windows, providing a Unix-like command-line environment and tools, often used for compiling open-source software on Windows.
regular expression
A sequence of characters that defines a search pattern, used for pattern matching within strings.
Filed Under: assemblertestingWindowsMSYS2