mirror of
https://github.com/hanzoai/datastore.git
synced 2026-09-26 13:55:07 +00:00
The test bind-mounts a fake /sys/devices/system/cpu/online to simulate having fewer online CPUs than configured. However, `sysconf(_SC_NPROCESSORS_ONLN)` does not always read from that file - glibc can use `sched_getaffinity` instead, especially on newer kernels or ARM. When the override doesn't take effect, the test fails with `assert online_cpus == 1` getting the real CPU count. Skip instead of failing, since the test's precondition cannot be guaranteed on all systems. Co-Authored-By: Claude Opus 4.6 <[email protected]>