Skip to content
Merged
Prev Previous commit
Next Next commit
Update examples/embedding/main_test.go
Co-authored-by: Sebastien Binet <binet@cern.ch>
  • Loading branch information
drew-512 and sbinet authored Feb 12, 2022
commit 3d3738419d510f9bf05ee36c50ed3a48c8a8ac5e
3 changes: 2 additions & 1 deletion examples/embedding/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ func TestEmbeddedExample(t *testing.T) {
}
defer os.RemoveAll(tmp)

cmd := exec.Command("go", "build", "-o", filepath.Join(tmp, "exe"), ".")
exe := filepath.Join(tmp, "out.exe")
cmd := exec.Command("go", "build", "-o", exe, ".")
err = cmd.Run()
if err != nil {
t.Fatalf("failed to compile embedding example: %v", err)
Expand Down