This is the mail archive of the mailing list for the GDB project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch, testsuite] check for readline support in gdb.base/history-duplicates.exp

The testcase gdb.base/history-duplicates.exp checks the interaction between "set history remove-duplicates" and scrolling back through command history with ^P, thus it only makes sense if readline support is present. I've copied the test that currently appears in readline.exp and other places. OK to commit?


2015-09-15  Sandra Loosemore  <>

	* gdb.base/history-duplicates.exp: Skip if no readline support.
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.
+# 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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]