From 14dae29c2abebd8886909c7a09c5795ffdd11515 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 26 Feb 2018 15:00:46 +0100 Subject: executor: use proper default values for resources We currently use -1 as default value for resources when the actual value is not available. -1 is good for fd's, but is not the right default value for pointers/keys/etc. Pass from prog and use in executor proper default value for resources. --- prog/encodingexec_test.go | 2 -- 1 file changed, 2 deletions(-) (limited to 'prog/encodingexec_test.go') diff --git a/prog/encodingexec_test.go b/prog/encodingexec_test.go index 2ad19598e..1b3fb14b4 100644 --- a/prog/encodingexec_test.go +++ b/prog/encodingexec_test.go @@ -58,7 +58,6 @@ func TestSerializeForExec(t *testing.T) { Index: ExecNoCopyout, }, }, - NumVars: 0, }, }, { @@ -341,7 +340,6 @@ func TestSerializeForExec(t *testing.T) { }, }, }, - NumVars: 0, }, }, { -- cgit mrf-deployment