From: Alex Brainman Date: Mon, 14 Nov 2011 09:54:47 +0000 (+1100) Subject: runtime: fix syscall test to satisfy new error X-Git-Tag: weekly.2011-11-18~76 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=946647fb452dc32b08d9b028298ab5ad24f0ecfe;p=gostls13.git runtime: fix syscall test to satisfy new error R=rsc CC=golang-dev https://golang.org/cl/5369103 --- diff --git a/src/pkg/runtime/syscall_windows_test.go b/src/pkg/runtime/syscall_windows_test.go index 8b5d81c4e8..c8327fdefc 100644 --- a/src/pkg/runtime/syscall_windows_test.go +++ b/src/pkg/runtime/syscall_windows_test.go @@ -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) } }