]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
ci: get around https://github.com/lxc/lxc/issues/3796
authorEvgeny Vereshchagin <evvers@ya.ru>
Mon, 12 Apr 2021 18:03:50 +0000 (18:03 +0000)
committerEvgeny Vereshchagin <evvers@ya.ru>
Mon, 12 Apr 2021 23:20:38 +0000 (23:20 +0000)
Signed-off-by: Evgeny Vereshchagin <evvers@ya.ru>
.github/workflows/sanitizers.sh

index fbcfc2adb1c709956de33ab901620079eccffb4d..8e1bce85af5aba07275381c4f8c1edf2dcbedaae 100755 (executable)
@@ -48,6 +48,16 @@ ASAN_OPTIONS=$ASAN_OPTIONS:detect_leaks=0 UBSAN_OPTIONS=$UBSAN_OPTIONS /usr/bin/
 EOF
 chmod +x /usr/bin/lxc-test-concurrent
 
+if [[ "$CC" == "clang" ]]; then
+    mv /usr/bin/{lxc-test-console-log,test-console-log.orig}
+    cat <<EOF >/usr/bin/lxc-test-console-log
+#!/bin/bash
+printf "Memory leaks are ignored due to https://github.com/lxc/lxc/issues/3796.\n"
+ASAN_OPTIONS=$ASAN_OPTIONS:detect_leaks=0 UBSAN_OPTIONS=$UBSAN_OPTIONS /usr/bin/test-console-log.orig
+EOF
+    chmod +x /usr/bin/lxc-test-console-log
+fi
+
 sed -i 's/USE_LXC_BRIDGE="false"/USE_LXC_BRIDGE="true"/' /etc/default/lxc
 systemctl daemon-reload
 systemctl restart apparmor