]> Cypherpunks repositories - gostls13.git/commitdiff
path/filepath: include test number in TestIssue13582 output
authorAlex Brainman <alex.brainman@gmail.com>
Tue, 15 Dec 2015 05:56:18 +0000 (16:56 +1100)
committerAlex Brainman <alex.brainman@gmail.com>
Tue, 15 Dec 2015 06:43:35 +0000 (06:43 +0000)
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>

src/path/filepath/path_test.go

index db604ba91fb4b0be3f5deaaf43cde5ac8742d879..baeee97165f8c5aa6c2f2dc8d6c1ecb5360fa322 100644 (file)
@@ -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)
                }
        }
 }