From: Jakub Jelinek Date: Tue, 16 Sep 2014 09:35:00 +0000 (+0200) Subject: re PR fortran/56408 (Fix dependency handling of testsuite/gfortran.dg) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7c943bd87c364895f3a49f6e90fd9c366a3ff945;p=gcc.git re PR fortran/56408 (Fix dependency handling of testsuite/gfortran.dg) PR fortran/56408 * gfortran.dg/dg.exp (dg-compile-aux-modules): Workaround missing nexted dg-test call support in dejaGNU 1.4.4. From-SVN: r215293 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index fdb706a8d8d..4d3c96beee2 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2014-09-16 Jakub Jelinek + + PR fortran/56408 + * gfortran.dg/dg.exp (dg-compile-aux-modules): Workaround + missing nexted dg-test call support in dejaGNU 1.4.4. + 2014-09-15 Andi Kleen * gcc.dg/pg-override.c: New test. diff --git a/gcc/testsuite/gfortran.dg/dg.exp b/gcc/testsuite/gfortran.dg/dg.exp index e8c39231db0..6bd69e6c88d 100644 --- a/gcc/testsuite/gfortran.dg/dg.exp +++ b/gcc/testsuite/gfortran.dg/dg.exp @@ -39,8 +39,18 @@ proc dg-compile-aux-modules { args } { error "dg-set-target-env-var: needs one argument" return } + + set level [info level] + if { [info procs dg-save-unknown] != [list] } { + rename dg-save-unknown dg-save-unknown-level-$level + } + dg-test $gfortran_test_path/[lindex $args 1] "" $gfortran_aux_module_flags - # cleanup-modules isn't intentionally invoked here. + # cleanup-modules is intentionally not invoked here. + + if { [info procs dg-save-unknown-level-$level] != [list] } { + rename dg-save-unknown-level-$level dg-save-unknown + } } # Main loop.