stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From far...@apache.org
Subject svn commit: r616003 - /stdcxx/branches/4.2.x/tests/utilities/20.temp.buffer.cpp
Date Mon, 28 Jan 2008 19:05:37 GMT
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 <farid_zaripov@epam.com>

	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>
@@ -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