aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2013-04-10 05:35:56 +0000
committerYao Qi <yao@codesourcery.com>2013-04-10 05:35:56 +0000
commitf37867715f724282d197fb57dcad0764eb60e2e8 (patch)
tree01164ecd82799a6c121a2dcb36a1e89763488278 /gdb
parent5c2b44181d798da7ed201d94ead3789da53b0b1a (diff)
downloadgdb-f37867715f724282d197fb57dcad0764eb60e2e8.zip
gdb-f37867715f724282d197fb57dcad0764eb60e2e8.tar.gz
gdb-f37867715f724282d197fb57dcad0764eb60e2e8.tar.bz2
gdb/testsuite/
* gdb.trace/report.exp: Use standard_output_file for saved trace file.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/gdb.trace/report.exp7
2 files changed, 10 insertions, 2 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 8c801a2..7017475 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2013-04-10 Yao Qi <yao@codesourcery.com>
+
+ * gdb.trace/report.exp: Use standard_output_file for saved
+ trace file.
+
2013-04-10 Hui Zhu <hui@codesourcery.com>
* gdb.base/Makefile.in (EXECUTABLES): Add dprintf-pending.
diff --git a/gdb/testsuite/gdb.trace/report.exp b/gdb/testsuite/gdb.trace/report.exp
index 25680c7..3c3025d 100644
--- a/gdb/testsuite/gdb.trace/report.exp
+++ b/gdb/testsuite/gdb.trace/report.exp
@@ -407,11 +407,14 @@ gdb_tfind_test "finished: make sure not debugging any trace frame" \
"none" "-1"
# Save trace frames to tfile.
-gdb_test "tsave report.tf" "Trace data saved to file 'report.tf'.*"
+set tracefile [standard_output_file ${testfile}]
+gdb_test "tsave ${tracefile}.tf" \
+ "Trace data saved to file '${tracefile}.tf'.*" \
+ "save tfile trace file"
# Change target to tfile.
set test "change to tfile target"
-gdb_test_multiple "target tfile report.tf" "$test" {
+gdb_test_multiple "target tfile ${tracefile}.tf" "$test" {
-re "A program is being debugged already. Kill it. .y or n. " {
send_gdb "y\n"
exp_continue