[flang-commits] [PATCH] D136479: [flang] Extend test_errors.py to test warnings and explanatory messages

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Fri Oct 21 11:30:42 PDT 2022


klausler created this revision.
klausler added reviewers: PeteSteinfeld, kiranchandramohan.
klausler added a project: Flang.
Herald added a subscriber: jdoerfert.
Herald added a reviewer: sscalpone.
Herald added a project: All.
klausler requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added a subscriber: sstefan1.

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.


https://reviews.llvm.org/D136479

Files:
  flang/test/Semantics/OpenMP/omp-copying.f90
  flang/test/Semantics/OpenMP/omp-nested-target.f90
  flang/test/Semantics/bindings01.f90
  flang/test/Semantics/dosemantics03.f90
  flang/test/Semantics/forall01.f90
  flang/test/Semantics/io10.f90
  flang/test/Semantics/kinds05.f90
  flang/test/Semantics/kinds05b.f90
  flang/test/Semantics/long-name.f90
  flang/test/Semantics/resolve108.f90
  flang/test/Semantics/resolve37.f90
  flang/test/Semantics/resolve60.f90
  flang/test/Semantics/test_errors.py

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D136479.469705.patch
Type: text/x-patch
Size: 16268 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20221021/539180f0/attachment-0001.bin>


More information about the flang-commits mailing list