Tests: Fix numactl on WSL2

This commit is contained in:
Wilson Snyder 2021-10-19 21:21:52 -04:00
parent ef7759a522
commit 371bf01957

View File

@ -17,7 +17,10 @@ compile(
$Self->wno_unopthreads_for_few_cores()]
);
if (`numactl --show` !~ /cpu/) {
# WSL2 gives a warning and we must skip the test:
# "physcpubind: 0 1 2 3 ...\n No NUMA support available on this system."
my $nout = `numactl --show`;
if ($nout !~ /cpu/ || $nout =~ /system does not support NUMA/i) {
skip("No numactl available");
} else {
execute(