[EMAIL PROTECTED] wrote:
Author: faridz
Date: Mon Jan 28 11:05:36 2008
New Revision: 616003
URL: http://svn.apache.org/viewvc?rev=616003&view=rev
Log:
2008-01-28 Farid Zaripov <[EMAIL PROTECTED]>
STDCXX-712
* tests/utilities/20.temp.buffer.cpp [_MSC_VER]: Disabled
"Invalid allocation size: 4294967292 bytes" message box from malloc().
Modified:
stdcxx/branches/4.2.x/tests/utilities/20.temp.buffer.cpp
Modified: stdcxx/branches/4.2.x/tests/utilities/20.temp.buffer.cpp
URL:
http://svn.apache.org/viewvc/stdcxx/branches/4.2.x/tests/utilities/20.temp.buffer.cpp?rev=616003&r1=616002&r2=616003&view=diff
==============================================================================
--- stdcxx/branches/4.2.x/tests/utilities/20.temp.buffer.cpp (original)
+++ stdcxx/branches/4.2.x/tests/utilities/20.temp.buffer.cpp Mon Jan 28
11:05:36 2008
@@ -35,6 +35,7 @@
#ifdef _MSC_VER
# include <climits> // for INT_MAX
+# include <crtdbg.h> // for _CrtSetReportMode()
#endif
#include <rw_new.h>
Should we do this in <rw_new.h> (or new.cpp, on the first call
to operator new or operator delete) instead?
Martin
@@ -475,6 +476,12 @@
int main (int argc, char *argv[])
{
+#ifdef _MSC_VER
+ // disable "Invalid allocation size: 4294967292 bytes"
+ // message box from malloc()
+ _CrtSetReportMode (_CRT_ERROR, _CRTDBG_MODE_DEBUG);
+#endif
+
return rw_test (argc, argv, __FILE__,
"lib.temporary.buffer",
0 /* no comment */,