+2018-12-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
+
+ PR testsuite/88041
+ * lib/gdc-dg.exp (gdc-dg-test): Strip gdc.test prefix.
+ * gdc.test/gdc-test.exp (gdc-do-test): Create $subdir link.
+ Include $subdir in filename.
+ Cleanup generated source.
+ * gdc.test/compilable/ddoc9676a.d (EXTRA_SOURCES): Don't use
+ absolute path.
+ * gdc.test/compilable/depsOutput9948.d: Likewise.
+
2018-12-13 Jakub Jelinek <jakub@redhat.com>
PR testsuite/88454
PR target/88461
* gcc.target/i386/pr88461.c: New test.
-
+
2018-12-12 Paolo Carlini <paolo.carlini@oracle.com>
* g++.dg/other/static5.C: New.
// PERMUTE_ARGS:
-// EXTRA_SOURCES: /extra-files/ddoc9676a.ddoc
+// EXTRA_SOURCES: extra-files/ddoc9676a.ddoc
// REQUIRED_ARGS: -D -Dd${RESULTS_DIR}/compilable -o-
// POST_SCRIPT: compilable/extra-files/ddocAny-postscript.sh 9676a
// PERMUTE_ARGS:
// REQUIRED_ARGS: -deps=${RESULTS_DIR}/compilable/depsOutput9948.deps
// POST_SCRIPT: compilable/extra-files/depsOutput.sh
-// EXTRA_SOURCES: /extra-files/depsOutput9948a.d
+// EXTRA_SOURCES: extra-files/depsOutput9948a.d
module depsOutput9948;
import depsOutput9948a;
# Initialize `dg'.
dg-init
+ # Create gdc.test link so test names include that subdir.
+ catch { file link $subdir . }
+
# Main loop.
# set verbose 1
# Convert to DG test.
set imports [format "-I%s/%s" $base $dir]
- set filename [dmd2dg $base $dir/$name.$ext]
+ # Include $subdir prefix so test names follow DejaGnu conventions.
+ set filename "$subdir/[dmd2dg $base $dir/$name.$ext]"
if { $dir == "runnable" } {
append PERMUTE_ARGS " $SHARED_OPTION"
}
# Cleanup
- #file delete $filename
+ file delete $filename
}
# All done.
}
}
+ # Strip gdc.test prefix off test names to avoid pathname failures in
+ # some tests.
+ set prog [dg-trim-dirname gdc.test $prog]
+
set result \
[gcc-dg-test-1 gdc_target_compile $prog $do_what $extra_tool_flags]