* gdb.hp/gdb.defects/bs15503.exp: Only run this test if compiling
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.hp / gdb.objdbg / objdbg04.exp
index f678274561983e83bdd290547baa09ecd68c79fe..c57f4c0e056a4e4bb3ad987c8aee38995293bf30 100644 (file)
@@ -14,6 +14,16 @@ set binfile ${objdbgdir}/${testfile}
 set toolssubdir ${srcdir}/${subdir}/tools
 set symaddrfile ${toolssubdir}/symaddr
 
+# Create and source the file that provides information about the compiler
+# used to compile the test case.
+if [get_compiler_info ${binfile}] {
+    return -1
+}
+
+if {!$hp_aCC_compiler && !$hp_cc_compiler} {
+  return 0
+}
+
 if { [gdb_compile "${toolssubdir}/test-objdbg.cc" "${objdbgdir}/test-objdbg.o" object "debug c++ {additional_flags=-I${toolssubdir} +objdebug}"] != "" } {
     gdb_suppress_entire_file "WARNING: +objdebug option is not supported in this compiler version, test ignored."
 }
This page took 0.033714 seconds and 4 git commands to generate.