Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Hui Zhu <teawater@gmail.com>
To: Tom Tromey <tromey@redhat.com>, Yao Qi <yao@codesourcery.com>
Cc: Joel Brobecker <brobecker@adacore.com>,
	gdb-patches ml <gdb-patches@sourceware.org>
Subject: Re: [PATCH] Add CTF support to GDB [5] Add test for CTF function
Date: Mon, 11 Feb 2013 12:55:00 -0000	[thread overview]
Message-ID: <CANFwon0G5CO1dDMYmOp4wD=ssm=X+_YG19FR9biOmM9ng=7neg@mail.gmail.com> (raw)
In-Reply-To: <CANFwon2DTOKJR-D=Gys534s0C51Bgg=4+i1KoB6GGC49_C_v2A@mail.gmail.com>

On Fri, Jan 25, 2013 at 7:09 PM, Hui Zhu <teawater@gmail.com> wrote:
> Hi Yao and Tom,
>
> Thanks for your help.
>
> I post a new patch according to your comments.
> And I remove "if [is_remote host] then {" check and update code to:
> remote_exec host "which babeltrace" "" "/dev/null"  "babeltrace.which"
>
> It work OK in my part.
>
> Please help me review it.
>
> Best,
> Hui

Hi,

Ping.

Thanks,
Hui

>
> 2013-01-25  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.
>
> On Fri, Jan 18, 2013 at 11:28 PM, Tom Tromey <tromey@redhat.com> wrote:
>>>>>>> "Hui" == Hui Zhu <teawater@gmail.com> writes:
>>
>> Hui> +set ctfdir $testfile.ctf
>>
>> I'd like it if new temporary files were all named using
>> standard_output_file.  This way we can move them later.
>>
>> Hui> +#Test "tsave -ctf"
>>
>> Space after "#".
>>
>> Hui> +#Get the pathname of babeltrace and set it to $which_babeltrace.
>> Hui> +#If host doesn't have babeltrace, $which_babeltrace will set to 0.
>> Hui> +if [info exists BABELTRACE] {
>> Hui> +    set which_babeltrace ${BABELTRACE}
>> Hui> +} else {
>> Hui> +    if [is_remote host] then {
>> Hui> +  remote_exec host "which babeltrace" "" "" "babeltrace.which"
>>
>> This seems possibly questionable to me, but I don't really do any remote
>> host testing.  Is this used elsewhere in the test suite?
>>
>> Hui> +#Clean
>> Hui> +
>> Hui> +#remote_exec host "rm -rf $ctfdir"
>>
>> You might as well just delete this.
>>
>> I tend to think that having tests clean up after themselves is
>> inconvenient, as it makes debugging any failures trickier -- you have to
>> hack the test case and run it again in order to see the various files.
>>
>> I'm not sure whether this has ever been discussed here though.  I do see
>> that a fair number of tests do this kind of cleanup.
>>
>> Tom


  reply	other threads:[~2013-02-11 12:55 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-14  3:49 Hui Zhu
2013-01-14 12:44 ` Yao Qi
2013-01-15 11:19   ` Hui Zhu
2013-01-15 13:49     ` Yao Qi
2013-01-16  7:39       ` Hui Zhu
2013-01-16  9:52         ` Yao Qi
2013-01-18  1:23           ` Hui Zhu
2013-01-18  2:07             ` Yao Qi
2013-01-18 15:28             ` Tom Tromey
2013-01-25 11:10               ` Hui Zhu
2013-02-11 12:55                 ` Hui Zhu [this message]
2013-02-18 10:39                 ` Yao Qi
2013-02-19  6:57                   ` Hui Zhu
2013-01-14 13:30 ` Joel Brobecker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CANFwon0G5CO1dDMYmOp4wD=ssm=X+_YG19FR9biOmM9ng=7neg@mail.gmail.com' \
    --to=teawater@gmail.com \
    --cc=brobecker@adacore.com \
    --cc=gdb-patches@sourceware.org \
    --cc=tromey@redhat.com \
    --cc=yao@codesourcery.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox