[llvm] [LIT] replace `lit.util.mkdir` with `pathlib.Path.mkdir` (PR #163948)

Tomohiro Kashiwada via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 22 04:11:05 PDT 2025


================
@@ -1,2 +1,10 @@
 ## Tests glob pattern handling in the mkdir command.
+
+## This mkdir should fail because the `example_file*.input`s are regular files.
 # RUN: not mkdir %S/example_file*.input
+
+# RUN: mkdir %S/example_dir1.new
+# RUN: mkdir %S/example_dir2.new
+
+## This mkdir should succeed (so RUN should fail) because the `example_dir*.new`s are directories already exist.
----------------
kikairoya wrote:

Thanks!

https://github.com/llvm/llvm-project/pull/163948


More information about the llvm-commits mailing list