stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From far...@apache.org
Subject svn commit: r616004 - /stdcxx/trunk/tests/utilities/20.temp.buffer.cpp
Date Mon, 28 Jan 2008 19:07:17 GMT
Author: faridz
Date: Mon Jan 28 11:07:16 2008
New Revision: 616004

URL: http://svn.apache.org/viewvc?rev=616004&view=rev
Log:
2008-01-28 Farid Zaripov <farid_zaripov@epam.com>

	Merged r616003 from branches/4.2.x with a fix for STDCXX-712
	* tests/utilities/20.temp.buffer.cpp [_MSC_VER]: Disabled
	"Invalid allocation size: 4294967292 bytes" message box from malloc().

Modified:
    stdcxx/trunk/tests/utilities/20.temp.buffer.cpp

Modified: stdcxx/trunk/tests/utilities/20.temp.buffer.cpp
URL: http://svn.apache.org/viewvc/stdcxx/trunk/tests/utilities/20.temp.buffer.cpp?rev=616004&r1=616003&r2=616004&view=diff
==============================================================================
--- stdcxx/trunk/tests/utilities/20.temp.buffer.cpp (original)
+++ stdcxx/trunk/tests/utilities/20.temp.buffer.cpp Mon Jan 28 11:07:16 2008
@@ -35,6 +35,7 @@
 
 #ifdef _MSC_VER
 #  include <climits>     // for INT_MAX
+#  include <crtdbg.h>    // for _CrtSetReportMode()
 #endif
 
 #include <rw_new.h>
@@ -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 */,



Mime
View raw message