This is the mail archive of the gdb-patches@sourceware.org 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 4/5] Test cases


On Tuesday 15 November 2011 08:03:27, Yao Qi wrote:
> +    if ![runto_main] {
> +       fail "Can't run to main"
> +       return -1
> +    }

Should restore pf_prefix.  More instances of this.

> +    send_gdb "disconnect\n"
> +    gdb_expect {
> +       -re "warning: Pending tracepoint will not be resolved while GDB is disconnected.*Ending remote debugging.*$gdb_prompt $" {
> +           pass "disconnect with pending tracepoint"
> +       }
> +       -re ".*$gdb_prompt $" {
> +           fail "disconnect with pending tracepoint"
> +       }
> +    }

Why send_gdb/gdb_expect?

Otherwise looks okay.

-- 
Pedro Alves


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