Patchwork [pph] Relativize pph test commands. (issue4445076)

login
register
mail settings
Submitter Lawrence Crowl
Date April 29, 2011, 9 p.m.
Message ID <20110429210035.1ABA32225D2@jade.mtv.corp.google.com>
Download mbox | patch
Permalink /patch/93477/
State New
Headers show

Comments

Lawrence Crowl - April 29, 2011, 9 p.m.
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.


--
This patch is available for review at http://codereview.appspot.com/4445076
Diego Novillo - April 29, 2011, 9:03 p.m.
On Fri, Apr 29, 2011 at 17:00, Lawrence Crowl <crowl@google.com> wrote:
> 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.

OK.


Diego.

Patch

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 {