[LTP] LTP Release

Thadeu Lima de Souza Cascardo
2019-09-26T10:43:08Z

On Tue, Sep 10, 2019 at 03:05:53PM +0200, Cyril Hrubis wrote:
> Hi!
> > The one to print errno number.
> > [PATCH] tst_res: Print errno number in addition to error name
>
> Pushed the patch as it was, I do not think that reordering the
> statements was important enough.
>
> > Some test failures:
> > ==============
> >
> > acct02 (s390x):
> > acct02.c:174: INFO: Verifying using 'struct acct_v3'
> > acct02.c:140: INFO: Number of accounting file entries tested: 2
> > acct02.c:145: FAIL: acct() wrote incorrect file contents!
>
> I can reproduce it here as well, no idea what is wrong there. I guess
> that modifying the test to be more verbose, i.e. to print if we haven't
> matched the pid or if the contents of the structure were wrong would be
> a good start.
>
> > timer_create01 (s390x, ppc64le, aarch64):
> > timer_create01.c:48: INFO: Testing notification type: SIGEV_THREAD_ID
> > timer_create01.c:93: PASS: Timer successfully created for CLOCK_REALTIME
> > timer_create01.c:93: PASS: Timer successfully created for CLOCK_MONOTONIC
> > timer_create01.c:93: PASS: Timer successfully created for
> > CLOCK_PROCESS_CPUTIME_ID
> > timer_create01.c:93: PASS: Timer successfully created for
> > CLOCK_THREAD_CPUTIME_ID
> > timer_create01.c:93: PASS: Timer successfully created for CLOCK_BOOTTIME
> > timer_create01.c:87: FAIL: Failed to create timer for CLOCK_BOOTTIME_ALARM:
> > ???
> > timer_create01.c:87: FAIL: Failed to create timer for CLOCK_REALTIME_ALARM:
> > ???
> > timer_create01.c:93: PASS: Timer successfully created for CLOCK_TAI
>
> I'm pretty sure that we concluded that this is a kernel bug since it
> returns kernel internal errno.
>

And a pull request has already been sent to Linus to fix this. [1]

Now, the test also needs to check for EOPNOTSUPP instead of only EINVAL. I'll
prepare a patch.

[1] https://lore.kernel.org/lkml/156864062018.3407.10822767012822306757.tglx@nanos.tec.linutronix.de/

> --
> Cyril Hrubis
> chrubis@suse.cz
>
> --
> Mailing list info: https://lists.linux.it/listinfo/ltp