diff --git a/test-e2e/configuration/enforce-on-log-match-with-error.sh b/test-e2e/configuration/enforce-on-log-match-with-error.sh index bd18378..03c6c97 100755 --- a/test-e2e/configuration/enforce-on-log-match-with-error.sh +++ b/test-e2e/configuration/enforce-on-log-match-with-error.sh @@ -12,11 +12,7 @@ $main_path run \ --on-syscall-denied=kill \ bash -c $script_path/log-match.bash -# https://specificlanguages.com/posts/2022-07/14-exit-code-137/ -# Exit code 137 is Linux-specific and means that your process was killed by a signal, namely SIGKILL. -# The main reason for a process getting killed by SIGKILL on Linux (unless you do it yourself) is running out of memory.1 - -if [[ $? -ne 137 ]]; then +if [[ $? -ne 4 && $? -ne 159 ]]; then exit 1 fi diff --git a/test-e2e/configuration/enforce-on-log-match-with-kill.sh b/test-e2e/configuration/enforce-on-log-match-with-kill.sh index 0791418..921620f 100755 --- a/test-e2e/configuration/enforce-on-log-match-with-kill.sh +++ b/test-e2e/configuration/enforce-on-log-match-with-kill.sh @@ -15,7 +15,7 @@ bash -c $script_path/log-match.bash # This is the list of exit codes for wget: # 4 Network failure -if [[ $? -ne 4 ]]; then +if [[ $? -ne 4 ]] || [[ $? -eq 159 ]]; then exit 1 fi