cmd/gorebuild: use expected executable name in TestStripDarwinSig

StripDarwinSig is a Fixer that expects to work only on Mach-O executable
files in GOROOT/bin and GOROOT/pkg/tool, and silently returns data as is
otherwise.

Fix TestStripDarwinSig to give StripDarwinSig an expected name such that
it does its job instead of doing nothing.

Change-Id: If48897965208c41a9e7ef049b3aafbfb26bfb385
Reviewed-on: https://go-review.googlesource.com/c/build/+/516296
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Russ Cox <rsc@golang.org>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
diff --git a/cmd/gorebuild/pkg_darwin_test.go b/cmd/gorebuild/pkg_darwin_test.go
index b29c4b3..f9ff12f 100644
--- a/cmd/gorebuild/pkg_darwin_test.go
+++ b/cmd/gorebuild/pkg_darwin_test.go
@@ -8,6 +8,7 @@
 	"bytes"
 	"os"
 	"os/exec"
+	"path/filepath"
 	"runtime"
 	"sort"
 	"testing"
@@ -24,7 +25,7 @@
 	}
 
 	var log Log
-	stripped := StripDarwinSig(&log, exe, data)
+	stripped := StripDarwinSig(&log, "/bin/"+filepath.Base(exe), data)
 	for _, m := range log.Messages {
 		t.Log(m.Text)
 	}