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

via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 7 10:22:03 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 apologize for the misunderstanding. Thank you for clarifying @arichardson's request.

To address your concerns accurately, I understand that the suggestion was to use CHECK-NOT: # error: rather than an additional CHECK: # error:. This ensures that the expected output does not contain any unexpected error messages, improving the reliability and precision of the tests. I have added this to my recent commit. 

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


More information about the llvm-commits mailing list