From 281e8dc21c62f2c9a0e11a7d1908ae87e9f4b019 Mon Sep 17 00:00:00 2001
From: Philippe SWARTVAGHER <philippe.swartvagher@inria.fr>
Date: Wed, 31 Jul 2024 11:05:04 +0200
Subject: [PATCH] testing: get appaccuracy paramater only when it is defined

Otherwise it complains "parameters_getvalue_fixdbl could not find
parameter appaccuracy".
---
 testing/chameleon_ztesting.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testing/chameleon_ztesting.c b/testing/chameleon_ztesting.c
index 9cfa979af..c8eff16e2 100644
--- a/testing/chameleon_ztesting.c
+++ b/testing/chameleon_ztesting.c
@@ -167,7 +167,7 @@ int main (int argc, char **argv) {
 
     testing_options_init( &options );
 
-#if !defined(CHAMELEON_SIMULATION)
+#if !defined(CHAMELEON_SIMULATION) && (defined(PRECISION_z) || defined(PRECISION_d))
     /* Let's initialize the accuracy for the checks */
     {
         cham_fixdbl_t accuracy = parameters_getvalue_fixdbl( "appaccuracy" );
-- 
GitLab