Re: [PATCH] Addded test for timer_create with clock_monotonic

2021-07-01 Thread Gedare Bloom
On Wed, Jun 30, 2021 at 6:48 PM zack leung wrote: > > > + remaining = (uint32_t)result->tv_nsec + result->tv_sec; > What does "remaining" mean here? What do you get if you add a > (truncated) nanoseconds value to a seconds value? (Hint: the units > aren't the same, so the arithmetic is meani

Re: [PATCH] Addded test for timer_create with clock_monotonic

2021-06-30 Thread zack leung
> + remaining = (uint32_t)result->tv_nsec + result->tv_sec; What does "remaining" mean here? What do you get if you add a (truncated) nanoseconds value to a seconds value? (Hint: the units aren't the same, so the arithmetic is meaningless.) I thought I could convert it back into the uint32_t

Re: [PATCH] Addded test for timer_create with clock_monotonic

2021-06-29 Thread Gedare Bloom
Hi Zack, Please provide a full name in your git-commit author metadata (git-config.user) Please use a short tag at the start of your commit to identify the scope, in this case, it will be "posix/timer" Check typo "addded" in your commit message. I think this commit is related to a ticket? if it

[PATCH] Addded test for timer_create with clock_monotonic

2021-06-29 Thread Zack
--- cpukit/include/rtems/posix/timer.h| 1 + cpukit/posix/src/psxtimercreate.c | 5 +- cpukit/posix/src/timergettime.c | 79 --- testsuites/psxtests/psxtimer02/psxtimer.c | 38 ++- 4 files changed, 98 insertions(+), 25 deletions(-) diff --gi

Re: Test for timer_create() with CLOCK_MONOTONIC

2020-04-13 Thread Joel Sherrill
On Mon, Apr 13, 2020, 11:53 AM Eshan Dhawan wrote: > timer_create also has support for other clock_id arguments > like CLOCK_PROCESS_CPUTIME_ID and CLOCK_THREAD_CPUTIME_ID > should I add the tests for them as well? > > reference: http://man7.org/linux/man-pages/man2/timer_create.2.html > If ther

Re: Test for timer_create() with CLOCK_MONOTONIC

2020-04-13 Thread Eshan Dhawan
timer_create also has support for other clock_id arguments like CLOCK_PROCESS_CPUTIME_ID and CLOCK_THREAD_CPUTIME_ID should I add the tests for them as well? reference: http://man7.org/linux/man-pages/man2/timer_create.2.html thanks -Eshan On Fri, Apr 10, 2020 at 9:35 AM Gedare Bloom wrote: >

Re: Test for timer_create() with CLOCK_MONOTONIC

2020-04-09 Thread Gedare Bloom
Please read the other thread "Test for clock_nanosleep with CLOCK_MONOTONIC (# 3890)" Have a look at the RTEMS Test Framework. On Thu, Apr 9, 2020 at 11:31 AM Eshan Dhawan wrote: > > > > On Thu, Apr 9, 2020 at 10:47 PM Joel Sherrill wrote: >> >> >> >> On Thu, Apr 9, 2020 at 12:14 PM Eshan Dhawa

Re: Test for timer_create() with CLOCK_MONOTONIC

2020-04-09 Thread Eshan Dhawan
On Thu, Apr 9, 2020 at 10:47 PM Joel Sherrill wrote: > > > On Thu, Apr 9, 2020 at 12:14 PM Eshan Dhawan > wrote: > >> hello, >> >> where would the test case of timer_create() with CLOCK_MONOTONIC be added >> ?? >> would they be added in >> psxtimer01 or psxtimer02 or will it be required to creat

Re: Test for timer_create() with CLOCK_MONOTONIC

2020-04-09 Thread Joel Sherrill
On Thu, Apr 9, 2020 at 12:14 PM Eshan Dhawan wrote: > hello, > > where would the test case of timer_create() with CLOCK_MONOTONIC be added > ?? > would they be added in > psxtimer01 or psxtimer02 or will it be required to create a new test file > for that? > I would probably just create a new te

Test for timer_create() with CLOCK_MONOTONIC

2020-04-09 Thread Eshan Dhawan
hello, where would the test case of timer_create() with CLOCK_MONOTONIC be added ?? would they be added in psxtimer01 or psxtimer02 or will it be required to create a new test file for that? thanks - Eshan ___ devel mailing list devel@rtems.org http://l