<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/115053>115053</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            check-clang invoked with lower-cased path resulting in failing tests
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          PhilippRados
      </td>
    </tr>
</table>

<pre>
    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.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJz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