PR 21352: Add testsuite for "tsave -r" command
[binutils-gdb.git] / gdb / testsuite / gdb.trace / tsv.exp
index a2e808a06acf09bd0a9b6aac3beb7c485ec04443..2b80c801b0228c4e166f42fddd97b64ee98ebb7f 100644 (file)
@@ -1,4 +1,4 @@
-#   Copyright 2009-2016 Free Software Foundation, Inc.
+#   Copyright 2009-2017 Free Software Foundation, Inc.
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -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"