diff options
author | Eugene Syromyatnikov <evgsyr@gmail.com> | 2021-10-11 16:51:10 +0200 |
---|---|---|
committer | Eugene Syromyatnikov <evgsyr@gmail.com> | 2021-10-12 00:35:48 +0200 |
commit | 3b26047d9ad08dd81eadd872eb24177c0083585a (patch) | |
tree | d4a3235e697cadcfb421a10b4da9cd656036320b | |
parent | 5e63fc252357aa7c39fe5b391e1ba1db19e5f765 (diff) | |
download | strace-3b26047d9ad08dd81eadd872eb24177c0083585a.tar.gz |
tests: try to avoid excessive filter_seccomp-perf false positives
Increase test time threefold and relax minimum expected ratio a bit.
* tests/filter_seccomp-perf.c (main): Set alarm to 3 seconds
instead of 1.
* tests/filter_seccomp-perf.test (min_ratio): Change from 6 to 5.
-rw-r--r-- | tests/filter_seccomp-perf.c | 2 | ||||
-rwxr-xr-x | tests/filter_seccomp-perf.test | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/filter_seccomp-perf.c b/tests/filter_seccomp-perf.c index 742e1ebb4..d193da64b 100644 --- a/tests/filter_seccomp-perf.c +++ b/tests/filter_seccomp-perf.c @@ -29,7 +29,7 @@ main(void) int rc = 0; signal(SIGALRM, handler); - alarm(1); + alarm(3); for (i = 0; !stop; i++) { rc |= chdir("."); diff --git a/tests/filter_seccomp-perf.test b/tests/filter_seccomp-perf.test index 149d70444..8ad57d0f5 100755 --- a/tests/filter_seccomp-perf.test +++ b/tests/filter_seccomp-perf.test @@ -18,7 +18,7 @@ num_seccomp="$(run_strace --seccomp-bpf $args)" mv "$LOG" "$LOG.seccomp" match_diff "$LOG.regular" "$LOG.seccomp" -min_ratio=6 +min_ratio=5 # With seccomp filter enabled, we should be able to complete # at least $min_ratio times more chdir system calls. ratio="$((num_seccomp / num_regular))" |