Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Tom Tromey <tromey@redhat.com>
To: Hui Zhu <teawater@gmail.com>
Cc: Yao Qi <yao@codesourcery.com>,
	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: Fri, 18 Jan 2013 15:28:00 -0000	[thread overview]
Message-ID: <87a9s6a4tu.fsf@fleche.redhat.com> (raw)
In-Reply-To: <CANFwon2m3D3MDKjuL9Hp+t-RBj7BoSUz_OapdNUP=P27rhjD0Q@mail.gmail.com>	(Hui Zhu's message of "Fri, 18 Jan 2013 09:22:49 +0800")

>>>>> "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


  parent reply	other threads:[~2013-01-18 15:28 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 [this message]
2013-01-25 11:10               ` Hui Zhu
2013-02-11 12:55                 ` Hui Zhu
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=87a9s6a4tu.fsf@fleche.redhat.com \
    --to=tromey@redhat.com \
    --cc=brobecker@adacore.com \
    --cc=gdb-patches@sourceware.org \
    --cc=teawater@gmail.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