aboutsummaryrefslogtreecommitdiffstats
path: root/executor/common_ext_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'executor/common_ext_test.go')
-rw-r--r--executor/common_ext_test.go7
1 files changed, 1 insertions, 6 deletions
diff --git a/executor/common_ext_test.go b/executor/common_ext_test.go
index 00bca4494..d92eff00c 100644
--- a/executor/common_ext_test.go
+++ b/executor/common_ext_test.go
@@ -5,7 +5,6 @@ package executor
import (
"bytes"
- "os"
"testing"
"time"
@@ -26,11 +25,7 @@ func TestCommonExt(t *testing.T) {
if sysTarget.BrokenCompiler != "" {
t.Skipf("skipping, broken cross-compiler: %v", sysTarget.BrokenCompiler)
}
- bin, err := csource.BuildFile(target, "executor.cc", "-DSYZ_TEST_COMMON_EXT_EXAMPLE=1")
- if err != nil {
- t.Fatal(err)
- }
- defer os.Remove(bin)
+ bin := csource.BuildExecutor(t, target, "..", "-DSYZ_TEST_COMMON_EXT_EXAMPLE=1")
out, err := osutil.RunCmd(time.Minute, "", bin, "setup")
if err != nil {
t.Fatal(err)