Skip to content

Added container to compile/unittest with ASAN - #6336

Merged
larsewi merged 1 commit into
cfengine:masterfrom
SimonThalvorsen:CFE-3419
Aug 28, 2026
Merged

Added container to compile/unittest with ASAN#6336
larsewi merged 1 commit into
cfengine:masterfrom
SimonThalvorsen:CFE-3419

Conversation

@SimonThalvorsen

Copy link
Copy Markdown
Contributor

Ticket: CFE-3419
Changelog: None

Comment thread tests/asan-check/Makefile.am Outdated
Comment thread tests/asan-check/run_checks.sh Outdated
Ticket: CFE-3419
Changelog: None

Signed-off-by: Simon Halvorsen <simon.halvorsen@northern.tech>
local n_procs use_procs
n_procs="$(getconf _NPROCESSORS_ONLN)"
use_procs=$((n_procs/2))
if [ "$use_procs" -lt "1" ]; then

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if [ "$use_procs" -lt "1" ]; then
if [ "$use_procs" -lt 1 ]; then

Comment on lines +22 to +27
failure=0
if ! check_with_asan; then
echo "FAIL: ASAN compile/unit check failed";
failure=1;
fi
exit $failure

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
failure=0
if ! check_with_asan; then
echo "FAIL: ASAN compile/unit check failed";
failure=1;
fi
exit $failure
if ! check_with_asan; then
echo "FAIL: ASAN compile/unit check failed";
exit 1;
fi

@larsewi
larsewi merged commit c92682b into cfengine:master Aug 28, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants