[LTP] [Automated-testing] [PATCH v2 23/30] fuzzy_sync: Convert to runtime

Petr Vorel pvorel@suse.cz
Tue May 3 23:30:21 CEST 2022


Hi Cyril,

> The runtime for fuzzy sync tests are computed as timeout * exec_time_p.
> The default timeout was 300 and the default was 0.5.

> CC: Richard Palethorpe <rpalethorpe@suse.com>
> Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
> ---
>  include/tst_fuzzy_sync.h                      | 19 ++++---------------
>  testcases/kernel/crypto/af_alg07.c            |  1 +
>  testcases/kernel/mem/thp/thp04.c              |  1 +
>  testcases/kernel/pty/pty03.c                  |  2 +-
>  testcases/kernel/pty/pty05.c                  |  1 +
>  testcases/kernel/pty/pty06.c                  |  1 +
>  testcases/kernel/pty/pty07.c                  |  1 +
>  testcases/kernel/sound/snd_seq01.c            |  2 +-
>  testcases/kernel/sound/snd_timer01.c          |  1 +
>  testcases/kernel/syscalls/bind/bind06.c       |  2 +-
>  testcases/kernel/syscalls/inotify/inotify09.c |  1 +
>  .../kernel/syscalls/ipc/shmctl/shmctl05.c     |  2 +-
>  testcases/kernel/syscalls/sendmsg/sendmsg03.c |  1 +
>  .../kernel/syscalls/setsockopt/setsockopt06.c |  2 +-
>  .../kernel/syscalls/setsockopt/setsockopt07.c |  1 +
>  .../syscalls/timerfd/timerfd_settime02.c      |  1 +
>  testcases/kernel/syscalls/writev/writev03.c   |  2 +-
>  17 files changed, 20 insertions(+), 21 deletions(-)

FYI you haven't converted fuzzy sync tests.
I suppose these errors must be fix in first commit.

./tst_fuzzy_sync01
tst_test.c:1522: TINFO: Timeout per run is 0h 00m 30s
tst_test.c:1483: TBROK: Runtime not set!

./tst_fuzzy_sync02
tst_test.c:1522: TINFO: Timeout per run is 0h 00m 30s
tst_test.c:1483: TBROK: Runtime not set!

./tst_fuzzy_sync03
tst_test.c:1522: TINFO: Timeout per run is 0h 00m 30s
tst_test.c:1483: TBROK: Runtime not set!
tst_fuzzy_sync03.c:45: TFAIL: Worker performed wrong number of iterations: 0 != 65535


Only tst_fuzzy_sync03.c is run in CI:
https://github.com/pevik/ltp/runs/6280658557?check_suite_focus=true
/__w/ltp/ltp/lib/tst_test.c:1483: TBROK: Runtime not set!
/__w/ltp/ltp/lib/newlib_tests/tst_fuzzy_sync03.c:45: TFAIL: Worker performed wrong number of iterations: 0 != 65535

maybe after fix the other two might be possible to run in CI as well.

Kind regards,
Petr


More information about the ltp mailing list