]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
TEST-36-NUMAPOLICY: Skip when running with sanitizers
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 27 May 2024 08:23:38 +0000 (10:23 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 30 May 2024 10:47:43 +0000 (12:47 +0200)
The test does not work under sanitizers as strace is used. Until the
test is fixed to not use strace let's skip it when running with
sanitizers.

test/units/TEST-36-NUMAPOLICY.sh

index 02ca88f80df18ee1f55c2baf101cdf9649651501..fcd3d6dd8943b3f242828cec274e62a977f348f3 100755 (executable)
@@ -3,6 +3,11 @@
 set -eux
 set -o pipefail
 
+if [[ -n "${ASAN_OPTIONS:-}" ]]; then
+    echo "This test does not support running with sanitizers, skipping the test" | tee --append /skipped
+    exit 77
+fi
+
 # shellcheck disable=SC2317
 at_exit() {
     # shellcheck disable=SC2181