[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.
- [libmicrohttpd] 16/36: test_post: fixed caseless key name match, (continued)
- [libmicrohttpd] 16/36: test_post: fixed caseless key name match, gnunet, 2023/06/01
- [libmicrohttpd] 19/36: Simplified usage of the function name magic macros, gnunet, 2023/06/01
- [libmicrohttpd] 23/36: .gitignore: force include all *.{c,h} files, gnunet, 2023/06/01
- [libmicrohttpd] 26/36: test_client_put_stop: fixed typo in diag message, gnunet, 2023/06/01
- [libmicrohttpd] 25/36: Detect sysctl() symbols in configure, gnunet, 2023/06/01
- [libmicrohttpd] 28/36: contrib/make-dist.sh: added use of zopfli if available, gnunet, 2023/06/01
- [libmicrohttpd] 29/36: daemon.c: redesigned code for clarity and formatting, gnunet, 2023/06/01
- [libmicrohttpd] 35/36: autoinit_funcs.h: fixed warning on MSVC, gnunet, 2023/06/01
- [libmicrohttpd] 27/36: Added support for custom command for tarball compression, gnunet, 2023/06/01
- [libmicrohttpd] 15/36: examples/largepost.c: fixed caseless method match, gnunet, 2023/06/01
- [libmicrohttpd] 20/36: tests: unified use of function name macros,
gnunet <=
- [libmicrohttpd] 21/36: Added internal preprocessor macro for magic macro presence, gnunet, 2023/06/01
- [libmicrohttpd] 30/36: Fixed compiler warning when built without poll() support, gnunet, 2023/06/01
- [libmicrohttpd] 31/36: Avoided potential compiler warnings, gnunet, 2023/06/01
- [libmicrohttpd] 32/36: Added macro for base64 decoded size, gnunet, 2023/06/01
- [libmicrohttpd] 36/36: W32 VS Project: fixed warning with external build systems, gnunet, 2023/06/01
- [libmicrohttpd] 34/36: W32 VS Project: minor internal fixes, fixed files for "dist", gnunet, 2023/06/01
- [libmicrohttpd] 33/36: W32 VS project: reverted to standard arches names, gnunet, 2023/06/01