Index: gdb/testsuite/gdb.reverse/sigall-precsave.exp |
diff --git a/gdb/testsuite/gdb.reverse/sigall-precsave.exp b/gdb/testsuite/gdb.reverse/sigall-precsave.exp |
index 6916278f19e339be5e5bf2441d8bd8b6479e6eea..465e3ccb82b78714551225ad804cc8a3b0d1696d 100644 |
--- a/gdb/testsuite/gdb.reverse/sigall-precsave.exp |
+++ b/gdb/testsuite/gdb.reverse/sigall-precsave.exp |
@@ -22,21 +22,16 @@ if ![supports_reverse] { |
return |
} |
-if $tracelevel then { |
- strace $tracelevel |
-} |
- |
gdb_exit |
gdb_start |
gdb_reinitialize_dir $srcdir/$subdir |
-set testfile sigall-precsave |
-set srcfile sigall-reverse.c |
-set binfile ${objdir}/${subdir}/${testfile} |
-if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } { |
- untested ${testfile}.exp |
- return -1 |
+standard_testfile sigall-reverse.c |
+set precsave [standard_output_file sigall.precsave] |
+ |
+if {[build_executable $testfile.exp $testfile $srcfile debug] == -1} { |
+ return -1 |
} |
# Make the first signal SIGABRT because it is always supported. |
@@ -189,14 +184,14 @@ gdb_test "handle all nostop noprint" |
gdb_test "continue" "Breakpoint .* end of main .*" "run to end of main" |
-gdb_test "record save sigall.precsave" \ |
- "Saved core file sigall.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 sigall.precsave" \ |
+gdb_test "record restore $precsave" \ |
"Program terminated with signal .*" \ |
"reload precord save file" |