[LTP] [PATCH] times03: don't assume process initial [us]time is 0

Li Wang liwan@redhat.com
Wed Mar 7 10:13:41 CET 2018


On Wed, Mar 7, 2018 at 4:34 PM, Jan Stancek <jstancek@redhat.com> wrote:

> times() runs immediately after fork(), but syscall alone
> seems to be enough for some systems to already account ticks.
>
> For example on arm64 with 4.14:
>   tst_test.c:980: INFO: Timeout per run is 0h 05m 00s
>   times03.c:102: PASS: buf1.tms_utime = 0
>   times03.c:105: FAIL: buf1.tms_stime = 1
>   ...
>
> This patch drops the initial zero check for [us]time.
>

​Acked-by: Li Wang <liwang@redhat.com>​



-- 
Regards,
Li Wang
Email: liwang@redhat.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20180307/976413e1/attachment.html>


More information about the ltp mailing list