From 6d726c70e4bb57ade02281c73aa933f6ecd8f1fa Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Tue, 20 Dec 2022 13:17:11 +0100 Subject: [PATCH] Skip the misuse handler test when running benchmarks or wasm --- test/default/sodium_core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/default/sodium_core.c b/test/default/sodium_core.c index a3985b0e..c8eeb2ba 100644 --- a/test/default/sodium_core.c +++ b/test/default/sodium_core.c @@ -31,11 +31,11 @@ main(void) (void) sodium_runtime_has_rdrand(); sodium_set_misuse_handler(misuse_handler); -#ifndef __EMSCRIPTEN__ +#if defined(__EMSCRIPTEN__) || defined(__wasm__) || defined(BENCHMARKS) + printf("misuse_handler()\n"); +#else sodium_misuse(); printf("Misuse handler returned\n"); -#else - printf("misuse_handler()\n"); #endif return 0;