This is an archive of the discontinued LLVM Phabricator instance.

[flang] Extend test_errors.py to test warnings and explanatory messages
ClosedPublic

Authored by klausler on Oct 21 2022, 11:30 AM.

Details

Summary

flang/test/Semantics/test_errors,py only compares actual error messages
with expected error messages. Many tests have expected warning messages
in them, but they are not checked.

A forthcoming change adds several new warning and explanatory messages
to the compiler, and these messages must be testable.

So (re-?) enable non-error message checking in test_errors.py and adjust some
existing tests to get them to pass.

Warning messages related to host-specific folding conditions will not
be emitted on all platforms, so they will continue to be ignored.

Diff Detail

Event Timeline

klausler created this revision.Oct 21 2022, 11:30 AM
Herald added a project: Restricted Project. · View Herald Transcript
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.Oct 21 2022, 11:30 AM
PeteSteinfeld accepted this revision.Oct 21 2022, 12:17 PM

All builds and tests correctly and looks good.

Thanks for doing this!

This revision is now accepted and ready to land.Oct 21 2022, 12:17 PM
This revision was landed with ongoing or failed builds.Oct 21 2022, 12:44 PM
This revision was automatically updated to reflect the committed changes.