Skip to content

tests: fix license exclusion paths on Windows - #4778

Open
dajiaohuang wants to merge 1 commit into
facebook:devfrom
dajiaohuang:codex/fix-license-test-windows
Open

tests: fix license exclusion paths on Windows#4778
dajiaohuang wants to merge 1 commit into
facebook:devfrom
dajiaohuang:codex/fix-license-test-windows

Conversation

@dajiaohuang

Copy link
Copy Markdown

On Windows, tests/test-license.py builds exclusion prefixes with a hard-coded slash. glob returns backslash paths, so the contrib/linux-kernel/test/include exclusion is missed and the test reports the intentionally excluded xxhash.h and unaligned.h files. Use os.sep for the platform-native suffix. Fixes #4777. Tests: python -X utf8 tests/test-license.py; CMake configure and Release build with Visual Studio 18; ctest --test-dir ... -C Release --output-on-failure (fullbench, fuzzer, and zstreamtest passed; playTests disabled by configuration).

@meta-cla meta-cla Bot added the CLA Signed label Sep 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[tests] test-license.py exclusion fails on Windows

1 participant