This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch, testsuite] check for readline support in gdb.base/history-duplicates.exp
- From: Yao Qi <qiyaoltc at gmail dot com>
- To: Sandra Loosemore <sandra at codesourcery dot com>
- Cc: gdb-patches <gdb-patches at sourceware dot org>
- Date: Mon, 14 Dec 2015 09:27:11 +0000
- Subject: Re: [patch, testsuite] check for readline support in gdb.base/history-duplicates.exp
- Authentication-results: sourceware.org; auth=none
- References: <55F866B9 dot 6000106 at codesourcery dot com>
Sandra Loosemore <sandra@codesourcery.com> writes:
> 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?
Yes, patch is OK.
For the record, there is no fails with board file local-remote-host
(which has tty),
$ make check RUNTESTFLAGS="--host_board=local-remote-host --target_board=local-remote-host history-duplicates.exp"
but there are some fails with local-remote-host-notty (readline is
disabled due to lack of tty),
FAIL: gdb.base/history-duplicates.exp: remove-duplicates=unlimited: history entry is print 4
FAIL: gdb.base/history-duplicates.exp: remove-duplicates=unlimited: history entry is print 3
FAIL: gdb.base/history-duplicates.exp: remove-duplicates=unlimited: history entry is print 2
FAIL: gdb.base/history-duplicates.exp: remove-duplicates=unlimited: history entry is print 1
FAIL: gdb.base/history-duplicates.exp: remove-duplicates=unlimited: history entry is print 0
FAIL: gdb.base/history-duplicates.exp: remove-duplicates=1: history entry is print 1
FAIL: gdb.base/history-duplicates.exp: remove-duplicates=1: history entry is print 2
FAIL: gdb.base/history-duplicates.exp: remove-duplicates=1: history entry is print 0
FAIL: gdb.base/history-duplicates.exp: remove-duplicates=1: history entry is print 1 (again)
FAIL: gdb.base/history-duplicates.exp: remove-duplicates=1: history entry is print 0 (again)
FAIL: gdb.base/history-duplicates.exp: remove-duplicates=0: history entry is print 1
FAIL: gdb.base/history-duplicates.exp: remove-duplicates=0: history entry is print 1 (again)
FAIL: gdb.base/history-duplicates.exp: remove-duplicates=0: history entry is print 0
FAIL: gdb.base/history-duplicates.exp: remove-duplicates=0: history entry is print 0 (again)
FAIL: gdb.base/history-duplicates.exp: remove-duplicates=2: history entry is print 0
FAIL: gdb.base/history-duplicates.exp: remove-duplicates=2: history entry is print 2
FAIL: gdb.base/history-duplicates.exp: remove-duplicates=2: history entry is print 1
--
Yao (éå)