summaryrefslogtreecommitdiff
path: root/tests/16-sim-arch_basic.py
diff options
context:
space:
mode:
authorPaul Moore <pmoore@redhat.com>2014-05-08 10:59:11 -0400
committerPaul Moore <pmoore@redhat.com>2014-05-08 11:11:29 -0400
commit5bfd306219835ff01efd611921ab64fd7ea10918 (patch)
treec51b5be784e764f032f5dbd3af48d6f189f32d43 /tests/16-sim-arch_basic.py
parentf05fc7cbc294f95fd62fb0aea52561c14f52aba9 (diff)
downloadlibseccomp-5bfd306219835ff01efd611921ab64fd7ea10918.tar.gz
tests: update the tests to use the new architecture resolving functionality
Signed-off-by: Paul Moore <pmoore@redhat.com>
Diffstat (limited to 'tests/16-sim-arch_basic.py')
-rwxr-xr-xtests/16-sim-arch_basic.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/16-sim-arch_basic.py b/tests/16-sim-arch_basic.py
index b067d1b..e2020e3 100755
--- a/tests/16-sim-arch_basic.py
+++ b/tests/16-sim-arch_basic.py
@@ -30,12 +30,12 @@ from seccomp import *
def test(args):
f = SyscallFilter(KILL)
- f.remove_arch(Arch.NATIVE)
- f.add_arch(Arch.X86)
- f.add_arch(Arch.X86_64)
- f.add_arch(Arch.X32)
- f.add_arch(Arch.ARM)
- f.add_arch(Arch.MIPSEL)
+ f.remove_arch(Arch())
+ f.add_arch(Arch("x86"))
+ f.add_arch(Arch("x86_64"))
+ f.add_arch(Arch("x32"))
+ f.add_arch(Arch("arm"))
+ f.add_arch(Arch("mipsel"))
f.add_rule(ALLOW, "read", Arg(0, EQ, sys.stdin.fileno()))
f.add_rule(ALLOW, "write", Arg(0, EQ, sys.stdout.fileno()))
f.add_rule(ALLOW, "write", Arg(0, EQ, sys.stderr.fileno()))