Commit 3540376b authored by Alex Brainman's avatar Alex Brainman

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/17851Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Alex Brainman <alex.brainman@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
parent d4df6f48
......@@ -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)
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment