summaryrefslogtreecommitdiff
path: root/tests/35-sim-negative_one.tests
diff options
context:
space:
mode:
authorPaul Moore <paul@paul-moore.com>2017-02-15 17:56:21 -0500
committerPaul Moore <paul@paul-moore.com>2017-02-23 12:17:32 -0500
commit11e21098e0c3b5481fb0f6e6bdbb266bdd0fc24c (patch)
tree9247f10c8f8c811930299066e18931184cab5102 /tests/35-sim-negative_one.tests
parentdc879990774b5fe0b5d3362ae592e8a5bb615fbb (diff)
downloadlibseccomp-11e21098e0c3b5481fb0f6e6bdbb266bdd0fc24c.tar.gz
all: add tests to ensure that syscall -1 is handled correctly
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'tests/35-sim-negative_one.tests')
-rw-r--r--tests/35-sim-negative_one.tests23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/35-sim-negative_one.tests b/tests/35-sim-negative_one.tests
new file mode 100644
index 0000000..3735eee
--- /dev/null
+++ b/tests/35-sim-negative_one.tests
@@ -0,0 +1,23 @@
+#
+# libseccomp regression test automation data
+#
+# Copyright (c) 2017 Red Hat <pmoore@redhat.com>
+# Author: Paul Moore <paul@paul-moore.com>
+#
+
+test type: bpf-sim
+
+# Testname Arch Syscall Arg0 Arg1 Arg2 Arg3 Arg4 Arg5 Result
+35-sim-negative_one +x86 -1 N N N N N N ALLOW
+35-sim-negative_one +x86_64 -1 N N N N N N ALLOW
+35-sim-negative_one +x32 -1 N N N N N N ALLOW
+
+test type: bpf-sim-fuzz
+
+# Testname StressCount
+35-sim-negative_one 50
+
+test type: bpf-valgrind
+
+# Testname
+35-sim-negative_one