From a8927abe6c1b5b5e11339ee5958ad2f365ad3067 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 1 Jan 2018 11:23:45 +0100 Subject: prog: support opt for proc types --- prog/encodingexec_test.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'prog/encodingexec_test.go') diff --git a/prog/encodingexec_test.go b/prog/encodingexec_test.go index 5c2c18534..06265fa76 100644 --- a/prog/encodingexec_test.go +++ b/prog/encodingexec_test.go @@ -364,6 +364,23 @@ func TestSerializeForExec(t *testing.T) { }, nil, }, + { + "syz_test$opt3(0x0)", + []uint64{ + callID("syz_test$opt3"), ExecNoCopyout, 1, execArgConst, 8 | 4<<32, 0x64, + execInstrEOF, + }, + nil, + }, + { + // Special value that translates to 0 for all procs. + "syz_test$opt3(0xffffffffffffffff)", + []uint64{ + callID("syz_test$opt3"), ExecNoCopyout, 1, execArgConst, 8, 0, + execInstrEOF, + }, + nil, + }, } buf := make([]byte, ExecBufferSize) -- cgit mrf-deployment