This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Check for readline support in gdb.base/history-duplicates.exp.
- From: Sandra Loosemore <sandra at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 14 Dec 2015 23:22:53 -0000
- Subject: [binutils-gdb] Check for readline support in gdb.base/history-duplicates.exp.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=0588c79688b061699500f317e193bbb3fe50c41d
commit 0588c79688b061699500f317e193bbb3fe50c41d
Author: Sandra Loosemore <sandra@codesourcery.com>
Date: Mon Dec 14 15:22:12 2015 -0800
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.
Diff:
---
gdb/testsuite/ChangeLog | 4 ++++
gdb/testsuite/gdb.base/history-duplicates.exp | 9 ++++++++-
2 files changed, 12 insertions(+), 1 deletion(-)
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.