summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Hromatka <tom.hromatka@oracle.com>2022-03-18 12:57:46 -0600
committerTom Hromatka <tom.hromatka@oracle.com>2022-03-18 12:57:46 -0600
commitfaf98d74c728fad239d7dca85675e409fc706374 (patch)
tree50c6768e1c61ed5dbf151851e8c5add72778ccb1
parent89644faae8489e9af8363efed0f2904d55d922db (diff)
downloadlibseccomp-faf98d74c728fad239d7dca85675e409fc706374.tar.gz
tests: fix 53-sim-binary_tree to use binary tree
SCMP_FLTATR_CTL_OPTIMIZE = 2 was not being set for test 53-sim-binary_tree.py. Set the optimization level to 2 to ensure that the binary tree is being employed. Fixes: 38f04da84748 ("tests: add tests for the binary tree") Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com> Acked-by: Paul Moore <paul@paul-moore.com> (cherry picked from commit c1c2e28520689779626dbbad8f11866b9b962748)
-rwxr-xr-xtests/53-sim-binary_tree.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/53-sim-binary_tree.py b/tests/53-sim-binary_tree.py
index 39b2769..8ee58cd 100755
--- a/tests/53-sim-binary_tree.py
+++ b/tests/53-sim-binary_tree.py
@@ -68,6 +68,7 @@ table = [
def test(args):
f = SyscallFilter(ALLOW)
+ f.set_attr(Attr.CTL_OPTIMIZE, 2)
f.remove_arch(Arch())
f.add_arch(Arch("aarch64"))