From faf98d74c728fad239d7dca85675e409fc706374 Mon Sep 17 00:00:00 2001 From: Tom Hromatka Date: Fri, 18 Mar 2022 12:57:46 -0600 Subject: 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 Acked-by: Paul Moore (cherry picked from commit c1c2e28520689779626dbbad8f11866b9b962748) --- tests/53-sim-binary_tree.py | 1 + 1 file changed, 1 insertion(+) 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")) -- cgit v1.2.1