[pph] Relativize pph test commands. (issue4445076)

Lawrence Crowl crowl@google.com
Fri Apr 29 21:18:00 GMT 2011


Copy the pph map file from the source area to the run area to avoid
absolute paths to the map file.  These were causing tests to not match
up in the test comparison scripts.

Index: gcc/testsuite/ChangeLog.pph

2011-04-29  Lawrence Crowl  <crowl@google.com>

	* g++.dg/pph/pph.exp: Copy pph map file to avoid absolute paths in
	test commands.


Index: gcc/testsuite/g++.dg/pph/pph.exp
===================================================================
--- gcc/testsuite/g++.dg/pph/pph.exp	(revision 173124)
+++ gcc/testsuite/g++.dg/pph/pph.exp	(working copy)
@@ -32,7 +32,9 @@ set scenarios [list "" ]
 set hdr_tests [lsort [glob -nocomplain $srcdir/$subdir/\[cdx\]*.h]]
 set neg_tests [lsort [glob -nocomplain $srcdir/$subdir/\[dy\]*.cc]]
 set pos_tests [lsort [glob -nocomplain $srcdir/$subdir/\[cpx\]*.cc]]
-set mapflag -fpph-map=$srcdir/$subdir/pph.map
+
+gcc_copy_files $srcdir/$subdir/pph.map .
+set mapflag -fpph-map=pph.map
 
 foreach scenario $scenarios {
 

--
This patch is available for review at http://codereview.appspot.com/4445076



More information about the Gcc-patches mailing list