From: chrubis@suse.cz
To: Jan Stancek <jstancek@redhat.com>
Cc: ltp-list@lists.sourceforge.net
Subject: Re: [LTP] [PATCH] add clock_gettime04
Date: Wed, 10 Sep 2014 18:32:42 +0200 [thread overview]
Message-ID: <20140910163242.GC16633@rei> (raw)
In-Reply-To: <1162485694.20768561.1410363325469.JavaMail.zimbra@redhat.com>
Hi!
> Is it implemented? I don't see any lib function handling it:
>
> $ grep "TRERRNO" -r .
> ./include/tst_res_flags.h:#define TRERRNO 0x300 /* Capture errno information from TEST_RETURN to
I would call that a bug, feel free to push a patch fixing this.
> > > + if (opt_testtime) {
> > > + testtime = atoi(opt_testtimestr);
> > > + if (testtime <= 0) {
> > > + tst_brkm(TBROK, NULL, "Invalid arg for -T: %s",
> > > + opt_testtimestr);
> > > + }
> > > + }
> > > +
> > > + setup();
> > > +
> > > + test(testtime);
> >
> > Shouldn't the test(testtime) be still inside the for () loop with
> > TEST_LOOPING() because otherwise the test will gladly accept and ignore
> > the standard parameters (-i -I etc).
>
> I thought the -T would cover both, but I can add it back, with some
> check to break that loop if anything fails.
It would and wouldn't. Functionally it would, but the test would accept
parameters that are completly ignored, which is bug from a user
perspective.
--
Cyril Hrubis
chrubis@suse.cz
------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
prev parent reply other threads:[~2014-09-10 16:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-10 12:46 [LTP] [PATCH] add clock_gettime04 Jan Stancek
2014-09-10 15:18 ` chrubis
[not found] ` <1162485694.20768561.1410363325469.JavaMail.zimbra@redhat.com>
2014-09-10 16:32 ` chrubis [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=20140910163242.GC16633@rei \
--to=chrubis@suse.cz \
--cc=jstancek@redhat.com \
--cc=ltp-list@lists.sourceforge.net \
/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