diff --git a/test/libscap/CMakeLists.txt b/test/libscap/CMakeLists.txt index cdbca01cd04..3fad7ea4ad0 100644 --- a/test/libscap/CMakeLists.txt +++ b/test/libscap/CMakeLists.txt @@ -32,9 +32,9 @@ set(LIBSCAP_TESTS_INCLUDE PRIVATE "${GTEST_INCLUDE}" "${CMAKE_CURRENT_SOURCE_DIR}" # for test helpers - "${LIBSCAP_INCLUDE_DIRS}" # this is for libscap includes - "${CMAKE_SOURCE_DIR}/userspace/common" # used to include `strl.h` - "${CMAKE_SOURCE_DIR}/driver" # for the event_stats.h file + "${LIBS_DIR}" + "${LIBS_DIR}/userspace" + "${PROJECT_BINARY_DIR}" "${CMAKE_CURRENT_BINARY_DIR}" # used to include `libscap_test_var.h` ) diff --git a/test/libscap/test_suites/engines/bpf/bpf.cpp b/test/libscap/test_suites/engines/bpf/bpf.cpp index f117d6781d4..62985dafea2 100644 --- a/test/libscap/test_suites/engines/bpf/bpf.cpp +++ b/test/libscap/test_suites/engines/bpf/bpf.cpp @@ -1,6 +1,6 @@ #include #include -#include +#include #include #include #include diff --git a/test/libscap/test_suites/userspace/linux/scap_cgroup.cpp b/test/libscap/test_suites/userspace/linux/scap_cgroup.cpp index 106b8b23316..34cb9b9257d 100644 --- a/test/libscap/test_suites/userspace/linux/scap_cgroup.cpp +++ b/test/libscap/test_suites/userspace/linux/scap_cgroup.cpp @@ -17,8 +17,8 @@ limitations under the License. */ #include -#include -#include +#include +#include TEST(cgroups, path_relative) {