From f842b157e0a541b5c4b151b1c1904a3d8581afc5 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 82fd57aa..4bcdb33e 100644 --- a/test/default/sodium_core.c +++ b/test/default/sodium_core.c @@ -32,11 +32,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;