]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[testsuite, Fortran] Apply DejaGnu 1.4.4 work-around also to 'gfortran.dg/coarray...
authorThomas Schwinge <thomas@codesourcery.com>
Thu, 21 Mar 2019 19:17:12 +0000 (20:17 +0100)
committerThomas Schwinge <tschwinge@gcc.gnu.org>
Thu, 21 Mar 2019 19:17:12 +0000 (20:17 +0100)
See trunk r215293.  This unifies all 'dg-compile-aux-modules' instances.

gcc/testsuite/
PR fortran/56408
* gfortran.dg/coarray/caf.exp (dg-compile-aux-modules): Workaround
missing nexted dg-test call support in dejaGNU 1.4.4.

trunk r269848

From-SVN: r269850

gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/coarray/caf.exp

index ca849083d7f406fb85b80eee2d3f9ed3ce84ab22..5e6c1971413f620c103dc581e5274f40c723cb90 100644 (file)
@@ -1,5 +1,9 @@
 2019-03-21  Thomas Schwinge  <thomas@codesourcery.com>
 
+       PR fortran/56408
+       * gfortran.dg/coarray/caf.exp (dg-compile-aux-modules): Workaround
+       missing nexted dg-test call support in dejaGNU 1.4.4.
+
        PR fortran/29383
        * gfortran.dg/ieee/ieee.exp (DEFAULT_FFLAGS): Set the same as in
        other '*.exp' files.
index edac7dc981f07c69b859862e008e8ee768c8d1a7..be5cf27935e6d4df6cd764ea4bd6765c2a95dcf6 100644 (file)
@@ -54,8 +54,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
+    }
 }
 
 # Add -latomic only where supported.  Assume built-in support elsewhere.