gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libmicrohttpd] 20/36: tests: unified use of function name macros


From: gnunet
Subject: [libmicrohttpd] 20/36: tests: unified use of function name macros
Date: Thu, 01 Jun 2023 12:30:25 +0200

This is an automated email from the git hooks/post-receive script.

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

commit 4fc2b96bb867b8c4b397479b1e48b6676a2c6515
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Fri May 19 14:27:41 2023 +0300

    tests: unified use of function name macros
---
 src/microhttpd/test_md5.c    | 12 ++++++------
 src/microhttpd/test_sha1.c   | 10 +++++-----
 src/microhttpd/test_sha256.c | 12 ++++++------
 3 files changed, 17 insertions(+), 17 deletions(-)

diff --git a/src/microhttpd/test_md5.c b/src/microhttpd/test_md5.c
index e6addab3..e3bb0ce3 100644
--- a/src/microhttpd/test_md5.c
+++ b/src/microhttpd/test_md5.c
@@ -1,6 +1,6 @@
 /*
   This file is part of libmicrohttpd
-  Copyright (C) 2019-2022 Evgeny Grin (Karlson2k)
+  Copyright (C) 2019-2023 Evgeny Grin (Karlson2k)
 
   This test tool is free software; you can redistribute it and/or
   modify it under the terms of the GNU General Public License as
@@ -335,7 +335,7 @@ test1_str (void)
       exit (99);
     }
 #endif
-    num_failed += check_result (__FUNCTION__, i, digest,
+    num_failed += check_result (MHD_FUNC_, i, digest,
                                 data_units1[i].digest);
   }
   MHD_MD5_deinit (&ctx);
@@ -365,7 +365,7 @@ test1_bin (void)
       exit (99);
     }
 #endif
-    num_failed += check_result (__FUNCTION__, i, digest,
+    num_failed += check_result (MHD_FUNC_, i, digest,
                                 data_units2[i].digest);
   }
   MHD_MD5_deinit (&ctx);
@@ -402,7 +402,7 @@ test2_str (void)
       exit (99);
     }
 #endif
-    num_failed += check_result (__FUNCTION__, i, digest,
+    num_failed += check_result (MHD_FUNC_, i, digest,
                                 data_units1[i].digest);
   }
   MHD_MD5_deinit (&ctx);
@@ -436,7 +436,7 @@ test2_bin (void)
       exit (99);
     }
 #endif
-    num_failed += check_result (__FUNCTION__, i, digest,
+    num_failed += check_result (MHD_FUNC_, i, digest,
                                 data_units2[i].digest);
   }
   MHD_MD5_deinit (&ctx);
@@ -485,7 +485,7 @@ test_unaligned (void)
       exit (99);
     }
 #endif
-    num_failed += check_result (__FUNCTION__, MAX_OFFSET - offset,
+    num_failed += check_result (MHD_FUNC_, MAX_OFFSET - offset,
                                 unaligned_digest, tdata->digest);
   }
   MHD_MD5_deinit (&ctx);
diff --git a/src/microhttpd/test_sha1.c b/src/microhttpd/test_sha1.c
index c90f8918..3d412c25 100644
--- a/src/microhttpd/test_sha1.c
+++ b/src/microhttpd/test_sha1.c
@@ -278,7 +278,7 @@ test1_str (void)
     MHD_SHA1_update (&ctx, (const uint8_t *) data_units1[i].str_l.str,
                      data_units1[i].str_l.len);
     MHD_SHA1_finish (&ctx, digest);
-    num_failed += check_result (__FUNCTION__, i, digest,
+    num_failed += check_result (MHD_FUNC_, i, digest,
                                 data_units1[i].digest);
   }
   return num_failed;
@@ -300,7 +300,7 @@ test1_bin (void)
     MHD_SHA1_update (&ctx, data_units2[i].bin_l.bin,
                      data_units2[i].bin_l.len);
     MHD_SHA1_finish (&ctx, digest);
-    num_failed += check_result (__FUNCTION__, i, digest,
+    num_failed += check_result (MHD_FUNC_, i, digest,
                                 data_units2[i].digest);
   }
   return num_failed;
@@ -325,7 +325,7 @@ test2_str (void)
     MHD_SHA1_update (&ctx, (const uint8_t *) data_units1[i].str_l.str + part_s,
                      data_units1[i].str_l.len - part_s);
     MHD_SHA1_finish (&ctx, digest);
-    num_failed += check_result (__FUNCTION__, i, digest,
+    num_failed += check_result (MHD_FUNC_, i, digest,
                                 data_units1[i].digest);
   }
   return num_failed;
@@ -349,7 +349,7 @@ test2_bin (void)
     MHD_SHA1_update (&ctx, data_units2[i].bin_l.bin + part_s,
                      data_units2[i].bin_l.len - part_s);
     MHD_SHA1_finish (&ctx, digest);
-    num_failed += check_result (__FUNCTION__, i, digest,
+    num_failed += check_result (MHD_FUNC_, i, digest,
                                 data_units2[i].digest);
   }
   return num_failed;
@@ -389,7 +389,7 @@ test_unaligned (void)
     MHD_SHA1_init (&ctx);
     MHD_SHA1_update (&ctx, unaligned_buf, tdata->bin_l.len);
     MHD_SHA1_finish (&ctx, unaligned_digest);
-    num_failed += check_result (__FUNCTION__, MAX_OFFSET - offset,
+    num_failed += check_result (MHD_FUNC_, MAX_OFFSET - offset,
                                 unaligned_digest, tdata->digest);
   }
   free (digest_buf);
diff --git a/src/microhttpd/test_sha256.c b/src/microhttpd/test_sha256.c
index 5f6559e2..e6ccc7ca 100644
--- a/src/microhttpd/test_sha256.c
+++ b/src/microhttpd/test_sha256.c
@@ -1,6 +1,6 @@
 /*
   This file is part of libmicrohttpd
-  Copyright (C) 2019-2022 Evgeny Grin (Karlson2k)
+  Copyright (C) 2019-2023 Evgeny Grin (Karlson2k)
 
   This test tool is free software; you can redistribute it and/or
   modify it under the terms of the GNU General Public License as
@@ -361,7 +361,7 @@ test1_str (void)
       exit (99);
     }
 #endif /* MHD_SHA256_HAS_EXT_ERROR */
-    num_failed += check_result (__FUNCTION__, i, digest,
+    num_failed += check_result (MHD_FUNC_, i, digest,
                                 data_units1[i].digest);
   }
   MHD_SHA256_deinit (&ctx);
@@ -391,7 +391,7 @@ test1_bin (void)
       exit (99);
     }
 #endif /* MHD_SHA256_HAS_EXT_ERROR */
-    num_failed += check_result (__FUNCTION__, i, digest,
+    num_failed += check_result (MHD_FUNC_, i, digest,
                                 data_units2[i].digest);
   }
   MHD_SHA256_deinit (&ctx);
@@ -429,7 +429,7 @@ test2_str (void)
       exit (99);
     }
 #endif /* MHD_SHA256_HAS_EXT_ERROR */
-    num_failed += check_result (__FUNCTION__, i, digest,
+    num_failed += check_result (MHD_FUNC_, i, digest,
                                 data_units1[i].digest);
   }
   MHD_SHA256_deinit (&ctx);
@@ -462,7 +462,7 @@ test2_bin (void)
       exit (99);
     }
 #endif /* MHD_SHA256_HAS_EXT_ERROR */
-    num_failed += check_result (__FUNCTION__, i, digest,
+    num_failed += check_result (MHD_FUNC_, i, digest,
                                 data_units2[i].digest);
   }
   MHD_SHA256_deinit (&ctx);
@@ -510,7 +510,7 @@ test_unaligned (void)
       exit (99);
     }
 #endif /* MHD_SHA256_HAS_EXT_ERROR */
-    num_failed += check_result (__FUNCTION__, MAX_OFFSET - offset,
+    num_failed += check_result (MHD_FUNC_, MAX_OFFSET - offset,
                                 unaligned_digest, tdata->digest);
   }
   free (digest_buf);

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]