]> git.ipfire.org Git - thirdparty/rspamd.git/commit
[Test] Fix integer expression errors in ASAN log checker
authorVsevolod Stakhov <vsevolod@rspamd.com>
Sat, 18 Oct 2025 14:32:31 +0000 (15:32 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Sat, 18 Oct 2025 14:32:31 +0000 (15:32 +0100)
commit86373fcfdf8d582ea3c75ee13062ac5c90fed9a7
treebe5158074d173e10db26e725061317a68c0003db
parent012ba5f3150409ed76c9ff26e6f7813273084056
[Test] Fix integer expression errors in ASAN log checker

Replace grep -c with wc -l to avoid malformed output when grep
returns results with filenames or multiple lines. The grep -c
command was producing output like "0\n0" instead of a single
integer, causing bash comparison failures.

Use wc -l with tr to ensure clean integer values, and add
error suppression to comparison operators for robustness.
test/integration/scripts/check-asan-logs.sh