This is the mail archive of the gdb-patches@sources.redhat.com 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]

Re: RFC: gdb_test_multiple


gdb_test_multiple "break Foo::Bar" "breakpoint on Foo::Bar" {
  -re "Breakpoint at .*\[\r\n\]$gdb_prompt $" {
    pass "$_gdb_message"
  }
  -re "Explode!" {
    fail "$_gdb_message (gdb/90210)"
  }
  -re "Bang." {
    kfail "gdb/90211" "$_gdb_message"
  }
}
Why not just use:

set msg "breakpoint on Foo::Bar"
gdb_test_multiple "break Foo::Bar" {
... fail "$msg ...
}

I don't think the ``$_gdb_message'' is right. It certainly isn't exactly intuative.

Andrew


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