]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: fix syscall test to satisfy new error
authorAlex Brainman <alex.brainman@gmail.com>
Mon, 14 Nov 2011 09:54:47 +0000 (20:54 +1100)
committerAlex Brainman <alex.brainman@gmail.com>
Mon, 14 Nov 2011 09:54:47 +0000 (20:54 +1100)
R=rsc
CC=golang-dev
https://golang.org/cl/5369103

src/pkg/runtime/syscall_windows_test.go

index 8b5d81c4e8b8033710f8661b6b99eadde6ecd485..c8327fdefcaf29e03ecbcb23d24b54939c9cbc82 100644 (file)
@@ -68,7 +68,7 @@ func Test64BitReturnStdCall(t *testing.T) {
                VER_LESS          = 4
                VER_LESS_EQUAL    = 5
 
-               ERROR_OLD_WIN_VERSION = 1150
+               ERROR_OLD_WIN_VERSION syscall.Errno = 1150
        )
 
        type OSVersionInfoEx struct {
@@ -106,7 +106,7 @@ func Test64BitReturnStdCall(t *testing.T) {
                VER_MAJORVERSION|VER_MINORVERSION|VER_SERVICEPACKMAJOR|VER_SERVICEPACKMINOR,
                m1, m2)
        if r == 0 && e2 != ERROR_OLD_WIN_VERSION {
-               t.Errorf("VerifyVersionInfo failed: (%d) %s", e2, syscall.Errstr(int(e2)))
+               t.Errorf("VerifyVersionInfo failed: %s", e2)
        }
 }