aboutsummaryrefslogtreecommitdiff
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
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.
-rw-r--r--gdb/testsuite/ChangeLog4
-rw-r--r--gdb/testsuite/gdb.base/history-duplicates.exp9
2 files changed, 12 insertions, 1 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index b46ccbd..56c3c47 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,5 +1,9 @@
2015-12-14 Sandra Loosemore <sandra@codesourcery.com>
+ * gdb.base/history-duplicates.exp: Skip if no readline support.
+
+2015-12-14 Sandra Loosemore <sandra@codesourcery.com>
+
* gdb.base/gdbinit-history.exp: Skip for remote-host testing.
2015-12-14 Sandra Loosemore <sandra@codesourcery.com>
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.