Page MenuHomeFreeBSD

libc: Add unit tests for N2630 and possible collateral damage.
ClosedPublic

Authored by des on Aug 19 2023, 11:47 PM.
Tags
None
Referenced Files
F175299146: D41512.id126552.diff
Fri, Oct 9, 6:53 PM
F175299102: D41512.id126557.diff
Fri, Oct 9, 6:52 PM
F175298984: D41512.id126331.diff
Fri, Oct 9, 6:51 PM
F175298963: D41512.id126595.diff
Fri, Oct 9, 6:51 PM
F175298853: D41512.id126242.diff
Fri, Oct 9, 6:50 PM
F175293570: D41512.diff
Fri, Oct 9, 5:53 PM
Unknown Object (File)
Sat, Oct 3, 12:40 PM
Unknown Object (File)
Thu, Oct 1, 8:22 PM
Subscribers

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

des requested review of this revision.Aug 19 2023, 11:47 PM

Only issue I see, and it might not even be an issue, is assuming sizeof(int) == 4.

lib/libc/tests/stdio/snprintf_test.c
47

these assume 32-bit int. Is that sane wrt CHERI?

This revision is now accepted and ready to land.Aug 21 2023, 5:17 PM

Tests lgtm, will leave it to @ngie to comment on the netbsd-tests changes/approach.

This revision now requires review to proceed.Aug 21 2023, 9:23 PM

Fully test sscanf() and swscanf() changes.

These look good to me, though I did not verify the tables were right

This revision is now accepted and ready to land.Aug 28 2023, 3:28 PM