Skip to content

Added container to compile/unittest with ASAN - #6336

Open
SimonThalvorsen wants to merge 1 commit into
cfengine:masterfrom
SimonThalvorsen:CFE-3419
Open

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

Conversation

@SimonThalvorsen

Copy link
Copy Markdown
Contributor

Ticket: CFE-3419
Changelog: None

Ticket: CFE-3419
Changelog: None

Signed-off-by: Simon Halvorsen <simon.halvorsen@northern.tech>
@@ -0,0 +1,25 @@
#
# Copyright 2021 Northern.tech AS

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
# Copyright 2021 Northern.tech AS
# Copyright 2026 Northern.tech AS

cd "$(dirname "$0")"/../../

failure=0
check_with_asan || { echo "FAIL: ASAN compile/unit check failed"; failure=1; }

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.

I would personally prefer:

Suggested change
check_with_asan || { echo "FAIL: ASAN compile/unit check failed"; failure=1; }
if check_with_asan; then
echo "FAIL: ASAN compile/unit check failed";
failure=1;
fi

maybe you can even just exit directly?

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