commit ce450af5087b95001b003184b8ecc2c9bbf65378 Author: Tobias Burnus Date: Tue Sep 28 09:49:12 2021 +0200 gfortran.dg/include_15.f90: Add dg-prune-output [PR102500] gcc/testsuite/ PR fortran/102500 * gfortran.dg/include_15.f90: Add 'dg-prune-output' to prune -Wmissing-include-dirs output printed or not depending on how the testsuite is run. diff --git a/gcc/testsuite/gfortran.dg/include_15.f90 b/gcc/testsuite/gfortran.dg/include_15.f90 index 068dcef5826..18d91f6cd32 100644 --- a/gcc/testsuite/gfortran.dg/include_15.f90 +++ b/gcc/testsuite/gfortran.dg/include_15.f90 @@ -4,3 +4,6 @@ end ! { dg-warning " /fdaf/: No such file or directory" "" { target *-*-* } 0 } ! { dg-warning " bar: No such file or directory" "" { target *-*-* } 0 } ! { dg-warning " foo/bar: No such file or directory" "" { target *-*-* } 0 } + +! Depending how the testsuite is run, it may or may not print the following warning: +! { dg-prune-output "Warning: finclude: No such file or directory" }