pch.exp: Delete $bname.h before copying into it.

* gcc.dg/pch/pch.exp: Delete $bname.h before copying into it.
	* g++.dg/pch/pch.exp: Likewise.

From-SVN: r63047
This commit is contained in:
Geoffrey Keating 2003-02-18 18:26:06 +00:00 committed by Geoffrey Keating
parent e17aafd170
commit 59d22bc54e
3 changed files with 7 additions and 2 deletions

View 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

View 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 ""

View 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 ""