| Index: gdb/testsuite/gdb.cp/printmethod.exp
 | 
| diff --git a/gdb/testsuite/gdb.cp/printmethod.exp b/gdb/testsuite/gdb.cp/printmethod.exp
 | 
| index 998fffccd571dbebf55ec40fa2e85366223e8831..c441ea7e7a8392806fd1d354cbb2f5ba51e596de 100644
 | 
| --- a/gdb/testsuite/gdb.cp/printmethod.exp
 | 
| +++ b/gdb/testsuite/gdb.cp/printmethod.exp
 | 
| @@ -19,35 +19,22 @@
 | 
|  
 | 
|  # This file is part of the gdb testsuite
 | 
|  
 | 
| -if $tracelevel then {
 | 
| -        strace $tracelevel
 | 
| -        }
 | 
| -
 | 
|  if { [skip_cplus_tests] } { continue }
 | 
|  
 | 
|  #
 | 
|  # test running programs
 | 
|  #
 | 
|  
 | 
| -set testfile "printmethod"
 | 
| -set srcfile ${testfile}.cc
 | 
| -set binfile ${objdir}/${subdir}/${testfile}
 | 
| +standard_testfile .cc
 | 
|  
 | 
| -if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug c++}] != "" } {
 | 
| -     untested printmethod.exp
 | 
| -     return -1
 | 
| +if [get_compiler_info "c++"] {
 | 
| +    return -1
 | 
|  }
 | 
|  
 | 
| -if [get_compiler_info ${binfile} "c++"] {
 | 
| +if {[prepare_for_testing $testfile.exp $testfile $srcfile {debug c++}]} {
 | 
|      return -1
 | 
|  }
 | 
|  
 | 
| -gdb_exit
 | 
| -gdb_start
 | 
| -gdb_reinitialize_dir $srcdir/$subdir
 | 
| -gdb_load ${binfile}
 | 
| -
 | 
| -
 | 
|  if ![runto_main] then {
 | 
|      perror "couldn't run to breakpoint"
 | 
|      continue
 | 
| 
 |