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