Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [rfc/testsuite/doco] deprecate.txt
@ 2004-09-10 13:50 Michael Chastain
  2004-09-10 16:16 ` Eli Zaretskii
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Chastain @ 2004-09-10 13:50 UTC (permalink / raw)
  To: eliz, gdb-patches

Here is a new file, gdb/testsuite/deprecate.txt.

I think it's more useful to keep this file inside gdb/testsuite rather
than making it a section of doc/gdbint.texinfo .  Eli, is that okay with
you?

I'm also interested in comments on the four entries that I've written
so far, plus suggestions for new entries.

Michael

===

Deprecated Code in the GDB Test Suite

These coding practices are deprecated.
Avoid them in new code.

bug-gdb@prep.ai.mit.edu

    This address no longer accepts mail.  Just drop the lines in the
    header about "Please email any bugs, comments, and/or additions
    to this file to: bug-gdb@prep.ai.mit.edu".

exp_continue

    You should usually use this form:

	exp_continue -continue_timer

    The default form of "exp_continue" with no arguments resets
    the timeout timer.  This leads to infinite loops if gdb has a bug
    (and if gdb had no bugs then we would not need to test it).
    The "-continue_timer" form does not reset the timeout timer,
    so if gdb gets stuck in a loop, it will bust out soon enough.

    So if you use the default form, you need a loop counter or some
    other explicit way to make sure that the test never goes into
    an infinite loop.

gdb_suppress_entire_file

    gdb_suppress_entire_file sets funny global state.

    For gdb_compile, just do this:

	if { [gdb_compile ...] != "" } {
	    perror "Testcase compile failed" 0
	    continue
	}

send_gdb + gdb_expect

    Use gdb_test_multiple instead.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-09-10 19:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-10 13:50 [rfc/testsuite/doco] deprecate.txt Michael Chastain
2004-09-10 16:16 ` Eli Zaretskii
2004-09-10 16:28   ` Michael Chastain
2004-09-10 19:28     ` Eli Zaretskii

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox