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

via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 23 11:19:48 PDT 2024


================
@@ -9,35 +9,35 @@
 
 # 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: {{^[^#]}}
+# CHECK: --
----------------
Harini0924 wrote:

Yes, if the expected lines are sequential and should appear in the exact order without any unexpected lines in between, we can simplify these passing tests using CHECK-NEXT: instead of CHECK-NOT: followed by CHECK. I will change it right now.

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


More information about the llvm-commits mailing list