diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2017-12-22 11:47:04 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2017-12-22 11:59:46 +0100 |
| commit | 3645389673af4c62a636cfe36f258ae770e8fb6b (patch) | |
| tree | 356f9337e5ca323babef0e43fc345b0017dda798 /prog/encoding_test.go | |
| parent | 6f298a18e582be006780954d6b0c30cbe2f568f4 (diff) | |
pkg/csource: fix handling of proc types
Generated program always uses pid=0 even when there are multiple processes.
Make each process use own pid.
Unfortunately required to do quite significant changes to prog,
because the current format only supported fixed pid.
Fixes #490
Diffstat (limited to 'prog/encoding_test.go')
| -rw-r--r-- | prog/encoding_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/prog/encoding_test.go b/prog/encoding_test.go index 5fce30142..6c063b5a7 100644 --- a/prog/encoding_test.go +++ b/prog/encoding_test.go @@ -159,7 +159,7 @@ func TestDeserialize(t *testing.T) { t.Fatalf("deserialization should have failed with:\n%s\ndata:\n%s\n", test.err, test.data) } - p.SerializeForExec(buf, 0) + p.SerializeForExec(buf) } } } |
