llvm/libc/test/src/sys/random/linux/CMakeLists.txt

add_custom_target(libc_sys_random_unittests)

add_libc_unittest(
  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.ErrnoSetterMatcher
)