Skip to content

atomic_queue:tests timeouts when machine has a single CPU #111

Description

@sanvila

Hello. When I build this package on AWS machines of type m7a.medium or r7a.medium, which incidentally have a single CPU, the tests do not pass. This is an example for version 1.7.2:

==================================== 1/2 =====================================
test:         atomic_queue:tests
start time:   04:41:28
duration:     30.04s
result:       killed by signal 15 SIGTERM
command:      MESON_TEST_ITERATION=1 UBSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 MALLOC_PERTURB_=217 MSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 ASAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1 /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/tests
==============================================================================

==================================== 2/2 =====================================
test:         atomic_queue:example
start time:   04:41:58
duration:     11.73s
result:       exit status 0
command:      MESON_TEST_ITERATION=1 MALLOC_PERTURB_=160 UBSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 MSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 ASAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1 /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/example
==============================================================================


Summary of Failures:

1/2 atomic_queue:tests   TIMEOUT        30.04s   killed by signal 15 SIGTERM

Ok:                1   
Fail:              0   
Timeout:           1   

Can I assume that atomic_queue:tests is not meant to be run on single-cpu systems, and if so, would it make sense if the test itself could detect that and be skipped?

(Note: This is usually reproducible by booting with GRUB_CMDLINE_LINUX="nr_cpus=1"

Thanks.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions