stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r616976 - /stdcxx/trunk/tests/self/0.printf.cpp
Date Thu, 31 Jan 2008 01:27:11 GMT
Author: sebor
Date: Wed Jan 30 17:27:10 2008
New Revision: 616976

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

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

Modified:
    stdcxx/trunk/tests/self/0.printf.cpp

Modified: stdcxx/trunk/tests/self/0.printf.cpp
URL: http://svn.apache.org/viewvc/stdcxx/trunk/tests/self/0.printf.cpp?rev=616976&r1=616975&r2=616976&view=diff
==============================================================================
--- stdcxx/trunk/tests/self/0.printf.cpp (original)
+++ stdcxx/trunk/tests/self/0.printf.cpp Wed Jan 30 17:27:10 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