Index: gdb/testsuite/gdb.reverse/machinestate-precsave.exp |
diff --git a/gdb/testsuite/gdb.reverse/machinestate-precsave.exp b/gdb/testsuite/gdb.reverse/machinestate-precsave.exp |
index 944946dde57d49c1a8dada474c9ea20a791e2b8b..ad6053b944280d2b9fd3436f7c639fbd12418e3c 100644 |
--- a/gdb/testsuite/gdb.reverse/machinestate-precsave.exp |
+++ b/gdb/testsuite/gdb.reverse/machinestate-precsave.exp |
@@ -40,11 +40,11 @@ if ![supports_process_record] { |
return |
} |
-set testfile "machinestate" |
-set srcfile ${testfile}.c |
-set srcfile1 ms1.c |
+standard_testfile machinestate.c ms1.c |
+set precsave [standard_output_file machinestate.precsave] |
-if { [prepare_for_testing $testfile.exp $testfile {machinestate.c ms1.c} ] } { |
+if { [prepare_for_testing $testfile.exp $testfile \ |
+ [list $srcfile $srcfile2]] } { |
return -1 |
} |
@@ -68,14 +68,14 @@ gdb_test "break $endmain" \ |
gdb_test "continue" "Breakpoint .* end main .*" "run to end of main" |
-gdb_test "record save machinestate.precsave" \ |
- "Saved core file machinestate.precsave with execution log\." \ |
+gdb_test "record save $precsave" \ |
+ "Saved core file $precsave with execution log\." \ |
"save process recfile" |
gdb_test "kill" "" "Kill process, prepare to debug log file" \ |
"Kill the program being debugged\\? \\(y or n\\) " "y" |
-gdb_test "record restore machinestate.precsave" \ |
+gdb_test "record restore $precsave" \ |
"Program terminated with signal .*" \ |
"reload prec save file" |