[all-commits] [llvm/llvm-project] e32d39: [clang][test] Fix test failures when LLVM_WINDOWS_...
Takuto Ikuta via All-commits
all-commits at lists.llvm.org
Tue Apr 28 03:47:03 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e32d3938f164e951f12e02bdad185d6cf9aa4274
https://github.com/llvm/llvm-project/commit/e32d3938f164e951f12e02bdad185d6cf9aa4274
Author: Takuto Ikuta <tikuta at google.com>
Date: 2026-04-28 (Tue, 28 Apr 2026)
Changed paths:
M clang/test/DebugInfo/Generic/debug-prefix-map.c
M clang/test/Driver/ps4-ps5-linker-win.c
M clang/test/Frontend/absolute-paths-windows.test
M clang/test/Frontend/dependency-gen-windows-duplicates.c
M clang/test/Preprocessor/file_test_windows.c
M clang/test/lit.cfg.py
M clang/unittests/Basic/FileManagerTest.cpp
M clang/unittests/Driver/ToolChainTest.cpp
M clang/unittests/Frontend/ReparseWorkingDirTest.cpp
Log Message:
-----------
[clang][test] Fix test failures when LLVM_WINDOWS_PREFER_FORWARD_SLASH is ON (#193156)
This commit addresses several test failures in Clang that occur on
Windows when
the CMake option -DLLVM_WINDOWS_PREFER_FORWARD_SLASH=ON is enabled.
Key changes:
- unit tests: Normalized expected paths to native style using
llvm::sys::path::native
(Basic/FileManagerTest, Frontend/ReparseWorkingDirTest) or updated
diagnostic matching
to be separator-agnostic (Driver/ToolChainTest).
- regression tests: Updated FileCheck patterns to use flexible regex
{{[/\\\\]}} or
{{[/\\\\]+}} to match both path separator styles.
- absolute-paths-windows.test: Skipped when forward slashes are
preferred because
mklink does not support forward slashes in directory paths and
interprets them
as command-line switches. Added 'windows-prefer-forward-slash' lit
feature.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list