From: Cyril Hrubis <chrubis@suse.cz>
To: Andrew Chen <yanpai.chen@gmail.com>
Cc: ltp-list@lists.sourceforge.net, ypchen@faraday-tech.com
Subject: Re: [LTP] [PATCH] testcases: syscalls: use tst_tmpdir() interface
Date: Thu, 13 Oct 2011 15:45:29 +0200 [thread overview]
Message-ID: <20111013134529.GD23592@saboteur.suse.cz> (raw)
In-Reply-To: <1316411928-1941-1-git-send-email-yanpai.chen@gmail.com>
Hi!
First of all, please use more recent LTP source (ideally git checkout).
The '/* End setup() */' and '/* End cleanup() */' comments were removed
about an year ago.
> index 5f81dac..0851cbc 100644
> --- a/ltp-full-20101031/testcases/kernel/syscalls/fstatat/fstatat01.c
> +++ b/ltp-full-20101031/testcases/kernel/syscalls/fstatat/fstatat01.c
> @@ -247,6 +247,8 @@ void setup()
> /* capture signals */
> tst_sig(NOFORK, DEF_HANDLER, cleanup);
>
> + tst_tmpdir();
> +
> /* Pause if that option was specified */
> TEST_PAUSE;
> } /* End setup() */
> @@ -269,6 +271,8 @@ void cleanup()
> */
> TEST_CLEANUP;
>
> + tst_rmdir();
> +
> /* exit with return code appropriate for results */
> tst_exit();
> } /* End cleanup() */
You missed the testfile3 that uses absolute path to /tmp/ which should
rather be absoulute path to tst_tmpdir. Something like this should work:
snprintf(testfile3, sizeof(testfile3),
"%s/fstatattestfile.txt", tst_get_tmpdir())
Note that we no longer need the pid in the filenames as the create test
directory is unique.
And the same goes for the rest of the testcases.
--
Cyril Hrubis
chrubis@suse.cz
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
next prev parent reply other threads:[~2011-10-13 13:41 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-30 6:19 [LTP] [PATCH 1/7] testcases: fs_bind: fix hanging of testscript Andrew Chen
2011-06-30 6:19 ` [LTP] [PATCH 2/7] testcases: cgroup: correct wrong variable used in the testscript Andrew Chen
2011-07-11 14:45 ` Cyril Hrubis
2011-07-11 16:07 ` Cyril Hrubis
2011-06-30 6:19 ` [LTP] [PATCH 3/7] testcases: controllers: fix wrong cpu number calculated Andrew Chen
2011-07-21 16:57 ` Cyril Hrubis
2011-06-30 6:19 ` [LTP] [PATCH 4/7] testcases: memcg_function: set hugepage size to zero when no hugepage support Andrew Chen
2011-06-30 6:19 ` [LTP] [PATCH 5/7] runltp: precise pattern matching for skipped testcases Andrew Chen
2011-06-30 6:19 ` [LTP] [PATCH 6/7] runtest/fs: change parameters of growfiles Andrew Chen
2011-07-29 11:45 ` Cyril Hrubis
[not found] ` <CANj_sbC3+eO+6=_S4MO8Wr1o6b7Oo9mbX=EehBFaQb6dj=xOww@mail.gmail.com>
[not found] ` <CAGH67wROk8oOO85TVCZxfNofy2M1NdQXPTkuEHezgUJy8Jx-zw@mail.gmail.com>
2011-08-10 12:12 ` Cyril Hrubis
2011-08-10 12:16 ` Cyril Hrubis
2011-09-08 12:09 ` Cyril Hrubis
[not found] ` <1316411646-1886-1-git-send-email-yanpai.chen@gmail.com>
[not found] ` <CANj_sbD=c+R4YVwqh1tSw-4LanVimNos5rFc0tU872ouCLf-8g@mail.gmail.com>
2011-10-13 14:00 ` [LTP] [PATCH 6/7 V2] " Cyril Hrubis
2011-06-30 6:19 ` [LTP] [PATCH 7/7] testcases: syscalls: close file descriptors before unlinking Andrew Chen
2011-07-11 16:45 ` Cyril Hrubis
2011-07-21 17:01 ` Cyril Hrubis
[not found] ` <CANj_sbBZGdHond=dOHRKtgBrEHYiK8-iQD=hM-iv3ZU1J5_aYQ@mail.gmail.com>
[not found] ` <CANj_sbB1KoHxDCBEnGGX66LihMY-00N+mj+rv-4zPYA7XpkssQ@mail.gmail.com>
[not found] ` <20110727121238.GB20610@saboteur.suse.cz>
[not found] ` <20110728180131.GA3307@saboteur.suse.cz>
[not found] ` <CANj_sbCv=TKkRuaPmfWOBz4qArC1eKEuCoDiMb2oLrWCOf_GWQ@mail.gmail.com>
2011-08-10 12:10 ` Cyril Hrubis
[not found] ` <1316411928-1941-1-git-send-email-yanpai.chen@gmail.com>
2011-10-13 13:45 ` Cyril Hrubis [this message]
2011-07-21 16:55 ` [LTP] [PATCH 1/7] testcases: fs_bind: fix hanging of testscript Cyril Hrubis
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=20111013134529.GD23592@saboteur.suse.cz \
--to=chrubis@suse.cz \
--cc=ltp-list@lists.sourceforge.net \
--cc=yanpai.chen@gmail.com \
--cc=ypchen@faraday-tech.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