[PATCH] D83320: Hand port modfile01.f90 from test_modfile.sh to FileCheck

David Truby via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 16 08:10:16 PDT 2020


DavidTruby added inline comments.


================
Comment at: flang/test/Semantics/modfile01.f90:5-6
+! Check that no additional module files have been created.
+! RUN: ls -l %t.dir/*.mod | wc -l | FileCheck --check-prefix=NO_MODFILES %s
+! NO_MODFILES: 4
+
----------------
I think this can be written as:
`RUN: test $(ls-l %t/dir/*.mod | wc -l) -eq 4`
which would avoid the extra check prefix and call to filecheck.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D83320





More information about the llvm-commits mailing list