I have committed the following as obvious at revision r235367. Is it OK to back port it to the gcc-6 branch?
Dominique Index: gcc/testsuite/ChangeLog =================================================================== --- gcc/testsuite/ChangeLog (revision 235364) +++ gcc/testsuite/ChangeLog (working copy) @@ -1,3 +1,8 @@ +2016-04-22 Dominique d'Humieres <domi...@lps.ens.fr> + + * gfortran.dg/submodule_14.f08: Add cleanup-submodules. + * gfortran.dg/submodule_15.f08: Likewise. + 2016-04-22 Richard Biener <rguent...@suse.de> PR tree-optimization/70740 Index: gcc/testsuite/gfortran.dg/submodule_14.f08 =================================================================== --- gcc/testsuite/gfortran.dg/submodule_14.f08 (revision 235364) +++ gcc/testsuite/gfortran.dg/submodule_14.f08 (working copy) @@ -46,4 +46,4 @@ x = 10 if (fcn1 (x) .ne. 0) call abort end - +! { dg-final { cleanup-submodules "test@testson" } } Index: gcc/testsuite/gfortran.dg/submodule_15.f08 =================================================================== --- gcc/testsuite/gfortran.dg/submodule_15.f08 (revision 235364) +++ gcc/testsuite/gfortran.dg/submodule_15.f08 (working copy) @@ -56,3 +56,4 @@ incr = 1 if (a3(i) .ne. 11) call abort end +! { dg-final { cleanup-submodules "a@a_son" } }