[all-commits] [llvm/llvm-project] 502e76: [flang] Extend test_errors.py to test warnings and...

Peter Klausler via All-commits all-commits at lists.llvm.org
Fri Oct 21 12:44:24 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 502e7690c3c9698a6982a490f6bf92b0fd24d10f
      https://github.com/llvm/llvm-project/commit/502e7690c3c9698a6982a490f6bf92b0fd24d10f
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2022-10-21 (Fri, 21 Oct 2022)

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

  Log Message:
  -----------
  [flang] Extend test_errors.py to test warnings and explanatory messages

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.

Differential Revision: https://reviews.llvm.org/D136479




More information about the All-commits mailing list