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: PATCH/testsuite: guard test in ending-run.exp with stdio check


Daniel Jacobowitz wrote:
> 
> If we don't have inferior I/O, we won't see the program's output when we
> continue.  Committed as obvious.  Yet another failure I noticed when testing
> my unreviewed gdbserver.
> 
> --
> Daniel Jacobowitz                           Carnegie Mellon University
> MontaVista Software                         Debian GNU/Linux Developer
> 

Thanks Daniel.

Fernando


> 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
> 
>         * gdb.base/ending-run.exp: Guard "cont" test with
>         gdb_skip_stdio_test.
> 
> Index: testsuite/gdb.base/ending-run.exp
> ===================================================================
> RCS file: /cvs/src/src/gdb/testsuite/gdb.base/ending-run.exp,v
> retrieving revision 1.11
> diff -u -p -r1.11 ending-run.exp
> --- ending-run.exp      2002/01/21 18:46:33     1.11
> +++ ending-run.exp      2002/02/10 16:48:46
> @@ -129,7 +129,11 @@ gdb_expect {
>  # See if we can step out with control.  The "1 2 3" stuff
>  # is output from the program.
>  #
> -gdb_test "cont" ".*1 2 7 14 23 34 47 62 79.*Breakpoint.*31.*"
> +if ![gdb_skip_stdio_test "cont"] {
> +    gdb_test "cont" ".*1 2 7 14 23 34 47 62 79.*Breakpoint.*31.*"
> +} else {
> +    gdb_test "cont" ".*Breakpoint.*31.*"
> +}
> 
>  if ![gdb_skip_stdio_test "Step to return"] {
>      gdb_test "next" ".*Goodbye!.*32.*" \

-- 
Fernando Nasser
Red Hat Canada Ltd.                     E-Mail:  fnasser@redhat.com
2323 Yonge Street, Suite #300
Toronto, Ontario   M4P 2C9


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