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: gdb.c++ testsuite 2.1: try_catch.exp



> There was a cut-and-paste error here (line 122 versus line 118):
> 
>   send_gdb "break 122\n"
>   gdb_expect {
>      -re "Breakpoint \[0-9\]*.*line 118\\.\r\n$gdb_prompt $" {
>      ...
> 
> I rewrote all the send_gdb/gdb_expect pairs to gdb_test.
> This simplifies the test script a lot:
> 
>   gdb_test "break 61" "Breakpoint \[0-9\]*.*line 61\\."
>   gdb_test "continue"
>   "Continuing\\.\r\n\r\nBreakpoint.*at.*try_catch\\.cc:61\r\n.*"
>   "continue to 61"
 
Looks good, thanks for your additions. 

> The actual tests are very simple.  They don't test any of the
> try/catch functionality in gdb, just the control flow of the target
> program. A simple test is better than no test; someone can add more
> tests to this later.

Right. Actually, this has not worked in the past, so I thought it'd be
best to start with the basics.

> All the tests pass in all the configurations that I tested:

Great.


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