From f31252bba70910d96659173ec7c3fc79be65d56f Mon Sep 17 00:00:00 2001
From: Mathieu Faverge <mathieu.faverge@inria.fr>
Date: Tue, 3 Sep 2024 17:39:51 +0200
Subject: [PATCH] Correct if test from !480

---
 testing/chameleon_ztesting.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

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