[LTP] [PATCH 6/8] syscalls/clock_gettime03: Add basic time namespace test
Cyril Hrubis
chrubis@suse.cz
Mon Mar 9 14:49:30 CET 2020
Hi!
> > +static void child(struct tcase *tc)
> > +{
> > + struct timespec then;
> > + struct timespec parent_then;
> > + long long diff;
> > +
> > + SAFE_CLOCK_GETTIME(tc->clk_id, &then);
> > +
> > + setns(parent_ns, CLONE_NEWTIME);
>
> Maybe check the error code?
Indeed, I guess that I should add SAFE_SETNS() and then make use of that
in the tests.
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list