[SERVER-5495] Changes to unittest framework breaking windows build Created: 03/Apr/12  Updated: 11/Jul/16  Resolved: 05/Apr/12

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 2.1.1

Type: Bug Priority: Major - P3
Reporter: Ian Whalen (Inactive) Assignee: Eric Milkie
Resolution: Done Votes: 0
Labels: buildbot
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows 64-bit


Operating System: ALL
Participants:

 Description   

cl /Fobuild\win32\64\release\mongo\unittest\unittest.obj /c src\mongo\unittest\unittest.cpp /TP /nologo /EHsc /W3 /wd4355 /wd4800 /wd4267 /wd4244 /Z7 /errorReport:none /O2 /MT /GL /DBOOST_ALL_NO_LIB /D_SCONS /DMONGO_EXPOSE_MACROS /DSUPPORT_UTF8 /D_UNICODE /DUNICODE /D_CONSOLE /D_CRT_SECURE_NO_WARNINGS /DPSAPI_VERSION=1 /DJS_C_STRINGS_ARE_UTF8 /DNOEXECINFO /DXP_WIN /Ibuild\win32\64\release\third_party\boost /Isrc\third_party\boost /Ibuild\win32\64\release\third_party\pcre-8.30 /Isrc\third_party\pcre-8.30 /Ibuild\win32\64\release /Isrc /Ibuild\win32\64\release\mongo /Isrc\mongo "/IC:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Include" /ID:\10gen\buildslaves\mongo\Windows_64bit\winpcap\Include /Ibuild\win32\64\release\third_party\snappy /Isrc\third_party\snappy /Ibuild\win32\64\release\third_party\js-1.7 /Isrc\third_party\js-1.7
unittest.cpp
D:\10gen\buildslaves\mongo\Windows_64bit\mongo\src\mongo/util/debug_util.h(82) : error C3861: 'DebugBreak': identifier not found
D:\10gen\buildslaves\mongo\Windows_64bit\mongo\src\mongo/util/concurrency/mutex.h(125) : error C2146: syntax error : missing ';' before identifier '_cs'
D:\10gen\buildslaves\mongo\Windows_64bit\mongo\src\mongo/util/concurrency/mutex.h(125) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:\10gen\buildslaves\mongo\Windows_64bit\mongo\src\mongo/util/concurrency/mutex.h(125) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:\10gen\buildslaves\mongo\Windows_64bit\mongo\src\mongo/util/concurrency/mutex.h(127) : error C2065: '_cs' : undeclared identifier
D:\10gen\buildslaves\mongo\Windows_64bit\mongo\src\mongo/util/concurrency/mutex.h(127) : error C3861: 'InitializeCriticalSection': identifier not found
D:\10gen\buildslaves\mongo\Windows_64bit\mongo\src\mongo/util/concurrency/mutex.h(128) : error C2065: '_cs' : undeclared identifier
D:\10gen\buildslaves\mongo\Windows_64bit\mongo\src\mongo/util/concurrency/mutex.h(128) : error C3861: 'DeleteCriticalSection': identifier not found
D:\10gen\buildslaves\mongo\Windows_64bit\mongo\src\mongo/util/concurrency/mutex.h(131) : error C2065: '_cs' : undeclared identifier
D:\10gen\buildslaves\mongo\Windows_64bit\mongo\src\mongo/util/concurrency/mutex.h(131) : error C3861: 'EnterCriticalSection': identifier not found
D:\10gen\buildslaves\mongo\Windows_64bit\mongo\src\mongo/util/concurrency/mutex.h(143) : error C2065: '_cs' : undeclared identifier
D:\10gen\buildslaves\mongo\Windows_64bit\mongo\src\mongo/util/concurrency/mutex.h(143) : error C3861: 'LeaveCriticalSection': identifier not found
scons: *** [build\win32\64\release\mongo\unittest\unittest.obj] Error 2
scons: building terminated because of errors.

http://buildbot.mongodb.org/builders/Windows%2064-bit/builds/4611/steps/compile/logs/stdio



 Comments   
Comment by Eric Milkie [ 05/Apr/12 ]

https://github.com/mongodb/mongo/commit/6fa89a50aba53d6b749d7e9f07efd5bc4ef4e7bc
https://github.com/mongodb/mongo/commit/8bbd9f1eff6691968cad5a45469da0293a9f43e8

Generated at Thu Feb 08 03:09:04 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.