summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.c++/classes.exp
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.c++/classes.exp')
-rw-r--r--gdb/testsuite/gdb.c++/classes.exp6
1 files changed, 1 insertions, 5 deletions
diff --git a/gdb/testsuite/gdb.c++/classes.exp b/gdb/testsuite/gdb.c++/classes.exp
index cf6a2cd682b..91a0400d47e 100644
--- a/gdb/testsuite/gdb.c++/classes.exp
+++ b/gdb/testsuite/gdb.c++/classes.exp
@@ -26,10 +26,7 @@ if $tracelevel then {
strace $tracelevel
}
-
-# Check to see if we have an executable to test. If not, then either we
-# haven't tried to compile one, or the compilation failed for some reason.
-# In either case, just notify the user and skip the tests in this file.
+if { [skip_cplus_tests] } { continue }
set testfile "misc"
set srcfile ${testfile}.cc
@@ -42,7 +39,6 @@ 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."
}