[PATCH] D118691: Make shtest-format.py CHECK lines more flexible

Paul Robinson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 9 12:41:20 PST 2022


probinson added inline comments.


================
Comment at: llvm/utils/lit/tests/shtest-format.py:19
 # CHECK: Command Output (stderr):
-# CHECK-NEXT: --
-# CHECK-NEXT: cat{{(_64)?(\.exe)?}}: {{cannot open does-not-exist|does-not-exist: No such file or directory}}
+# CHECK: --
+# CHECK: cat{{(_64)?(\.exe)?}}: {{cannot open does-not-exist|does-not-exist: No such file or directory}}
----------------
I think we want to have the test continue to guarantee the `cat` line comes from the correct command, without requiring it to be the first output line.  This should do the trick:
```
CHECK-NEXT: --
CHECK-NOT: --
CHECK: cat{{(_64) yada yada
```


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D118691/new/

https://reviews.llvm.org/D118691



More information about the llvm-commits mailing list