Commit 946647fb authored by Alex Brainman's avatar Alex Brainman

runtime: fix syscall test to satisfy new error

R=rsc
CC=golang-dev
https://golang.org/cl/5369103
parent 36494b0a
......@@ -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)
}
}
......
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