Source-Changes archive

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

CVS commit: [netbsd-10] src/tests/lib/libc/stdlib



Module Name:    src
Committed By:   martin
Date:           Sat Aug 24 16:24:05 UTC 2024

Modified Files:
        src/tests/lib/libc/stdlib [netbsd-10]: Makefile t_posix_memalign.c

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.33.6.1 src/tests/lib/libc/stdlib/Makefile
cvs rdiff -u -r1.5 -r1.5.10.1 src/tests/lib/libc/stdlib/t_posix_memalign.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index