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] |
On Wed, Jan 16, 2013 at 5:52 PM, Yao Qi <yao@codesourcery.com> wrote: > On 01/16/2013 03:38 PM, Hui Zhu wrote: >> >> make check RUNTESTFLAGS="--target_board=native-gdbserver ctf.exp" >> remote_exec host "babeltrace $ctfdir < /dev/null" "" "" "output" will >> get error. I think that is why gas_version have "if [is_remote host]" >> for that. > > > What is the error? 'remote_exec host' has been used in some places in gdb > testsuite so it should work well. The one-line statement below works with > combinations of {remote-host, local-host} x {babeltrace installed, > babeltrace not installed} ERROR: tcl error sourcing ../../../gdb/gdb/testsuite/gdb.trace/ctf.exp. ERROR: bad spawn_id (process died earlier?) This is what I got. > > set ctfdir "foo" > set status [remote_exec host "babeltrace $ctfdir < /dev/null"] > verbose -log "status\[0\] ([lindex $status 0])" > verbose -log "status\[1\] ([lindex $status 1])" > > 1) babeltrace installed (local-host and remote-host). We'll get, > status[0] (1) > status[1] ([error] opening trace "foo" for reading. > > 2) babeltrace not installed, local-host. We'll get, > status[0] (-1) > status[1] (spawn failed) > > 3) babeltrace not installed, remote-host. We'll get, > status[0] (1) > status[1] (sh: babeltrace: command not found) > > We can match 'status[1]' to know the different results of executing > 'babeltrace' on host. > > P.S. I am not good at tcl/expect, so I may miss something. Thanks. I am very clear about this way. Do you mind I keep current way that I just used? > > -- > Yao (éå) According to the reveiw from Abid. I found that we need a test for while-stepping. So I add test for that. Thanks, Hui 2013-01-18 Hui Zhu <hui_zhu@mentor.com> * gdb.trace/Makefile.in (PROGS): Add ctf. * gdb.trace/ctf.c: New file. * gdb.trace/ctf.exp: New file.
Attachment:
ctf-test.txt
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |