From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
To: Mike Galbraith <efault@gmx.de>
Cc: Thomas Gleixner <tglx@linutronix.de>,
LKML <linux-kernel@vger.kernel.org>,
linux-rt-users <linux-rt-users@vger.kernel.org>,
Anna-Maria Gleixner <anna-maria@linutronix.de>,
Steven Rostedt <rostedt@goodmis.org>
Subject: Re: [ANNOUNCE] v4.11.12-rt13
Date: Tue, 10 Oct 2017 18:24:55 +0200 [thread overview]
Message-ID: <20171010162455.qmvgr476j36nqev7@linutronix.de> (raw)
In-Reply-To: <1507351853.12111.5.camel@gmx.de>
On 2017-10-07 06:50:53 [+0200], Mike Galbraith wrote:
> > However...
>
> testcases/open_posix_testsuite/conformance/interfaces/clock_settime/8-1.c:
> * Steps:
> * - get time T0
> * - in child: set clock_nanosleep() to sleep for SLEEPSEC seconds
> * - in parent: sleep SMALLTIME (< SLEEPSEC)
> * - in parent: set time back to T0
> * - in child: ensure time when clock_nanosleep() expires is within
> * ACCEPTABLEDELTA of T0+(SLEEPSEC-SMALLTIME)
> ...
> #define SLEEPSEC 5
> #define SMALLTIME 2
> #define ACCEPTABLEDELTA 1
>
> homer:..debug/tracing # time chrt -o 0 /usr/local/ltp/conformance/interfaces/clock_settime/clock_settime_8-1.run-test
> Test PASSED
>
> real 0m5.002s
> user 0m0.000s
> sys 0m0.001s
> homer:..debug/tracing # time chrt -f 1 /usr/local/ltp/conformance/interfaces/clock_settime/clock_settime_8-1.run-test
> Ended too late. 1507351636 >> 1507351634
> Test FAILED
>
> real 0m7.002s
> user 0m0.000s
> sys 0m0.002s
As per POSIX we should sleep only 5 secs despite the CLOCK_REALTIME
change. In RT case however we sleep 7 so we somehow account it which is
wrong.
Sebastian
next prev parent reply other threads:[~2017-10-10 16:25 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-05 14:52 Sebastian Andrzej Siewior
2017-10-04 16:07 ` Mike Galbraith
2017-10-05 15:54 ` Sebastian Andrzej Siewior
2017-10-06 2:20 ` Mike Galbraith
2017-10-06 10:28 ` Sebastian Andrzej Siewior
2017-10-06 13:33 ` Mike Galbraith
2017-10-06 17:38 ` Mike Galbraith
2017-10-07 4:50 ` Mike Galbraith
2017-10-10 16:24 ` Sebastian Andrzej Siewior [this message]
2017-10-10 16:47 ` Sebastian Andrzej Siewior
2017-10-10 17:27 ` Mike Galbraith
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=20171010162455.qmvgr476j36nqev7@linutronix.de \
--to=bigeasy@linutronix.de \
--cc=anna-maria@linutronix.de \
--cc=efault@gmx.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rt-users@vger.kernel.org \
--cc=rostedt@goodmis.org \
--cc=tglx@linutronix.de \
/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
all inboxes | Powered by JetHome®