https://github.com/aeubanks created https://github.com/llvm/llvm-project/pull/131036
In the CMake build test_exec_root already exists here, but not in the gn build, which causes this to fail. >From 6ab707eec90cbe1d8a8f5ddf19765f514b275095 Mon Sep 17 00:00:00 2001 From: Arthur Eubanks <aeuba...@google.com> Date: Wed, 12 Mar 2025 21:42:47 +0000 Subject: [PATCH] [clang][lit] mkdir before mkstemp in is_filesystem_case_insensitive() In the CMake build test_exec_root already exists here, but not in the gn build, which causes this to fail. --- clang/test/lit.cfg.py | 1 + 1 file changed, 1 insertion(+) diff --git a/clang/test/lit.cfg.py b/clang/test/lit.cfg.py index 9820ddd1f14af..074167fa6cad3 100644 --- a/clang/test/lit.cfg.py +++ b/clang/test/lit.cfg.py @@ -253,6 +253,7 @@ def have_host_clang_repl_cuda(): def is_filesystem_case_insensitive(): + os.mkdir(config.test_exec_root) 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()) _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits