Skip to content

Commit

Permalink
Merge pull request #5 from rogpeppe/005-go1.10-support
Browse files Browse the repository at this point in the history
testscript: make it compile under Go 1.10
  • Loading branch information
rogpeppe authored Oct 17, 2018
2 parents 58196f1 + eae7c73 commit 39d56a4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion testscript/exe.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,14 @@ func (nopTestDeps) WriteProfileTo(name string, w io.Writer, debug int) error {
func (nopTestDeps) ImportPath() string {
return ""
}

func (nopTestDeps) StartTestLog(w io.Writer) {}

func (nopTestDeps) StopTestLog() error {
return nil
}

// Note: WriteHeapProfile is needed for Go 1.10 but not Go 1.11.
func (nopTestDeps) WriteHeapProfile(io.Writer) error {
// Not needed for Go 1.10.
return nil
}

0 comments on commit 39d56a4

Please sign in to comment.