This is the mail archive of the gdb-patches@sourceware.org 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]

[RFA/testsuite] New testcase for "set print array-indexes"


Here is a testcase for the patch being reviewed at:

        http://sources.redhat.com/ml/gdb-patches/2005-09/msg00195.html

This patch adds a testcase that verifies the output printed for an
array, both with and without indexes. I didn't include a check for
"show print array-indexes", because I've found in the past that this
is more a maintenance burden than anything - each time you want to
modify the text of the help string, you end up having to update the
testcase. The benefit of checking the output seems marginal to me,
but I'd be happy to add such a test, should it be felt that this is
better.

2005-09-26  Joel Brobecker  <brobecker@adacore.com>

        * gdb.base/arrayidx.c: New file.
        * gdb.base/arrayidx.exp: New testcase.

Tested on x86-linux, all PASSes (with the patch proposed above).

Note also that I replaced the old FSF address with the new one.
I seemed to be the thing to do.

-- 
Joel

Attachment: arrayidx.c
Description: Text document

Attachment: arrayidx.exp
Description: Text document


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