aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergio Durigan Junior <sergiodj@redhat.com>2017-04-05 12:43:52 -0400
committerSergio Durigan Junior <sergiodj@redhat.com>2017-04-05 12:43:52 -0400
commit0ad9d8c73486e60c5a4963c1b7a0ea7063d69cd2 (patch)
treeb007752f8166886df2143e31cf616de1e0079f03
parent4a596fe20e93109300e841a3d0ee5f198146ab6d (diff)
downloadgdb-0ad9d8c73486e60c5a4963c1b7a0ea7063d69cd2.zip
gdb-0ad9d8c73486e60c5a4963c1b7a0ea7063d69cd2.tar.gz
gdb-0ad9d8c73486e60c5a4963c1b7a0ea7063d69cd2.tar.bz2
PR 21352: Add testsuite for "tsave -r" command
This commit adds a test for the fix of PR 21352. gdb/testsuite/ChangeLog: 2017-04-05 Sergio Durigan Junior <sergiodj@redhat.com> PR gdb/21352 * gdb.trace/tsv.exp: Add test for "tsave -r".
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/gdb.trace/tsv.exp4
2 files changed, 9 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index eb543eb..83d6018 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
+
+ PR gdb/21352
+ * gdb.trace/tsv.exp: Add test for "tsave -r".
+
2017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
* gdb.python/py-section-script.exp (sepdebug): New testcases.
diff --git a/gdb/testsuite/gdb.trace/tsv.exp b/gdb/testsuite/gdb.trace/tsv.exp
index 9da4669..2b80c80 100644
--- a/gdb/testsuite/gdb.trace/tsv.exp
+++ b/gdb/testsuite/gdb.trace/tsv.exp
@@ -26,6 +26,10 @@ if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \
}
gdb_load $binfile
+# PR gdb/21352: Command tsave does not support -r argument
+gdb_test "tsave -r" "Argument required \\\(file in which to save trace data\\\)\." \
+ "tsave command properly supports -r argument"
+
gdb_test "tvariable \$tvar1" \
"Trace state variable \\\$tvar1 created, with initial value 0." \
"create a trace state variable"