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.
This commit is contained in:
Sandra Loosemore 2015-12-14 15:22:12 -08:00
parent 5d978e1772
commit 0588c79688
2 changed files with 12 additions and 1 deletions

View File

@ -1,3 +1,7 @@
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.

View File

@ -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.