Index: gdb/testsuite/gdb.mi/mi-inheritance-syntax-error.exp |
diff --git a/gdb/testsuite/gdb.mi/mi-inheritance-syntax-error.exp b/gdb/testsuite/gdb.mi/mi-inheritance-syntax-error.exp |
index 4831a5bb31e8361370b089b22475fe31db3dd016..ba80f4f96017847fa5ffedb0c9715a5fd7040e7d 100644 |
--- a/gdb/testsuite/gdb.mi/mi-inheritance-syntax-error.exp |
+++ b/gdb/testsuite/gdb.mi/mi-inheritance-syntax-error.exp |
@@ -23,11 +23,9 @@ 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 ${binfile} "c++"] { |
+if [get_compiler_info "c++"] { |
return -1; |
} |