summaryrefslogtreecommitdiff
path: root/libgo/go/testing/internal/testdeps/deps.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/testing/internal/testdeps/deps.go')
-rw-r--r--libgo/go/testing/internal/testdeps/deps.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/libgo/go/testing/internal/testdeps/deps.go b/libgo/go/testing/internal/testdeps/deps.go
index b08300b5d60..042f69614ee 100644
--- a/libgo/go/testing/internal/testdeps/deps.go
+++ b/libgo/go/testing/internal/testdeps/deps.go
@@ -49,3 +49,10 @@ func (TestDeps) WriteHeapProfile(w io.Writer) error {
func (TestDeps) WriteProfileTo(name string, w io.Writer, debug int) error {
return pprof.Lookup(name).WriteTo(w, debug)
}
+
+// ImportPath is the import path of the testing binary, set by the generated main function.
+var ImportPath string
+
+func (TestDeps) ImportPath() string {
+ return ImportPath
+}