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