]> Savannah Git Hosting - gnulib.git/commitdiff
tests: Add comments.
authorBruno Haible <bruno@clisp.org>
Mon, 4 Nov 2024 12:49:22 +0000 (13:49 +0100)
committerBruno Haible <bruno@clisp.org>
Mon, 4 Nov 2024 12:49:22 +0000 (13:49 +0100)
* tests/test-aligned_alloc.c (main): Clarify that we test a zero size.
* tests/test-posix_memalign.c (main): Likewise.

ChangeLog
tests/test-aligned_alloc.c
tests/test-posix_memalign.c

index c73909152a4138218144ff41e0e1ed6588021908..8d0ab77a9721fffabc4d23ecad95a5afd29f677a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-11-04  Bruno Haible  <bruno@clisp.org>
+
+       tests: Add comments.
+       * tests/test-aligned_alloc.c (main): Clarify that we test a zero size.
+       * tests/test-posix_memalign.c (main): Likewise.
+
 2024-11-04  Bruno Haible  <bruno@clisp.org>
 
        malloc, calloc, realloc tests: Work around clang optimization bug.
index e4aba982211c18c280e5e82138cfb45d6f5785b6..bf953fe85d1bdec3a9b566576c286077b1b32ed4 100644 (file)
@@ -36,8 +36,9 @@ main (int argc, char *argv[])
 #if HAVE_ALIGNED_ALLOC
   static size_t sizes[] =
     {
-      13, 8, 17, 450, 320, 1, 99, 4, 15, 16,
-      2, 76, 37, 127, 2406, 641, 5781, 0
+      13, 8, 17, 450, 320, 1, 99, 4, 15, 16, 2, 76, 37, 127, 2406, 641, 5781,
+      /* Test also a zero size.  */
+      0
     };
   void *volatile aligned2_blocks[SIZEOF (sizes)];
   void *volatile aligned4_blocks[SIZEOF (sizes)];
index b61ac4e2a008eaa05d6259469bcd1f6cf2767a1d..a9a6fc1593a971d802d7f6318bfd632e39f63b11 100644 (file)
@@ -34,8 +34,9 @@ main (int argc, char *argv[])
 #if HAVE_POSIX_MEMALIGN
   static size_t sizes[] =
     {
-      13, 8, 17, 450, 320, 1, 99, 4, 15, 16,
-      2, 76, 37, 127, 2406, 641, 5781, 0
+      13, 8, 17, 450, 320, 1, 99, 4, 15, 16, 2, 76, 37, 127, 2406, 641, 5781,
+      /* Test also a zero size.  */
+      0
     };
   void *aligned2_blocks[SIZEOF (sizes)];
   void *aligned4_blocks[SIZEOF (sizes)];