From 61da7d09135239f5a976b749ddb484111400c29c Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Mon, 29 May 2023 16:17:39 +0200 Subject: [PATCH] test: modify order of scfilter levels in system tests Start with positive levels to get the offending system calls in the system or audit log. --- test/system/099-scfilter | 2 +- test/system/199-scfilter | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/system/099-scfilter b/test/system/099-scfilter index 6b098ac..7be02bd 100755 --- a/test/system/099-scfilter +++ b/test/system/099-scfilter @@ -6,7 +6,7 @@ check_chronyd_features SCFILTER || test_skip "SCFILTER support disabled" test_start "system call filter in non-destructive tests" -for level in "-1" "1" "-2" "2"; do +for level in 1 2 -1 -2; do test_message 1 1 "level $level:" for test in 0[0-8][0-9]-*[^_]; do test_message 2 0 "$test" diff --git a/test/system/199-scfilter b/test/system/199-scfilter index 29b7cc3..40441b7 100755 --- a/test/system/199-scfilter +++ b/test/system/199-scfilter @@ -6,7 +6,7 @@ check_chronyd_features SCFILTER || test_skip "SCFILTER support disabled" test_start "system call filter in destructive tests" -for level in "-1" "1" "-2" "2"; do +for level in 1 2 -1 -2; do test_message 1 1 "level $level:" for test in 1[0-8][0-9]-*[^_]; do test_message 2 0 "$test"