Commit 59d22bc5 by Geoffrey Keating Committed by Geoffrey Keating

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
parent e17aafd1
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> 2003-02-18 Kazu Hirata <kazu@cs.umass.edu>
* gcc.c-torture/execute/20030209-1.c: Enable the test if * gcc.c-torture/execute/20030209-1.c: Enable the test if
......
...@@ -37,7 +37,6 @@ foreach test [lsort [glob -nocomplain $srcdir/$subdir/*.C]] { ...@@ -37,7 +37,6 @@ foreach test [lsort [glob -nocomplain $srcdir/$subdir/*.C]] {
set bname "[file rootname [file tail $test]]" set bname "[file rootname [file tail $test]]"
catch { file delete "$bname.H.pch" } catch { file delete "$bname.H.pch" }
catch { file delete "$bname.H" }
catch { file delete "$bname.s" } catch { file delete "$bname.s" }
catch { file delete "$bname.s-pch" } catch { file delete "$bname.s-pch" }
...@@ -48,6 +47,7 @@ foreach test [lsort [glob -nocomplain $srcdir/$subdir/*.C]] { ...@@ -48,6 +47,7 @@ foreach test [lsort [glob -nocomplain $srcdir/$subdir/*.C]] {
# For the header files, the default is to precompile. # For the header files, the default is to precompile.
set dg-do-what-default precompile set dg-do-what-default precompile
catch { file delete "$bname.H" }
file copy "[file rootname $test].Hs" "$bname.H" file copy "[file rootname $test].Hs" "$bname.H"
dg-test -keep-output "$bname.H" $flags "" dg-test -keep-output "$bname.H" $flags ""
......
...@@ -37,7 +37,6 @@ foreach test [lsort [glob -nocomplain $srcdir/$subdir/*.c]] { ...@@ -37,7 +37,6 @@ foreach test [lsort [glob -nocomplain $srcdir/$subdir/*.c]] {
set bname "[file rootname [file tail $test]]" set bname "[file rootname [file tail $test]]"
catch { file delete "$bname.h.pch" } catch { file delete "$bname.h.pch" }
catch { file delete "$bname.h" }
catch { file delete "$bname.s" } catch { file delete "$bname.s" }
catch { file delete "$bname.s-pch" } catch { file delete "$bname.s-pch" }
...@@ -48,6 +47,7 @@ foreach test [lsort [glob -nocomplain $srcdir/$subdir/*.c]] { ...@@ -48,6 +47,7 @@ foreach test [lsort [glob -nocomplain $srcdir/$subdir/*.c]] {
# For the header files, the default is to precompile. # For the header files, the default is to precompile.
set dg-do-what-default precompile set dg-do-what-default precompile
catch { file delete "$bname.h" }
file copy "[file rootname $test].hs" "$bname.h" file copy "[file rootname $test].hs" "$bname.h"
dg-test -keep-output "$bname.h" $flags "" dg-test -keep-output "$bname.h" $flags ""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment