aboutsummaryrefslogtreecommitdiffstats
path: root/sys/test
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2021-04-20 15:08:04 +0200
committerDmitry Vyukov <dvyukov@google.com>2021-04-21 14:05:20 +0200
commit7ffd6ad61b0d0c6290f73b3652f79c63b305351e (patch)
treed547a6683908f89f40f1c6e6bcdb9804474fc4b1 /sys/test
parent95777977ade5226323e35e6e5fa1594327640732 (diff)
pkg/csource: add resuling source tests
Add some tests that verify source we get for various programs. Update #1070
Diffstat (limited to 'sys/test')
-rw-r--r--sys/test/csource.txt13
1 files changed, 13 insertions, 0 deletions
diff --git a/sys/test/csource.txt b/sys/test/csource.txt
new file mode 100644
index 000000000..0d1c847eb
--- /dev/null
+++ b/sys/test/csource.txt
@@ -0,0 +1,13 @@
+# Copyright 2032 syzkaller project authors. All rights reserved.
+# Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
+
+# Syscalls used in pkg/csource tests.
+
+resource fd0[int32]
+
+csource0(a int32) fd0
+csource1(a fd0)
+csource2(a ptr[in, array[int8]])
+csource3(a ptr[in, array[const[0, int8], 10]])
+csource4(a ptr[in, array[const[0xab, int8], 10]])
+csource5(a ptr[in, array[const[0x12345678, int32], 4]])