summaryrefslogtreecommitdiff
path: root/tests/13-basic-attrs.py
diff options
context:
space:
mode:
authorTom Hromatka <tom.hromatka@oracle.com>2019-11-15 12:55:33 -0700
committerPaul Moore <paul@paul-moore.com>2020-02-28 08:40:15 -0500
commit38f04da8474855f6ca850cc70e389bd56dbbf2fe (patch)
tree98d688354325cd851ae63b3ca5d9a2e61813bb9f /tests/13-basic-attrs.py
parenta3732b32b8e67a5c466a625f0e1e0d0bfde5ee0b (diff)
downloadlibseccomp-38f04da8474855f6ca850cc70e389bd56dbbf2fe.tar.gz
tests: add tests for the binary tree
This commit adds tests to ensure the validity of the binary tree and the resultant pfc and bpf output. Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com> Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'tests/13-basic-attrs.py')
-rwxr-xr-xtests/13-basic-attrs.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/13-basic-attrs.py b/tests/13-basic-attrs.py
index 38971c0..0435ded 100755
--- a/tests/13-basic-attrs.py
+++ b/tests/13-basic-attrs.py
@@ -55,6 +55,9 @@ def test():
f.set_attr(Attr.CTL_SSB, 1)
if f.get_attr(Attr.CTL_SSB) != 1:
raise RuntimeError("Failed getting Attr.CTL_SSB")
+ f.set_attr(Attr.CTL_OPTIMIZE, 2)
+ if f.get_attr(Attr.CTL_OPTIMIZE) != 2:
+ raise RuntimeError("Failed getting Attr.CTL_OPTIMIZE")
test()