Fix test names for trad.exp tests
authorTamar Christina <tamar.christina@arm.com>
Wed, 16 Nov 2016 15:53:08 +0000 (15:53 +0000)
committerTamar Christina <tnfchris@gcc.gnu.org>
Wed, 16 Nov 2016 15:53:08 +0000 (15:53 +0000)
 PR testsuite/78136
 * gcc.dg/cpp/trad/trad.exp
 (dg-runtest): Moved $srcdir/$subdir/ to DEFAULT_TRADCPPFLAGS.

From-SVN: r242500

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/cpp/trad/trad.exp

index 4f6d853c468c6ae879537e6785042f38e7ba84c5..6edf7150cc66ad7a6cc4852cb7e0d75ac4564631 100644 (file)
@@ -1,3 +1,10 @@
+2016-11-16  Tamar Christina  <tamar.christina@arm.com>
+
+       PR testsuite/78136
+       * gcc.dg/cpp/trad/trad.exp
+       (dg-runtest): Moved $srcdir/$subdir/ to
+       DEFAULT_TRADCPPFLAGS.
+
 2016-11-16  Andre Vehreschild  <vehre@gcc.gnu.org>
 
        PR fortran/78356
index 01e1400b3c38a8a3b96ce523bae84ee850f65f46..62ac213c3da56ac9aa74dc5c9cebc7c87f7fa4e7 100644 (file)
@@ -29,7 +29,7 @@ load_lib gcc-dg.exp
 # If a testcase doesn't have special options, use these.
 global DEFAULT_TRADCPPFLAGS
 if ![info exists DEFAULT_TRADCPPFLAGS] then {
-    set DEFAULT_TRADCPPFLAGS " -traditional-cpp"
+    set DEFAULT_TRADCPPFLAGS " -traditional-cpp -I$srcdir/$subdir/"
 }
 
 # Initialize `dg'.
@@ -37,7 +37,7 @@ dg-init
 
 # Main loop.
 dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.\[cS\]]] \
-       "-I$srcdir/$subdir/" $DEFAULT_TRADCPPFLAGS
+       "" $DEFAULT_TRADCPPFLAGS
 
 # All done.
 dg-finish