gdb/testsuite: Improve detection of bug gdb/24541
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.mi / mi-inheritance-syntax-error.exp
index a705e2855fc77d2922c05da98fb5fc3cd0d01950..4644e40f17d862d84d71413fe8e5341bcf73ac43 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 2011-2012 Free Software Foundation, Inc.
+# Copyright 2011-2019 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -23,16 +23,14 @@ if [mi_gdb_start] {
     continue
 }
 
-set testfile mi-inheritance-syntax-error
-set srcfile "$testfile.cc"
-set binfile $objdir/$subdir/$testfile
+standard_testfile .cc
 
 if [get_compiler_info "c++"] {
-    return -1;
+    return -1
 }
 
 if {[gdb_compile $srcdir/$subdir/$srcfile $binfile executable {debug c++}] != ""} {
-  untested mi-inheritance-syntax-error.exp
+  untested "failed to compile"
   return -1
 }
 
This page took 0.04669 seconds and 4 git commands to generate.