Tests: Fix numactl on WSL2
This commit is contained in:
parent
ef7759a522
commit
371bf01957
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in New Issue