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

Paul Kirth via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 18 09:50:58 PDT 2024


================
@@ -1 +1,30 @@
-# RUN: env
+# Check Default Environment
+# RUN: env | FileCheck -check-prefix=CHECK-2-EMPTY %s
----------------
ilovepi wrote:

Lets update the prefix here. In the example you drew from there were 2 env uses, so we don't need the `2`. I'd also say you don't need the `CHECK- ` prefix. These comments should apply to all the prefixes in the file.

So, something like the following seems a bit better.
```suggestion
# RUN: env | FileCheck -check-prefix=EMPTY %s
```

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


More information about the llvm-commits mailing list