aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base
diff options
context:
space:
mode:
authorSandra Loosemore <sandra@codesourcery.com>2015-12-14 15:22:12 -0800
committerSandra Loosemore <sandra@codesourcery.com>2015-12-14 15:22:12 -0800
commit0588c79688b061699500f317e193bbb3fe50c41d (patch)
tree61cf8f9220254f886f19b28bf989ce111a1d70e0 /gdb/testsuite/gdb.base
parent5d978e177217d8e9da8648498f0592b5cd885e69 (diff)
downloadgdb-0588c79688b061699500f317e193bbb3fe50c41d.zip
gdb-0588c79688b061699500f317e193bbb3fe50c41d.tar.gz
gdb-0588c79688b061699500f317e193bbb3fe50c41d.tar.bz2
Check for readline support in gdb.base/history-duplicates.exp.
2015-12-14 Sandra Loosemore <sandra@codesourcery.com> gdb/testsuite/ * gdb.base/history-duplicates.exp: Skip if no readline support.
Diffstat (limited to 'gdb/testsuite/gdb.base')
-rw-r--r--gdb/testsuite/gdb.base/history-duplicates.exp9
1 files changed, 8 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.base/history-duplicates.exp b/gdb/testsuite/gdb.base/history-duplicates.exp
index 11bb1ed..1c3c2c2 100644
--- a/gdb/testsuite/gdb.base/history-duplicates.exp
+++ b/gdb/testsuite/gdb.base/history-duplicates.exp
@@ -51,9 +51,16 @@ proc run_print_on_each_thing { things } {
}
}
-# By default the option is set to 0.
gdb_exit
gdb_start
+
+# These tests require readline support.
+if { ![readline_is_used] } {
+ unsupported "readline isn't used."
+ return -1
+}
+
+# By default the option is set to 0.
gdb_test "show history remove-duplicates" "is 0\\."
# Test the "unlimited" setting.