From 31ba40fc92d3ab21fb078be611fee4912dc7ef51 Mon Sep 17 00:00:00 2001 From: James Hawkins Date: Sat, 26 Apr 2008 01:00:50 -0500 Subject: [PATCH] schannel: Fix a test that fails in win2k3. --- dlls/schannel/tests/main.c | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/dlls/schannel/tests/main.c b/dlls/schannel/tests/main.c index af245d85c04..814b60a696c 100644 --- a/dlls/schannel/tests/main.c +++ b/dlls/schannel/tests/main.c @@ -156,13 +156,19 @@ static void testGetInfo(void) if (!pTables) return; status = pTables->GetInfo(&PackageInfo); - ok(status == STATUS_SUCCESS, "status: 0x%x\n", status); - ok(PackageInfo.fCapabilities == 0x107b3, "fCapabilities: 0x%lx\n", - PackageInfo.fCapabilities); - ok(PackageInfo.wVersion == 1, "wVersion: %d\n", PackageInfo.wVersion); - ok(PackageInfo.wRPCID == 14, "wRPCID: %d\n", PackageInfo.wRPCID); - ok(PackageInfo.cbMaxToken == 0x4000, "cbMaxToken: 0x%lx\n", - PackageInfo.cbMaxToken); + ok(status == STATUS_SUCCESS || + status == SEC_E_UNSUPPORTED_FUNCTION, /* win2k3 */ + "status: 0x%x\n", status); + + if (status == STATUS_SUCCESS) + { + ok(PackageInfo.fCapabilities == 0x107b3, "fCapabilities: 0x%lx\n", + PackageInfo.fCapabilities); + ok(PackageInfo.wVersion == 1, "wVersion: %d\n", PackageInfo.wVersion); + ok(PackageInfo.wRPCID == 14, "wRPCID: %d\n", PackageInfo.wRPCID); + ok(PackageInfo.cbMaxToken == 0x4000, "cbMaxToken: 0x%lx\n", + PackageInfo.cbMaxToken); + } } START_TEST(main)