]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Test] Disable leak detection for rspamadm and rspamc utilities
authorVsevolod Stakhov <vsevolod@rspamd.com>
Sat, 18 Oct 2025 08:03:46 +0000 (09:03 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Sat, 18 Oct 2025 08:03:46 +0000 (09:03 +0100)
Set ASAN_OPTIONS=detect_leaks=0 for CLI tools to avoid false
positives, while rspamd daemon still has leak detection enabled

.github/workflows/integration-test.yml
test/integration/scripts/integration-test.sh

index 35871052415f1b15209871f2cb5fafdb230a6632..00b02ae6ec814d96781d9ba8a5e8abf3c62c8cbc 100644 (file)
@@ -84,6 +84,9 @@ jobs:
           # Use rspamadm from build
           export PATH="${GITHUB_WORKSPACE}/install/bin:$PATH"
 
+          # Disable leak detection for rspamadm utility
+          export ASAN_OPTIONS=detect_leaks=0
+
           # Generate keypair for fuzzy worker
           KEYPAIR=$(rspamadm keypair -u)
           FUZZY_PRIVKEY=$(echo "$KEYPAIR" | grep privkey | cut -d'"' -f2)
index c9c01606c567dfb2a692f7a4233ac8c729854abc..4cc80a34d68cd5577b7c2929d59d30ae3a7116ac 100755 (executable)
@@ -4,6 +4,9 @@
 
 set -e
 
+# Disable leak detection for rspamc utility to avoid false positives
+export ASAN_OPTIONS=detect_leaks=0
+
 # Configuration
 RSPAMD_HOST=${RSPAMD_HOST:-localhost}
 CONTROLLER_PORT=${CONTROLLER_PORT:-50002}