ld: Skip tests on Windows due to path length
Two ld test cases (`pr33265-2` and `pr33265-3`) are skipped on Windows due to maximum path length limitations.
This discussion confirms that specific linker test cases, pr33265-2 and pr33265-3, are expected to fail on Windows. The reason for the failure is the operating system’s default maximum path length limitation of 260 characters, which these tests exceed. Consequently, the tests are skipped on Windows.
- proposer
Acknowledged that two linker tests are expected to fail on Windows due to path length limits, agreeing to skip them.
“Okay.”
- other
Stated that tests `pr33265-2` and `pr33265-3` are expected to fail on Windows due to the default 260-character path length limit.
“These test cases are expected to fail on Windows because by default maximum path length is only 260 characters.”
Technical Tradeoffs
- Skipping tests on certain platforms reduces test suite noise but may hide platform-specific issues.
- Long path names can be problematic on Windows and require careful handling in test case design.
In Details
This brief exchange relates to test suite maintenance for the ld linker. Specifically, two tests (pr33265-2 and pr33265-3) are identified as problematic on Windows platforms. The root cause is the Windows OS limitation on maximum file path lengths (typically 260 characters), which these test cases exceed. As a workaround, the tests are being conditionally skipped on Windows to prevent build failures in the test suite.
- ld
- The GNU linker, responsible for combining object files into executables.
- test suite
- A collection of tests designed to verify the correctness of software.
- path length limitation
- A restriction on the maximum length of a file path that an operating system or filesystem can handle.