HomeFreeBSD

lib/libc/tests/string/strcspn_test.c: extend tests to catch previous bug

Description

lib/libc/tests/string/strcspn_test.c: extend tests to catch previous bug

This extends the strcspn() unit tests to catch mistakes in the
implementation that only appear when a mismatch occurs in a certain
position of the string against a certain position of the set.

See also: 52d4a4d4e0dedc72bc33082a3f84c2d0fd6f2cbb
Sponsored by: The FreeBSD Foundation
Approved by: imp
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D41821

(cherry picked from commit 601fd768cfd599518f7f9d30592763d1279d336d)

Details