This is an archive of the discontinued LLVM Phabricator instance.

[flang] Fix a test (use %s instead of $s)
ClosedPublic

Authored by awarzynski on Apr 12 2021, 5:38 AM.

Details

Summary

With the typo ($S instead of %s), the driver was expecting
input from stdin. In such cases, it prints:

Enter Fortran source
Use EOF character (^D) to end file

This was piped to FileCheck. Together with the available CHECK-NOT
statement, this was sufficient for the test to pass (incorrectly).

This patch makes sure that the provided input file is used instead of
stdin.

Diff Detail

Event Timeline

awarzynski requested review of this revision.Apr 12 2021, 5:38 AM
awarzynski created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptApr 12 2021, 5:38 AM
This revision is now accepted and ready to land.Apr 12 2021, 5:52 AM
This revision was automatically updated to reflect the committed changes.