Skip to content

Commit

Permalink
update(test): fix failing tests
Browse files Browse the repository at this point in the history
Signed-off-by: rohith-raju <rohithraju488@gmail.com>
  • Loading branch information
Rohith-Raju committed Jul 9, 2023
1 parent 61e1dc5 commit 463b4b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions driver/ppm_flag_helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ or GPL2.txt for full copies of the license.
#include <linux/capability.h>
#include <linux/eventpoll.h>
#include <linux/prctl.h>
#if (LINUX_VERSION_CODE > KERNEL_VERSION(5, 10, 0))
#include <linux/pidfd.h>
#endif
#include "ppm.h"
#ifdef __NR_memfd_create
#include <uapi/linux/memfd.h>
Expand Down
2 changes: 2 additions & 0 deletions test/drivers/test_suites/syscall_exit_suite/pidfd_open_x.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

#ifdef __NR_pidfd_open

#ifdef __NR_fork
TEST(SyscallExit, pidfd_openX_success)
{
auto evt_test = get_syscall_event_test(__NR_pidfd_open, EXIT_EVENT);
Expand Down Expand Up @@ -54,6 +55,7 @@ TEST(SyscallExit, pidfd_openX_success)
/*=============================== ASSERT PARAMETERS ===========================*/

}
#endif

TEST(SyscallExit, pidfd_openX_failure)
{
Expand Down

0 comments on commit 463b4b6

Please # to comment.