From 0cafa4ed610bd7ffed1ffe2982b4740845484035 Mon Sep 17 00:00:00 2001 From: Gunar Schorcht Date: Tue, 25 Feb 2020 09:28:59 +0100 Subject: [PATCH] tests/pkg_micro-ecc: fix NDEBUG compile problem --- tests/pkg_micro-ecc/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/pkg_micro-ecc/main.c b/tests/pkg_micro-ecc/main.c index a07035a98a..885e3b920d 100644 --- a/tests/pkg_micro-ecc/main.c +++ b/tests/pkg_micro-ecc/main.c @@ -36,7 +36,7 @@ #include #include -#include "assert.h" +#include "test_utils/expect.h" #include "hashes/sha256.h" #include "uECC.h" @@ -117,8 +117,8 @@ int main(void) const struct uECC_Curve_t *curve = uECC_secp256r1(); int errorc = 0; - assert(uECC_curve_private_key_size(curve) <= MAX_CURVE_SIZE); - assert(uECC_curve_public_key_size(curve) <= MAX_PUBLIC_KEY_SIZE); + expect(uECC_curve_private_key_size(curve) <= MAX_CURVE_SIZE); + expect(uECC_curve_public_key_size(curve) <= MAX_PUBLIC_KEY_SIZE); printf("Testing %d random private key pairs and signature without using HWRNG\n", TESTROUNDS);