This is an archive of the discontinued LLVM Phabricator instance.

[flang] Port test_any.sh tests to FileCheck: Hand port getsymbols tests
ClosedPublic

Authored by richard.barton.arm on Jun 19 2020, 2:36 AM.

Details

Summary

test_any.sh's FileCheck accepts the CHECK line matches in any order while
FileCheck checks in strict order. Re-order the CHECK lines to source code
order - they come from an ordered datastructure.

Some CHECK lines are sensitive to line number which are fixed up manually.

getsymbols02 had multiple test inputs which had their own EXEC lines.
Consolidate these together in one file.

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald Transcript

getsymbols02 was broken because I forgot the file extension on the Input/... files.
I think it was passing for me because of a dirty working dir and because
'flang <file that does not exist>' returns a 0 exit code. We should definitely fix that.

richard.barton.arm added a project: Restricted Project.Jun 22 2020, 8:51 AM
schweitz accepted this revision.Jun 26 2020, 8:56 AM
This revision is now accepted and ready to land.Jun 26 2020, 8:56 AM
This revision was automatically updated to reflect the committed changes.
flang/test/Semantics/Inputs/getsymbols02-a.f90