Skip to content

Commit 71f3910

Browse files
authored
[clang][lit] mkdir before mkstemp in is_filesystem_case_insensitive() (llvm#131036)
In the CMake build test_exec_root already exists here, but not in the gn build, which causes this to fail.
1 parent 7d7b58b commit 71f3910

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clang/test/lit.cfg.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ def have_host_clang_repl_cuda():
261261

262262

263263
def is_filesystem_case_insensitive():
264+
os.makedirs(config.test_exec_root, exist_ok=True)
264265
handle, path = tempfile.mkstemp(prefix="case-test", dir=config.test_exec_root)
265266
isInsensitive = os.path.exists(
266267
os.path.join(os.path.dirname(path), os.path.basename(path).upper())

0 commit comments

Comments
 (0)