[clang][lit] mkdir before mkstemp in is_filesystem_case_insensitive() (#131036)

In the CMake build test_exec_root already exists here, but not in the gn
build, which causes this to fail.
This commit is contained in:
Arthur Eubanks 2025-03-18 13:19:41 -07:00 committed by GitHub
parent 7d7b58bc5d
commit 71f3910409
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -261,6 +261,7 @@ if platform.system() not in ["Darwin", "Fuchsia"]:
def is_filesystem_case_insensitive():
os.makedirs(config.test_exec_root, exist_ok=True)
handle, path = tempfile.mkstemp(prefix="case-test", dir=config.test_exec_root)
isInsensitive = os.path.exists(
os.path.join(os.path.dirname(path), os.path.basename(path).upper())