From 11a690d2752b590cadebe982ae4b66bf5c0cccef Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 28 Sep 2016 20:06:42 +0200 Subject: sys, prog: add tests for description parsing and serialization Add sys/test.txt file with description of syscalls for tests. These descriptions can be used to ensure that we can parse everything we clain we can parse. Use these descriptions to write several tests for exec serialization (one test shows that alignment handling is currently incorrect). These test descriptions can also be used to write e.g. mutation tests. Update #78 --- executor/common.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'executor/common.h') diff --git a/executor/common.h b/executor/common.h index 7d896373f..52f2aeb9b 100644 --- a/executor/common.h +++ b/executor/common.h @@ -142,6 +142,8 @@ static uintptr_t execute_syscall(int nr, uintptr_t a0, uintptr_t a1, uintptr_t a switch (nr) { default: return syscall(nr, a0, a1, a2, a3, a4, a5); + case __NR_syz_test: + return 0; case __NR_syz_open_dev: return syz_open_dev(a0, a1, a2); case __NR_syz_open_pts: -- cgit mrf-deployment