Hi! > Before kernel validates that fd is valid, it checks itimerspec struct > with timespec_valid(). This struct is currently not initialised in test, > which can cause failures, for example: > > timerfd_settime01 1 TFAIL : timerfd_settime01.c:121: timerfd_settime() > failed unexpectedly; expected: 9 - Bad file > descriptor: TEST_ERRNO=EINVAL(22): Invalid argument > timerfd_settime01 2 TFAIL : timerfd_settime01.c:121: timerfd_settime() > failed unexpectedly; expected: 14 - Bad address: > TEST_ERRNO=EINVAL(22): Invalid argument > > Fix this by giving fields in this struct some deterministic values > (zero in this patch).
I've reproduced the failure and tested the fix. Tested and acked. -- Cyril Hrubis chru...@suse.cz ------------------------------------------------------------------------------ Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list