]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
lib/libc/tests/string: add unit tests for ffs, ffsl, ffsll, fls, flsl, and flsll
authorRobert Clausecker <fuz@FreeBSD.org>
Fri, 23 Jun 2023 17:26:44 +0000 (19:26 +0200)
committerRobert Clausecker <fuz@FreeBSD.org>
Mon, 3 Jul 2023 20:18:27 +0000 (22:18 +0200)
commit49390697b9265d08d3f831cf38cdc2f79e216c48
treec46cf658d19654471edda1eb6dbb15e8fb0bed8b
parente8423423737ec0c08fc021d58795d5d34a55dda2
lib/libc/tests/string: add unit tests for ffs, ffsl, ffsll, fls, flsl, and flsll

Also supply CFLAGS+=-fno-builtin to ensure our unit tests
actually test libc functions and not clang's builtins.

Sponsored by: FreeBSD Foundation
Approved by: kevans
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D40729
lib/libc/tests/string/Makefile
lib/libc/tests/string/ffs_test.c [new file with mode: 0644]
lib/libc/tests/string/ffsl_test.c [new file with mode: 0644]
lib/libc/tests/string/ffsll_test.c [new file with mode: 0644]
lib/libc/tests/string/fls_test.c [new file with mode: 0644]
lib/libc/tests/string/flsl_test.c [new file with mode: 0644]
lib/libc/tests/string/flsll_test.c [new file with mode: 0644]