diff options
| author | Alex Brainman <alex.brainman@gmail.com> | 2015-12-15 16:56:18 +1100 |
|---|---|---|
| committer | Alex Brainman <alex.brainman@gmail.com> | 2015-12-15 06:43:35 +0000 |
| commit | 3540376b7067911fe1e02cb25e10b34ff789c630 (patch) | |
| tree | deb4cc275a3fef528c661e75e78336f1de9cc427 /src/path/filepath/path_test.go | |
| parent | d4df6f487481fb7a0987faa3cf8c03a684e8f17d (diff) | |
| download | go-3540376b7067911fe1e02cb25e10b34ff789c630.tar.xz | |
path/filepath: include test number in TestIssue13582 output
Otherwise it's hard to tell the difference between
link1 and link2 or other tests.
Change-Id: I36c153cccb10959535595938dfbc49db930b9fac
Reviewed-on: https://go-review.googlesource.com/17851
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Alex Brainman <alex.brainman@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/path/filepath/path_test.go')
| -rw-r--r-- | src/path/filepath/path_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/path/filepath/path_test.go b/src/path/filepath/path_test.go index db604ba91f..baeee97165 100644 --- a/src/path/filepath/path_test.go +++ b/src/path/filepath/path_test.go @@ -953,13 +953,13 @@ func TestIssue13582(t *testing.T) { {link1, realFile}, {link2, realFile}, } - for _, test := range tests { + for i, test := range tests { have, err := filepath.EvalSymlinks(test.path) if err != nil { t.Fatal(err) } if have != test.want { - t.Errorf("EvalSymlinks(%q) returns %q, want %q", test.path, have, test.want) + t.Errorf("test#%d: EvalSymlinks(%q) returns %q, want %q", i, test.path, have, test.want) } } } |
