From 7ffd6ad61b0d0c6290f73b3652f79c63b305351e Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Tue, 20 Apr 2021 15:08:04 +0200 Subject: pkg/csource: add resuling source tests Add some tests that verify source we get for various programs. Update #1070 --- sys/test/csource.txt | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 sys/test/csource.txt (limited to 'sys/test') 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]]) -- cgit mrf-deployment