aboutsummaryrefslogtreecommitdiffstats
path: root/prog/encodingexec_test.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2018-02-26 15:00:46 +0100
committerDmitry Vyukov <dvyukov@google.com>2018-02-26 15:00:46 +0100
commit14dae29c2abebd8886909c7a09c5795ffdd11515 (patch)
tree50ed602aa0d992d51393bee841b2925a459ae0d4 /prog/encodingexec_test.go
parent41f6f2579b51e89b33bff9f02830510d2b74d7c3 (diff)
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.
Diffstat (limited to 'prog/encodingexec_test.go')
-rw-r--r--prog/encodingexec_test.go2
1 files changed, 0 insertions, 2 deletions
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,
},
},
{