stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r617627 - /stdcxx/branches/4.2.x/tests/self/0.printf.cpp
Date Fri, 01 Feb 2008 20:15:44 GMT
Author: sebor
Date: Fri Feb  1 12:15:41 2008
New Revision: 617627

URL: http://svn.apache.org/viewvc?rev=617627&view=rev
Log:
2008-02-01  Martin Sebor  <sebor@roguewave.com>

	Merged rev 616976 from trunk.
	
	2008-01-30 Martin Sebor <sebor@roguewave.com>

	STDCXX-705
	* tests/src/0.printf.cpp [_RWSTD_OS_HP_UX](bad_address): Used
	(0 - 32) as an invalid address.

Modified:
    stdcxx/branches/4.2.x/tests/self/0.printf.cpp

Modified: stdcxx/branches/4.2.x/tests/self/0.printf.cpp
URL: http://svn.apache.org/viewvc/stdcxx/branches/4.2.x/tests/self/0.printf.cpp?rev=617627&r1=617626&r2=617627&view=diff
==============================================================================
--- stdcxx/branches/4.2.x/tests/self/0.printf.cpp (original)
+++ stdcxx/branches/4.2.x/tests/self/0.printf.cpp Fri Feb  1 12:15:41 2008
@@ -170,8 +170,9 @@
         // the first page is usually unmapped
         addr = (char*)32;
 #else
-        // the first page on HP-UX is readable, this might work
-        addr = (char*)(void*)bad_address + 1024 * 1024 * 16;
+        // the first page on HP-UX is readable, this should give
+        // an invalid (inaccessible) address both on IPF and PA
+        addr = (char*)(0 - size_t (32));
 #endif   // _RWSTD_OS_HP_UX
 
     }



Mime
View raw message