This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: gdb.c++ testsuite 2.1: try_catch.exp
- From: Benjamin Kosnik <bkoz at redhat dot com>
- To: Michael Elizabeth Chastain <mec at shout dot net>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Tue, 28 May 2002 08:58:04 -0700
- Subject: Re: gdb.c++ testsuite 2.1: try_catch.exp
- Organization: Red Hat / Paris
- References: <200205271924.g4RJOJw27502@duracef.shout.net>
- Reply-to: bkoz at redhat dot com
> 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.