Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* [rfc] Completion tests failing
@ 2001-09-26 18:13 Daniel Jacobowitz
  2001-09-26 18:26 ` Elena Zannoni
  2001-09-27  1:39 ` Eli Zaretskii
  0 siblings, 2 replies; 17+ messages in thread
From: Daniel Jacobowitz @ 2001-09-26 18:13 UTC (permalink / raw)
  To: gdb

I don't like failing tests... especially ones that time out after absurd
periods of time.  So, I've been looking at the testsuite, particularly
completion.exp today.

The test failing for me right now is completion for 'p "a<tab>'.  The
comments, and the testsuite, say that this is a string literal and should
not be completed.  The code tries to complete it as a location, though, and
decides to run it through location_completer. make_symbol_completion_list
notices the stray ", and decides not to allow completion; but
make_source_files_completion_list does no such thing.

Which behavior would people prefer?  I can update the testsuite to match. 
I'd also like to add expressions like:

        -re "^p \"a\[^\"\]*\"$"     { fail "complete 'p \"a'" }

if it is not supposed to complete; that is, if gdb completes it to something
and supplies the trailing quote, fail now, instead of waiting for timeout
and failing the next dozen tests too.

-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer


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

end of thread, other threads:[~2001-09-27 15:22 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-26 18:13 [rfc] Completion tests failing Daniel Jacobowitz
2001-09-26 18:26 ` Elena Zannoni
2001-09-26 18:42   ` Daniel Jacobowitz
2001-09-27  1:39 ` Eli Zaretskii
2001-09-27  5:05   ` Fernando Nasser
2001-09-27  7:29     ` Daniel Jacobowitz
2001-09-27  7:33     ` Daniel Jacobowitz
2001-09-27  8:34       ` Fernando Nasser
2001-09-27 10:01         ` Eli Zaretskii
2001-09-27 10:22         ` Daniel Jacobowitz
2001-09-27 12:08           ` Eli Zaretskii
2001-09-27 13:48             ` Fernando Nasser
2001-09-27 15:22               ` Daniel Jacobowitz
2001-09-27  8:36       ` Eli Zaretskii
2001-09-27 10:00         ` Daniel Jacobowitz
2001-09-27 12:07           ` Eli Zaretskii
2001-09-27 12:19             ` Daniel Jacobowitz

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