From 7f4d9680834a9452defb20740af08c845b762930 Mon Sep 17 00:00:00 2001
From: Timothy Tur <tvtur@edu.hse.ru>
Date: Wed, 5 Feb 2025 17:23:47 +0300
Subject: [PATCH] looking at test

---
 examples/tests/test-belt-hash.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/examples/tests/test-belt-hash.c b/examples/tests/test-belt-hash.c
index 8034bc81..9980f2d6 100644
--- a/examples/tests/test-belt-hash.c
+++ b/examples/tests/test-belt-hash.c
@@ -37,8 +37,12 @@ int main( void ) {
   ak_uint8 A[32] = {0};
   struct hash ctx;
 
-  ak_log_set_level( ak_log_none );
-  ak_libakrypt_create( ak_function_log_stderr );
+  //ak_log_set_level( ak_log_none );
+  //ak_libakrypt_create( ak_function_log_stderr );
+  if (ak_libakrypt_create(NULL) != ak_true) {
+    ak_libakrypt_destroy();
+    return EXIT_FAILURE;
+  }
 
   printf("--------------------Testing belt-hash----------------------\n"
     "               -----------Test 1------------\n"
-- 
GitLab