aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/testsuite/ChangeLog7
-rw-r--r--gcc/testsuite/gcc.dg/cpp/trad/trad.exp4
2 files changed, 9 insertions, 2 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 4f6d853..6edf715 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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
diff --git a/gcc/testsuite/gcc.dg/cpp/trad/trad.exp b/gcc/testsuite/gcc.dg/cpp/trad/trad.exp
index 01e1400..62ac213 100644
--- a/gcc/testsuite/gcc.dg/cpp/trad/trad.exp
+++ b/gcc/testsuite/gcc.dg/cpp/trad/trad.exp
@@ -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