Skip to content

Commit

Permalink
fix(build): expect_truncated is only used on some architectures
Browse files Browse the repository at this point in the history
Signed-off-by: Grzegorz Nosek <grzegorz.nosek@sysdig.com>
  • Loading branch information
gnosek authored and Andreagit97 committed Sep 11, 2024
1 parent b9d61f0 commit 7e67032
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/drivers/test_suites/syscall_exit_suite/execveat_x.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -235,13 +235,15 @@ TEST(SyscallExit, execveatX_correct_exit) {
"2_ARGUMENT=no",
NULL};

#if defined(__s390x__) || defined(__riscv) || defined(__powerpc64__) || defined(__loongarch64)
bool expect_truncated = true;
if(evt_test->is_kmod_engine() && getpagesize() > 4096) {
// for kmod, the size limit is actually PAGE_SIZE;
// see STR_STORAGE_SIZE macro definition in driver/capture_macro.h.
// In case PAGE_SIZE is < 4096, expect NON-truncated args/envs
expect_truncated = false;
}
#endif

int flags = 0;

Expand Down

0 comments on commit 7e67032

Please sign in to comment.