diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2017-09-20 16:55:28 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2017-09-20 21:19:29 +0200 |
| commit | d606e60dfe3d50499812f7d740dae6e727fa9f76 (patch) | |
| tree | c064112adf95aef1119c5b81068f97cacdcf2b36 /pkg | |
| parent | 9cd52ccb43572d63bda7b0ed13ed57b98951d7eb (diff) | |
executor: split source per-OS
Update #191
Diffstat (limited to 'pkg')
| -rw-r--r-- | pkg/ipc/ipc_test.go | 4 |
1 files changed, 3 insertions, 1 deletions
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 { |
