From 946647fb452dc32b08d9b028298ab5ad24f0ecfe Mon Sep 17 00:00:00 2001 From: Alex Brainman Date: Mon, 14 Nov 2011 20:54:47 +1100 Subject: [PATCH] runtime: fix syscall test to satisfy new error R=rsc CC=golang-dev https://golang.org/cl/5369103 --- src/pkg/runtime/syscall_windows_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) } } -- 2.50.0