pch.exp: Delete $bname.h before copying into it.
authorGeoffrey Keating <geoffk@apple.com>
Tue, 18 Feb 2003 18:26:06 +0000 (18:26 +0000)
committerGeoffrey Keating <geoffk@gcc.gnu.org>
Tue, 18 Feb 2003 18:26:06 +0000 (18:26 +0000)
* gcc.dg/pch/pch.exp: Delete $bname.h before copying into it.
* g++.dg/pch/pch.exp: Likewise.

From-SVN: r63047

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/pch/pch.exp
gcc/testsuite/gcc.dg/pch/pch.exp

index fbf1360915ce379b9fb709fd3aa8e303d47da733..57541bb6f664b329bc46a472903b925bd773b712 100644 (file)
@@ -1,3 +1,8 @@
+2003-02-18  Geoffrey Keating  <geoffk@apple.com>
+
+       * gcc.dg/pch/pch.exp: Delete $bname.h before copying into it.
+       * g++.dg/pch/pch.exp: Likewise.
+
 2003-02-18  Kazu Hirata  <kazu@cs.umass.edu>
 
        * gcc.c-torture/execute/20030209-1.c: Enable the test if
index 5b495e07a9bcb4b866eb4ca348b3b47d721579a0..7a05c74b5abfbe41bc4d00bd7d0a804b5ac55ea4 100644 (file)
@@ -37,7 +37,6 @@ foreach test [lsort [glob -nocomplain $srcdir/$subdir/*.C]] {
     set bname "[file rootname [file tail $test]]"
 
     catch { file delete "$bname.H.pch" }
-    catch { file delete "$bname.H" }
     catch { file delete "$bname.s" }
     catch { file delete "$bname.s-pch" }
 
@@ -48,6 +47,7 @@ foreach test [lsort [glob -nocomplain $srcdir/$subdir/*.C]] {
 
        # For the header files, the default is to precompile.
        set dg-do-what-default precompile
+       catch { file delete "$bname.H" }
        file copy "[file rootname $test].Hs" "$bname.H"
        dg-test -keep-output "$bname.H" $flags ""
 
index 746e8f9601856ee722f4db843472d582a6a2a036..2c817fb51c8a3a45efc5e622229884f01dc298fd 100644 (file)
@@ -37,7 +37,6 @@ foreach test [lsort [glob -nocomplain $srcdir/$subdir/*.c]] {
     set bname "[file rootname [file tail $test]]"
 
     catch { file delete "$bname.h.pch" }
-    catch { file delete "$bname.h" }
     catch { file delete "$bname.s" }
     catch { file delete "$bname.s-pch" }
 
@@ -48,6 +47,7 @@ foreach test [lsort [glob -nocomplain $srcdir/$subdir/*.c]] {
 
        # For the header files, the default is to precompile.
        set dg-do-what-default precompile
+       catch { file delete "$bname.h" }
        file copy "[file rootname $test].hs" "$bname.h"
        dg-test -keep-output "$bname.h" $flags ""