This is the mail archive of the gdb-patches@sources.redhat.com 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]

Re: [RFA/TESTSUITE]: readline tests


Tom Tromey <tromey@redhat.com> writes:

> >>>>> "Fernando" == Fernando Nasser <fnasser@redhat.com> writes:
> 
> Fernando> Please check them in Tom.  
> Fernando> Thanks for the tests and
> Fernando> again, my apologies for the delay.
> 
> I've checked in the new test file.
> The delay is no problem; I've been on vacation.
> 
> Tom

Hmm, two of the new tests are failing on my FreeBSD system:

Running ../../../../src/src/gdb/testsuite/gdb.base/readline.exp ...
FAIL: gdb.base/readline.exp: Simple operate-and-get-next - C-o for p 1
FAIL: gdb.base/readline.exp: operate-and-get-next with secondary prompt - send end

Since I'm failing to understand how the test work :-(, can you shed
some light on this Tom?  Here's the relevant part of gdb.log:

Running ../../../../src/src/gdb/testsuite/gdb.base/readline.exp ...
spawn /usr/home/kettenis/obj/gdb/gdb/testsuite/../../gdb/gdb -nw -nx 
GNU gdb 2002-08-15-cvs
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-unknown-freebsd4.6".
(gdb) set height 0
(gdb) set width 0
(gdb) dir
Reinitialize source path to empty? (y or n) y
Source directories searched: $cdir:$cwd
(gdb) dir ../../../../src/src/gdb/testsuite/gdb.base
Source directories searched: /usr/home/kettenis/obj/gdb/gdb/testsuite/../../../../src/src/gdb/testsuite/gdb.base:$cdir:$cwd
(gdb) p 1
$1 = 1
PASS: gdb.base/readline.exp: Simple operate-and-get-next - send p 1
(gdb) p 2
$2 = 2
PASS: gdb.base/readline.exp: Simple operate-and-get-next - send p 2
(gdb) p 3
$3 = 3
PASS: gdb.base/readline.exp: Simple operate-and-get-next - send p 3
(gdb) p 3ESC[HESC[J(gdb) p 3PASS: gdb.base/readline.exp: Simple operate-and-get-next - C-p to p 3
2ESC[HESC[J(gdb) p 2PASS: gdb.base/readline.exp: Simple operate-and-get-next - C-p to p 2
1ESC[HESC[J(gdb) p 1PASS: gdb.base/readline.exp: Simple operate-and-get-next - C-p to p 1
FAIL: gdb.base/readline.exp: Simple operate-and-get-next - C-o for p 1
if 1 > 0
PASS: gdb.base/readline.exp: operate-and-get-next with secondary prompt - send if 1 > 0
Invalid number "1if".
p 5
PASS: gdb.base/readline.exp: operate-and-get-next with secondary prompt - send p 5
(gdb) p 5
$4 = 5
(gdb) end
This command cannot be used at the top level.
(gdb) FAIL: gdb.base/readline.exp: operate-and-get-next with secondary prompt - send end
testcase ../../../../src/src/gdb/testsuite/gdb.base/readline.exp completed in 66 seconds


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