aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.c++/derivation.exp
diff options
context:
space:
mode:
authorStan Shebs <shebs@codesourcery.com>1999-09-09 00:02:17 +0000
committerStan Shebs <shebs@codesourcery.com>1999-09-09 00:02:17 +0000
commitd4f3574e777abfa65c9ba134e582228f3f32a8d6 (patch)
tree408b74c26833555087f04f4ec466afd488af6087 /gdb/testsuite/gdb.c++/derivation.exp
parent325188ecac3a52d92d359c70f9b730470760e1d7 (diff)
downloadfsf-binutils-gdb-d4f3574e777abfa65c9ba134e582228f3f32a8d6.zip
fsf-binutils-gdb-d4f3574e777abfa65c9ba134e582228f3f32a8d6.tar.gz
fsf-binutils-gdb-d4f3574e777abfa65c9ba134e582228f3f32a8d6.tar.bz2
import gdb-1999-09-08 snapshot
Diffstat (limited to 'gdb/testsuite/gdb.c++/derivation.exp')
-rw-r--r--gdb/testsuite/gdb.c++/derivation.exp9
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.c++/derivation.exp b/gdb/testsuite/gdb.c++/derivation.exp
index 31cdd6f..031985a 100644
--- a/gdb/testsuite/gdb.c++/derivation.exp
+++ b/gdb/testsuite/gdb.c++/derivation.exp
@@ -39,10 +39,19 @@ if $tracelevel then {
set prms_id 0
set bug_id 0
+if { [skip_cplus_tests] } { continue }
+
set testfile "derivation"
set srcfile ${testfile}.cc
set binfile ${objdir}/${subdir}/${testfile}
+# Create and source the file that provides information about the compiler
+# used to compile the test case.
+
+if [get_compiler_info ${binfile} "c++"] {
+ return -1
+}
+
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug c++}] != "" } {
gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail."
}