| f5d63ae2 | 09-Nov-2023 |
Robert Clausecker <[email protected]> |
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
(cherry picked from commit f7098b8659923873a7c60b64cb68182e470786f9)
show more ...
|
| 438a1ff8 | 05-Nov-2023 |
Robert Clausecker <[email protected]> |
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
(cherry picked from commit 6fa9e7d8737548ef93c573387ce62402c368d486)
show more ...
|
| 08ad2975 | 19-Dec-2023 |
Robert Clausecker <[email protected]> |
lib/libc/tests/string/strcspn_test.c: add test for correct match order
This new unit test verifies that if there are multiple matches, the first match is returned, ignoring later matches.
Approved
lib/libc/tests/string/strcspn_test.c: add test for correct match order
This new unit test verifies that if there are multiple matches, the first match is returned, ignoring later matches.
Approved by: mjg (blanket, via IRC) MFC after: 1 week MFC to: stable/14
(cherry picked from commit a0ecf2224ea35d029d33541878f0eee42f5fd84f)
show more ...
|
| c91cfb7f | 30-Aug-2023 |
Robert Clausecker <[email protected]> |
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
(cherry picked from commit c6cc06d465a98270ef734ffec7c9012ec3a1bd17)
show more ...
|
| 7aaa37fa | 14-Jul-2023 |
Robert Clausecker <[email protected]> |
lib/libc/tests/string/memcmp_test.c: extend test to support custom memcmp function
Extend the tests to permit loading an external memcmp function and testing it over using the libc version. This was
lib/libc/tests/string/memcmp_test.c: extend test to support custom memcmp function
Extend the tests to permit loading an external memcmp function and testing it over using the libc version. This was added by the example of other tests in the test suite doing the same thing and helped tremendously in development.
This change was originally part of D41442 but was taken out to permit separate review as extrapolated from @ngie's request in D41349.
Sponsored by: FreeBSD Foundation Approved by: ngie Differential Revision: https://reviews.freebsd.org/D41528
(cherry picked from commit b166580681e3af173ec368656019d02ba1cc55ad)
show more ...
|
| 73883def | 21-Aug-2023 |
Robert Clausecker <[email protected]> |
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
(cherry picked from commit 468adddd75f6461fcdd2151122d85879ec592a5b)
show more ...
|