Home | History | Annotate | Download | only in stdlib
History log of /src/tests/lib/libc/stdlib/t_posix_memalign.c
RevisionDateAuthorComments
 1.8  05-Jul-2023  riastradh t_posix_memalign: Simplify.

No functional change intended.
 1.7  05-Jul-2023  riastradh t_posix_memalign: Fix this to reflect restriction lifted in C17.
 1.6  04-Jul-2023  riastradh t_posix_memalign: Expand test cases and properties.

- Test cartesian product of a sampling of sizes and a sampling of
alignments.

- Verify all the edge cases I could find in posix_memalign and
aligned_alloc, including failure modes.

- Test an unreasonably large (but aligned) allocation size.

- Use ATF_CHECK_* instead of ATF_REQUIRE_* so all failures will be
reported, not just the first one.

- While here, build with -fno-builtin-aligned_alloc and with
-fno-builtin-posix_memalign to make sure the compiler doesn't try
any shenanigans.

XXX pullup-10
 1.5  29-Jul-2018  maya branches: 1.5.10;
Don't require size to be a multiple of alignment. This is no longer a
requirement as of C18.
 1.4  07-Nov-2015  nros branches: 1.4.14; 1.4.16;
Fix code style errors pointed out by christos during the review of the
aligned_alloc test that also applies to the posix_memalign test.
Fix code style errors that I forgot to fix in the aligned_alloc test.
 1.3  07-Nov-2015  nros Add the C11 function aligned_alloc to libc.
 1.2  07-Jul-2011  jruoho Rename some test case names. No functional change.
 1.1  01-Jan-2011  pgoyette Convert a few more tests from regress to atf
 1.4.16.1  10-Jun-2019  christos Sync with HEAD
 1.4.14.1  06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.5.10.1  24-Aug-2024  martin Pull up following revision(s) (requested by riastradh in ticket #808):

tests/lib/libc/stdlib/t_posix_memalign.c: revision 1.6
tests/lib/libc/stdlib/t_posix_memalign.c: revision 1.7
tests/lib/libc/stdlib/Makefile: revision 1.34

t_posix_memalign: Expand test cases and properties.
- Test cartesian product of a sampling of sizes and a sampling of
alignments.
- Verify all the edge cases I could find in posix_memalign and
aligned_alloc, including failure modes.
- Test an unreasonably large (but aligned) allocation size.
- Use ATF_CHECK_* instead of ATF_REQUIRE_* so all failures will be
reported, not just the first one.
- While here, build with -fno-builtin-aligned_alloc and with
-fno-builtin-posix_memalign to make sure the compiler doesn't try
any shenanigans.

t_posix_memalign: Fix this to reflect restriction lifted in C17.

RSS XML Feed