From 371bf019574b7930d009f8c11fb5d6fa68d4c6dd Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Tue, 19 Oct 2021 21:21:52 -0400 Subject: [PATCH] Tests: Fix numactl on WSL2 --- test_regress/t/t_bench_mux4k_onecpu.pl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test_regress/t/t_bench_mux4k_onecpu.pl b/test_regress/t/t_bench_mux4k_onecpu.pl index 832b8d6a4..c53837685 100755 --- a/test_regress/t/t_bench_mux4k_onecpu.pl +++ b/test_regress/t/t_bench_mux4k_onecpu.pl @@ -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(