# This file is licensed under the Apache License v2.0 with LLVM Exceptions. # See https://llvm.org/LICENSE.txt for license information. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception # Tests for LLVM libc sys/epoll.h functions. load("//libc/test:libc_test_rules.bzl", "libc_test") package(default_visibility = ["//visibility:public"]) licenses(["notice"]) libc_test( name = "epoll_create_test", srcs = ["linux/epoll_create_test.cpp"], deps = [ "//libc:close", "//libc:epoll_create", ], ) libc_test( name = "epoll_create1_test", srcs = ["linux/epoll_create1_test.cpp"], deps = [ "//libc:close", "//libc:epoll_create1", "//libc:hdr_sys_epoll_macros", ], ) libc_test( name = "epoll_ctl_test", srcs = ["linux/epoll_ctl_test.cpp"], deps = [ "//libc:close", "//libc:epoll_create1", "//libc:epoll_ctl", "//libc:hdr_sys_epoll_macros", "//libc:pipe", "//libc:types_struct_epoll_event", ], ) libc_test( name = "epoll_wait_test", srcs = ["linux/epoll_wait_test.cpp"], deps = [ "//libc:close", "//libc:epoll_create1", "//libc:epoll_ctl", "//libc:epoll_wait", "//libc:hdr_sys_epoll_macros", "//libc:pipe", "//libc:types_struct_epoll_event", ], ) libc_test( name = "epoll_pwait_test", srcs = ["linux/epoll_pwait_test.cpp"], deps = [ "//libc:close", "//libc:epoll_create1", "//libc:epoll_ctl", "//libc:epoll_pwait", "//libc:hdr_sys_epoll_macros", "//libc:pipe", "//libc:types_struct_epoll_event", ], ) libc_test( name = "epoll_pwait2_test", srcs = ["linux/epoll_pwait2_test.cpp"], deps = [ "//libc:close", "//libc:epoll_create1", "//libc:epoll_ctl", "//libc:epoll_pwait2", "//libc:hdr_sys_epoll_macros", "//libc:pipe", "//libc:types_struct_epoll_event", "//libc:types_struct_timespec", ], )