Make sure Asan failures are detected in 'make test' #304

Merged
gilles-peskine-arm merged 4 commits from asan-test-fail-crypto into development 2019-10-24 04:06:53 -05:00
gilles-peskine-arm commented 2019-10-21 13:03:46 -05:00 (Migrated from github.com)

Make sure that all defects reported by Asan, including memory leaks, are treated as failures. This was not the case when running make test: we could see the Asan messages in the logs, but only if we went looking for them, because the tests were recorded as passing.

One memory leak went undetected for a while due to this bug: in test_suite_psa_crypto_se_driver_hal (fix duplicated here and in https://github.com/ARMmbed/mbed-crypto/pull/298).

Fix #303.

Make sure that all defects reported by Asan, including memory leaks, are treated as failures. This was not the case when running `make test`: we could see the Asan messages in the logs, but only if we went looking for them, because the tests were recorded as passing. One memory leak went undetected for a while due to this bug: in `test_suite_psa_crypto_se_driver_hal` (fix duplicated here and in https://github.com/ARMmbed/mbed-crypto/pull/298). Fix #303.
Patater (Migrated from github.com) approved these changes 2019-10-22 06:22:08 -05:00
Patater (Migrated from github.com) left a comment

LGTM

LGTM
AndrzejKurek (Migrated from github.com) approved these changes 2019-10-24 04:03:42 -05:00
gilles-peskine-arm commented 2019-10-24 04:06:45 -05:00 (Migrated from github.com)

The CI failures are a known problem with the job getting-started-CY8CKIT_062_WIFI_BT-IAR which is not related to this PR. Ok to merge.

The CI failures are a known problem with the job `getting-started-CY8CKIT_062_WIFI_BT-IAR` which is not related to this PR. Ok to merge.
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-ARMmbed/mbed-crypto!304
No description provided.