Skip to content

Commit

Permalink
fix(test/libscap): remove libs relative imports
Browse files Browse the repository at this point in the history
Signed-off-by: Roberto Scolaro <[email protected]>
  • Loading branch information
therealbobo committed Nov 28, 2023
1 parent ac3e409 commit 2b51b45
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions test/libscap/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ set(LIBSCAP_TESTS_INCLUDE
PRIVATE
"${GTEST_INCLUDE}"
"${CMAKE_CURRENT_SOURCE_DIR}" # for test helpers <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`
)

Expand Down
2 changes: 1 addition & 1 deletion test/libscap/test_suites/engines/bpf/bpf.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include <libscap/scap.h>
#include <libscap/scap_engines.h>
#include <libscap/scap_engine_utils.h>
#include <libscap/scap_engine_util.h>
#include <gtest/gtest.h>
#include <unordered_set>
#include <helpers/engines.h>
Expand Down
4 changes: 2 additions & 2 deletions test/libscap/test_suites/userspace/linux/scap_cgroup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ limitations under the License.
*/

#include <gtest/gtest.h>
#include <linux/scap_cgroup.h>
#include <linux/scap_cgroup.c>
#include <libscap/linux/scap_cgroup.h>
#include <libscap/linux/scap_cgroup.c>

TEST(cgroups, path_relative)
{
Expand Down

0 comments on commit 2b51b45

Please sign in to comment.