Index: gdb/testsuite/gdb.reverse/finish-precsave.exp |
diff --git a/gdb/testsuite/gdb.reverse/finish-precsave.exp b/gdb/testsuite/gdb.reverse/finish-precsave.exp |
index 661a07e7dcf8790c865eba6bae7fb4f258d12ad3..775c68a02ef6d3dc59d2cd4d36907ddc83819e51 100644 |
--- a/gdb/testsuite/gdb.reverse/finish-precsave.exp |
+++ b/gdb/testsuite/gdb.reverse/finish-precsave.exp |
@@ -20,8 +20,8 @@ if ![supports_reverse] { |
return |
} |
-set testfile "finish-reverse" |
-set srcfile ${testfile}.c |
+standard_testfile finish-reverse.c |
+set precsave [standard_output_file finish.precsave] |
if { [prepare_for_testing $testfile.exp "$testfile" $srcfile] } { |
return -1 |
@@ -43,14 +43,14 @@ gdb_test "break $breakloc" \ |
gdb_test "continue" "Breakpoint .* end of main .*" "run to end of main" |
-gdb_test "record save finish.precsave" \ |
- "Saved core file finish.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 finish.precsave" \ |
+gdb_test "record restore $precsave" \ |
"Program terminated with signal .*" \ |
"reload precord save file" |