]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
test: modify order of scfilter levels in system tests
authorMiroslav Lichvar <mlichvar@redhat.com>
Mon, 29 May 2023 14:17:39 +0000 (16:17 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 1 Jun 2023 12:52:56 +0000 (14:52 +0200)
Start with positive levels to get the offending system calls in the
system or audit log.

test/system/099-scfilter
test/system/199-scfilter

index 6b098ace4b1038bcd5036fae143a3ae740e620b0..7be02bd342b0802e1ddc9b22910b602f53c846f8 100755 (executable)
@@ -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"
index 29b7cc39ffd3dadd92f20ccf9060918e7f40aa7d..40441b7c0f8eae273e67ba2114ca18ff87f0a02f 100755 (executable)
@@ -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"