| Issue |
115053
|
| Summary |
check-clang invoked with lower-cased path resulting in failing tests
|
| Labels |
clang
|
| Assignees |
|
| Reporter |
PhilippRados
|
I'm working on MacOs.
Running `ninja -Cbuild check-clang` failed tests which work fine when run manually using `llvm-lit`.
These new tests complained that `specified path differs in case from file name on disk`.
The last output of `check-clang` was:
```
FAILED: tools/clang/test/CMakeFiles/check-clang /Users/me/documents/coding/llvm-project/build/tools/clang/test/CMakeFiles/check-clang
cd /Users/me/documents/coding/llvm-project/build/tools/clang/test && /Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/bin/python3.9 /Users/me/documents/coding/llvm-project/build/./bin/llvm-lit -sv --param USE_Z3_SOLVER=0 /Users/me/documents/coding/llvm-project/build/tools/clang/test
```
The path is `/Users/me/documents/coding/llvm-project` instead of the previous path (the command worked fine a couple of days ago) which was `/Users/me/Documents/coding/llvm-project`.
Something changed the casing of the `Documents` folder.
When running the command manually (instead of doing `ninja -Cbuild check-clang`) the tests passed as expected:
```
cd /Users/me/Documents/coding/llvm-project/build/tools/clang/test && /Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/bin/python3.9 /Users/me/Documents/coding/llvm-project/build/./bin/llvm-lit -sv --param USE_Z3_SOLVER=0 /Users/me/documents/coding/llvm-project/build/tools/clang/test
```
This path is being set in the CMakeLists.txt from the `CMAKE_CURRENT_BINARY_DIR` variable but I don't know where/how this is being set so I can't say if this is a problem with the build system or if something changed on my system that caused the value of this variable to change.
Any solutions to fixes are appreciated.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs