http://bugs.winehq.org/show_bug.cgi?id=34965
Bug #: 34965 Summary: New Testbot doesn't correctly sets the time for the VMs so e.g. winhttp is failing Product: Wine-Testbot Version: unspecified Platform: x86 URL: https://newtestbot.winehq.org/JobDetails.pl?Key=3484 OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: unknown AssignedTo: wine-bugs@winehq.org ReportedBy: nerv@dawncrow.de CC: fgouget@codeweavers.com Classification: Unclassified
winhttp tests a secure connection to google.com, but fails because the VM time out of the certificates time range:
winhttp:winhttp start - - winhttp.c:806: WINHTTP_CALLBACK_STATUS_FLAG_CERT_DATE_INVALID winhttp.c:859: Test failed: failed to send request 12175 winhttp.c:870: ftStart Wednesday, November 06, 2013 2:00:40 PM winhttp.c:874: ftExpiry Thursday, March 06, 2014 12:00:00 AM winhttp.c:878: local Friday, October 25, 2013 9:23:32 AM
after hacking this into the tests before the skip:
size = sizeof(info); ret = WinHttpQueryOption(req, WINHTTP_OPTION_SECURITY_CERTIFICATE_STRUCT, &info, &size ); ok(ret, "failed to retrieve certificate info %u\n", GetLastError()); { SYSTEMTIME st; char exdate[255], extime[255];
FileTimeToSystemTime( &info.ftStart, &st ); GetDateFormatA( LOCALE_USER_DEFAULT, DATE_LONGDATE, &st, NULL, exdate, 255 ); GetTimeFormatA( LOCALE_USER_DEFAULT, 0, &st, NULL, extime, 255 ); trace( "ftStart %s %s\n", exdate, extime ); FileTimeToSystemTime( &info.ftExpiry, &st ); GetDateFormatA( LOCALE_USER_DEFAULT, DATE_LONGDATE, &st, NULL, exdate, 255 ); GetTimeFormatA( LOCALE_USER_DEFAULT, 0, &st, NULL, extime, 255 ); trace( "ftExpiry %s %s\n", exdate, extime ); GetLocalTime(&st); GetDateFormatA( LOCALE_USER_DEFAULT, DATE_LONGDATE, &st, NULL, exdate, 255 ); GetTimeFormatA( LOCALE_USER_DEFAULT, 0, &st, NULL, extime, 255 ); trace( "local %s %s\n", exdate, extime ); }