Skip to content

Commit

Permalink
go/loader: make TestLoad_ParseError_AllowErrors pass on windows
Browse files Browse the repository at this point in the history
Update golang/go#11811

Change-Id: Ic5f1ea87c88d563b6e0ef2d44042e28a9ea03a03
Reviewed-on: https://go-review.googlesource.com/12830
Reviewed-by: Robert Griesemer <[email protected]>
  • Loading branch information
alexbrainman committed Jul 30, 2015
1 parent 739a26a commit f25d013
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion go/loader/loader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ package loader_test
import (
"fmt"
"go/build"
"path/filepath"
"reflect"
"sort"
"strings"
Expand Down Expand Up @@ -221,8 +222,9 @@ func TestLoad_ParseError_AllowErrors(t *testing.T) {
if len(badpkg.Files) != 1 {
t.Errorf("badpkg has %d files, want 1", len(badpkg.Files))
}
wantErr := "testdata/badpkgdecl.go:1:34: expected 'package', found 'EOF'"
wantErr := filepath.Join("testdata", "badpkgdecl.go") + ":1:34: expected 'package', found 'EOF'"
if !hasError(badpkg.Errors, wantErr) {

t.Errorf("badpkg.Errors = %v, want %s", badpkg.Errors, wantErr)
}
}
Expand Down

0 comments on commit f25d013

Please sign in to comment.