[llvm] [llvm-lit] Resolve env subcommand required error (PR #98414)

James Henderson via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 7 01:26:23 PDT 2024


================
@@ -9,35 +9,43 @@
 
 # CHECK: -- Testing: 16 tests{{.*}}
 
-# CHECK: FAIL: shtest-env :: env-args-last-is-assign.txt ({{[^)]*}})
+# CHECK: PASS: shtest-env :: env-args-last-is-assign.txt ({{[^)]*}})
 # CHECK: env FOO=1
 # CHECK: # executed command: env FOO=1
-# CHECK: # | Error: 'env' requires a subcommand
-# CHECK: # error: command failed with exit status: {{.*}}
+# CHECK-NOT: {{^[^#]}}
----------------
jh7370 wrote:

I don't think what you've said makes sense. @arichardson asked for a `CHECK-NOT: # error:` not an additional `CHECK: # error:`. My concern is that you don't really understand what he suggested, which in turn suggests you don't really understand how the testing works. Is that the case?

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


More information about the llvm-commits mailing list