From d606e60dfe3d50499812f7d740dae6e727fa9f76 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 20 Sep 2017 16:55:28 +0200 Subject: executor: split source per-OS Update #191 --- pkg/ipc/ipc_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'pkg') diff --git a/pkg/ipc/ipc_test.go b/pkg/ipc/ipc_test.go index d52579553..ca0af1060 100644 --- a/pkg/ipc/ipc_test.go +++ b/pkg/ipc/ipc_test.go @@ -4,6 +4,7 @@ package ipc import ( + "fmt" "math/rand" "os" "path/filepath" @@ -20,7 +21,8 @@ import ( const timeout = 10 * time.Second func buildExecutor(t *testing.T, target *prog.Target) string { - return buildProgram(t, target, filepath.FromSlash("../../executor/executor.cc")) + src := fmt.Sprintf("../../executor/executor_%v.cc", target.OS) + return buildProgram(t, target, filepath.FromSlash(src)) } func buildSource(t *testing.T, target *prog.Target, src []byte) string { -- cgit mrf-deployment