Index: gdb/testsuite/gdb.mi/gdb792.exp |
diff --git a/gdb/testsuite/gdb.mi/gdb792.exp b/gdb/testsuite/gdb.mi/gdb792.exp |
index bd0972a5d0267129a12d1415ee2e1eeb8aa5f7d1..1cb7ae2f61ded5bc577e4935f8987ae263253f7b 100644 |
--- a/gdb/testsuite/gdb.mi/gdb792.exp |
+++ b/gdb/testsuite/gdb.mi/gdb792.exp |
@@ -27,11 +27,9 @@ if [mi_gdb_start] { |
continue |
} |
-set testfile gdb792 |
-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; |
} |