From 0588c79688b061699500f317e193bbb3fe50c41d Mon Sep 17 00:00:00 2001 From: Sandra Loosemore Date: Mon, 14 Dec 2015 15:22:12 -0800 Subject: [PATCH] Check for readline support in gdb.base/history-duplicates.exp. 2015-12-14 Sandra Loosemore gdb/testsuite/ * gdb.base/history-duplicates.exp: Skip if no readline support. --- 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 + * gdb.base/history-duplicates.exp: Skip if no readline support. + +2015-12-14 Sandra Loosemore + * gdb.base/gdbinit-history.exp: Skip for remote-host testing. 2015-12-14 Sandra Loosemore 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. -- 2.7.4