blob: c6600c9470ef413f9c424e67751e6b3ae0809573 [file]
add_custom_target(libc_sys_random_unittests)
add_libc_test(
getrandom_test
SUITE
libc_sys_random_unittests
SRCS
getrandom_test.cpp
DEPENDS
libc.include.sys_random
libc.src.errno.errno
libc.src.math.fabs
libc.src.sys.random.getrandom
libc.test.UnitTest.ErrnoCheckingTest
libc.test.UnitTest.ErrnoSetterMatcher
)
add_libc_test(
getentropy_test
SUITE
libc_sys_random_unittests
SRCS
getentropy_test.cpp
DEPENDS
libc.hdr.errno_macros
libc.src.errno.errno
libc.src.sys.random.getentropy
libc.test.UnitTest.ErrnoCheckingTest
libc.test.UnitTest.ErrnoSetterMatcher
)