Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: David Carlton <carlton@math.stanford.edu>
To: Michael Elizabeth Chastain <mec@shout.net>
Cc: ezannoni@redhat.com, fnasser@redhat.com, gdb@sources.redhat.com,
	jimb@redhat.com
Subject: Re: [rfc] plans for linespec.c
Date: Thu, 09 Jan 2003 06:01:00 -0000	[thread overview]
Message-ID: <ro1smw26ew0.fsf@jackfruit.Stanford.EDU> (raw)
In-Reply-To: <200301090424.h094O8224303@duracef.shout.net>

On Wed, 8 Jan 2003 22:24:08 -0600, Michael Elizabeth Chastain <mec@shout.net> said:
> Hi David,

>> ... I'm not sure that your level of concern is warranted.  My machine
>> is old, so it would turn a 10-minute testing process into a 20-minute
>> testing process; I'm happy to do that if you think it's important,
>> but I'm not sure that it is in this particular instance.

> It's kinda subjective.  I tend to be conservative about these
> things, and I tend not to think of testing as getting in the way of
> my work flow (I like to proofread while the tests are running).  So
> it's not "you should I do this or I predict calamity" issue.  If you
> choose not to, I won't kick.  If lots of new stabs+ regressions show
> up then I will want it more.

Fair enough.  It's something I should get around to doing eventually
for other reasons; maybe your nudging will move it up some.

>> (I am, however, worried about problems that the test suite might not
>> catch at all: it would be nice if somebody were to make sure that the
>> testsuite systematically tested everything that decode_line_1 does.
>> But that's another issue entirely.)

> Grin.  You are the expert on coverage cases for decode_line_1 now!

There's actually an interesting question here as to whether or not I
even can design coverage tests for the original version of
decode_line_1: my only understanding of the function comes from
decomposing it, so any tests that I'd design would be compromised by
the assumption that I've preserved the behavior by that
decomposition.  Though, obviously, I'd be in a good position for
designing coverage tests for the newer version.

> Unfortunately it's very difficult psychologically to work on a piece
> of code and then write test cases designed to break it.

I'm trying to get better at writing test cases.  My next task for my
non-GDB programming project is to get a unit test system running, both
for new code and for existing code, so hopefully test writing will get
easier for me.

Speaking of which, I had the thought that maybe we could do unit tests
of some of the innards of GDB by writing separate test programs that
we link with -lgdb.  Something to think about.

David Carlton
carlton@math.stanford.edu


  reply	other threads:[~2003-01-09  6:01 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-09  4:24 Michael Elizabeth Chastain
2003-01-09  6:01 ` David Carlton [this message]
2003-01-09  9:45   ` Joel Brobecker
  -- strict thread matches above, loose matches on Subject: below --
2003-01-09 16:09 Michael Elizabeth Chastain
2003-01-08  0:12 Michael Elizabeth Chastain
2003-01-08 23:22 ` David Carlton
2003-01-07 22:22 David Carlton
2003-01-08 14:25 ` Elena Zannoni
2003-01-08 22:48   ` David Carlton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ro1smw26ew0.fsf@jackfruit.Stanford.EDU \
    --to=carlton@math.stanford.edu \
    --cc=ezannoni@redhat.com \
    --cc=fnasser@redhat.com \
    --cc=gdb@sources.redhat.com \
    --cc=jimb@redhat.com \
    --cc=mec@shout.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox