| f7098b86 | 09-Nov-2023 |
Robert Clausecker <fuz@FreeBSD.org> |
lib/libc/tests/string: add unit test for strlcpy
A straightforward derivation from the stpncpy unit test.
Sponsored by: The FreeBSD Foundation Tested by: developers@, exp-run Approved by: mjg MFC a
lib/libc/tests/string: add unit test for strlcpy
A straightforward derivation from the stpncpy unit test.
Sponsored by: The FreeBSD Foundation Tested by: developers@, exp-run Approved by: mjg MFC after: 1 month MFC to: stable/14 PR: 275785 Differential Revision: https://reviews.freebsd.org/D42863
show more ...
|
| 6fa9e7d8 | 05-Nov-2023 |
Robert Clausecker <fuz@FreeBSD.org> |
lib/libc/tests/string/stpncpy_test.c: extend for upcoming SSE implementation
This adds additional unit tests validating the function for All possible alignment offsets of source and destination.
Al
lib/libc/tests/string/stpncpy_test.c: extend for upcoming SSE implementation
This adds additional unit tests validating the function for All possible alignment offsets of source and destination.
Also extend the test to allow testing of an external stpncpy implementation, which greatly simplifies the development of custom implementations.
Sponsored by: The FreeBSD Foundation Tested by: developers@, exp-run Approved by: mjg MFC after: 1 month MFC to: stable/14 PR: 275785 Differential Revision: https://reviews.freebsd.org/D42519
show more ...
|
| c6cc06d4 | 30-Aug-2023 |
Robert Clausecker <fuz@FreeBSD.org> |
lib/libc/tests/string: expand memcmp test to bcmp, timingsafe_{b,mem}cmp
The four functions more or less perform the same operation. Reuse the same unit test with slight changes so we can cover them
lib/libc/tests/string: expand memcmp test to bcmp, timingsafe_{b,mem}cmp
The four functions more or less perform the same operation. Reuse the same unit test with slight changes so we can cover them all. Constant-time operation is not verified for the timingsafe_* functions.
Sponsored by: The FreeBSD Foundation Approved by: ngie MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D41528
show more ...
|
| 468adddd | 21-Aug-2023 |
Robert Clausecker <fuz@FreeBSD.org> |
lib/libc/tests/string: derive strspn(3) tests from strcspn(3) tests
To cover the new optimised amd64 strspn(3) SIMD implementation, extend the previously written strcspn(3) unit test to also cover s
lib/libc/tests/string: derive strspn(3) tests from strcspn(3) tests
To cover the new optimised amd64 strspn(3) SIMD implementation, extend the previously written strcspn(3) unit test to also cover strspn(3).
Sponsored by: The FreeBSD Foundation Approved by: mjg MFC after: 1 week MFC to: stable/14 Differential Revision: https://reviews.freebsd.org/D41567
show more ...
|