[gdb/testsuite] Fix maint-expand-symbols-header-file.exp for cc-with-gdb-index
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / maint-expand-symbols-header-file.exp
index f73be404c993a83235833af35551541c41115dc1..05802b27190a4423b57a0ec681ddd68e99f07129 100644 (file)
 
 standard_testfile .c
 
-if {[prepare_for_testing "failed to prepare" $testfile \
+if {[build_executable "failed to prepare" $testfile \
         $srcfile {debug nowarnings}]} {
     return -1
 }
+clean_restart
+
+# Make sure that no symtabs are expanded, by setting language before
+# loading exec.
+gdb_test_no_output "set language c"
+gdb_load ${binfile}
 
 set test "verify no symtabs are expanded"
 if { [readnow] } {
This page took 0.029142 seconds and 4 git commands to generate.