[flang][driver] Use --match-full-lines in tests for `-test-io`
authorAndrzej Warzynski <andrzej.warzynski@arm.com>
Mon, 2 Nov 2020 09:34:27 +0000 (09:34 +0000)
committerAndrzej Warzynski <andrzej.warzynski@arm.com>
Mon, 2 Nov 2020 10:00:42 +0000 (10:00 +0000)
commit1ed2ca68191fb280161ee8f8cd080640db6be710
treed6756c2b2f93197e0c041ae17fb48c95e1ad70c2
parentd0beda1b66617cda8a1f54978fca72832496b1fb
[flang][driver] Use --match-full-lines in tests for `-test-io`

Use `--match-full-lines` to make sure that FileCheck doesn't match the
output against the `CHECK` lines (which, like other comments, are also
printed).

More specifically, we want to make sure that the following `check` in the
input file:
```
! CHECK: <some-fortran-input>
```
is matched by FileCheck with `<some-fortran-input>` in the generated
output. Without `--match-full-lines`, that check-line will be matched
with `!CHECK:  <some-fortran-input>` instead (which is also
printed together with other contents of the file).

Adding `--match-full-lines` makes the tests stricter and this change
revealed that some `check`s were passing only because that flag was
missing. These are updated accordingly.

Reviewed By: CarolineConcatto, sameeranjoshi

Differential Revision: https://reviews.llvm.org/D90306
flang/test/Frontend/input-output-file.f90
flang/test/Frontend/multiple-input-files.f90