Skip to content

x/sys/unix: TestSchedSetaffinity fails on ppc64x with some smt settings #27875

@laboger

Description

@laboger

Please answer these questions before submitting your issue. Thanks!

What version of Go are you using (go version)?

latest

Does this issue reproduce with the latest release?

yes

What operating system and processor architecture are you using (go env)?

ppc64le

What did you do?

./all.bash

What did you expect to see?

ALL PASSED

What did you see instead?

=== RUN TestSchedSetaffinity
--- FAIL: TestSchedSetaffinity (0.00s)
syscall_linux_test.go:277: SchedSetaffinity: invalid argument

This problem occurs only if someone has used the ppc64_cpu command with the -smt option on the system so that some cores are not active. That causes the syscall to flag an invalid argument if an inactive core is passed.

I have a patch for the test to avoid this error but thought an issue would be appropriate here.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions