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

via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 6 20:55:30 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: {{^[^#]}}
----------------
Harini0924 wrote:

I tested out the suggested change, but encountered an error where the test could not find the expected string "# error:" in the input. Given this issue, I will continue using the current approach with # CHECK-NOT: `{{^[^#]}}`.

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


More information about the llvm-commits mailing list