Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* question on mi-console.exp kfail case
@ 2005-02-10  4:47 Bob Rossi
  2005-02-10 19:38 ` Andrew Cagney
  0 siblings, 1 reply; 2+ messages in thread
From: Bob Rossi @ 2005-02-10  4:47 UTC (permalink / raw)
  To: GDB; +Cc: cagney

Hi,

Andrew, I've mailed you personally cause I think you originally wrote
the comment below,

I've got the entire testsuite passing with the new syntax checker for
the MI output. However, I noticed the testcase mi?-console.exp has this,

   gdb_expect {
       -re "@\"H\"\r\n.*@\"e\"\r\n.*@\"l\"\r\n.*@\"l\"\r\n.*@\"o\"\r\n.*@\" \"\r\n.*@\"\\\\\\\\\"\r\n.*@\"\\\\\"\"\r\n.*@\"!\"\r\n.*@\"\\\\r\"\r\n.*@\"\\\\n\"\r\n" {
       pass "Hello message"
       }
       -re "Hello" {

       # Probably a native system where GDB doesn't have direct
       # control over the inferior console.
       # For this to work, GDB would need to run the inferior process
       # under a PTY and then use the even-loops ability to wait on
       # multiple event sources to channel the output back through the
       # MI.

       kfail "gdb/623" "Hello message"
       }
       timeout {
       fail "Hello message (timeout)"
       }
   }

In particular, I don't know what the first regular expression is, and
it's the one that allows for a "pass". What is it trying to match?

When I run this testcase, I get,
   KFAIL: gdb.mi/mi-console.exp: Hello message (PRMS: gdb/623)

The output of the inferior is simply "Hello \"!\r\n". Since I have the
testsuite set up so the inferior output is redirected to it's own pty,
would it be fine for me to match the expected output with a PASS?

Or is this a kfail for some reason I just don't understand?

Thanks,
Bob Rossi


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

end of thread, other threads:[~2005-02-10 16:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-10  4:47 question on mi-console.exp kfail case Bob Rossi
2005-02-10 19:38 ` Andrew Cagney

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