[llvm] [lit] Implement builtin umask (PR #94621)

Paul T Robinson via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 14 05:24:31 PDT 2024


================
@@ -0,0 +1,18 @@
+# Check the umask command
+
+# RUN: not %{lit} -a -v %{inputs}/shtest-umask | FileCheck -match-full-lines %s
+
+# CHECK: -- Testing: 3 tests{{.*}}
+
+# CHECK-LABEL: FAIL: shtest-umask :: umask-bad-arg.txt ({{[^)]*}})
+# CHECK: umask bad
+# CHECK: # | Error: 'umask': invalid literal {{.*}}
+
+# CHECK-LABEL: FAIL: shtest-umask :: umask-too-many-args.txt ({{[^)]*}})
+# CHECK: umask 0 0
+# CHECK: # | 'umask' supports only one argument
+
+# CHECK: Total Discovered Tests: 3
+# CHECK: {{Passed|Unresolved}}: 1 {{\([0-9]*\.[0-9]*%\)}}
----------------
pogo59 wrote:

Does CI run the lit tests? I downloaded the log and I don't see "shtest-umask" in it.

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


More information about the llvm-commits mailing list