All of lore.kernel.org
 help / color / mirror / Atom feed
From: Cyril Hrubis <chrubis@suse.cz>
To: Jan Stancek <jstancek@redhat.com>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH] syscalls/mkdir09: rewrite in new LTP API
Date: Fri, 4 Feb 2022 13:39:48 +0100	[thread overview]
Message-ID: <Yf0elMPsp9gQXVSC@yuki> (raw)
In-Reply-To: <Yf0bW/zvEkb7gajX@yuki>

Hi!
> > +static void test2(int child_num)
> > +{
> > +	/*
> > +	 * Child routine which attempts to remove directories from the
> > +	 * test directory which do not exist.
> > +	 */
> > +
> > +	int j;
> > +	char tmpdir[MAXPATHLEN];
> > +
> > +	while (!done) {
> > +		for (j = 1; j < nfiles; j += NCHILD) {
> > +			sprintf(tmpdir, DIR_NAME, j);
> > +			TEST(rmdir(tmpdir));
> > +
> > +			if (TST_RET == 0) {
> > +				tst_res(TFAIL, "[%d] rmdir %s succeeded unexpectedly",
> > +					 child_num, tmpdir);
> > +				return;
> > +			}
> > +
> > +			if (TST_ERR != ENOENT) {
> > +				tst_res(TFAIL|TERRNO, "[%d] rmdir %s",
> > +					child_num, tmpdir);
> > +				return;
> > +			}
> > +		}
> > +	}
> > +	tst_res(TPASS, "[%d] create dirs that dont exist", child_num);
                             ^
			     remove dirs

-- 
Cyril Hrubis
chrubis@suse.cz

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

      reply	other threads:[~2022-02-04 12:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-27 13:56 [LTP] [PATCH] syscalls/mkdir09: rewrite in new LTP API Jan Stancek
2022-01-27 14:04 ` Petr Vorel
2022-02-04 12:26 ` Cyril Hrubis
2022-02-04 12:39   ` Cyril Hrubis [this message]

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=Yf0elMPsp9gQXVSC@yuki \
    --to=chrubis@suse.cz \
    --cc=jstancek@redhat.com \
    --cc=ltp@lists.linux.it \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.