Skip to content

Build-time tests fail if machine has a single CPU #333

Description

@sanvila

Hello. While trying to build the Debian package for this project (version 5.6.71) on a virtual machine with 1 CPU, I noticed that the following tests fails:

=== RUN   TestOOB
    sess_test.go:1386: Max OOB size: 1360
    sess_test.go:1433: missing OOB echo for payload length 581
    sess_test.go:1433: missing OOB echo for payload length 582
[...]
    sess_test.go:1433: missing OOB echo for payload length 735
    sess_test.go:1433: missing OOB echo for payload length 736
    sess_test.go:1433: missing OOB echo for payload length 737
--- FAIL: TestOOB (1.79s)
=== RUN   TestOOB_OneSideHandler
    sess_test.go:1533: server missing OOB for payload length 335
    sess_test.go:1533: server missing OOB for payload length 383
    sess_test.go:1533: server missing OOB for payload length 384
[...]
    sess_test.go:1533: server missing OOB for payload length 612
    sess_test.go:1533: server missing OOB for payload length 613
    sess_test.go:1533: server missing OOB for payload length 614
--- FAIL: TestOOB_OneSideHandler (1.77s)

Does this mean that the program will not work ok on a machine with 1 CPU, or it is a bug in the tests?
(To reproduce, try configuring GRUB with GRUB_CMDLINE_LINUX="nr_cpus=1" and then rebooting).

[ I also noticed that the memory footprint has grown a lot, but I'll report that separately ]

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