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  <[EMAIL PROTECTED]>

        Merged rev 616976 from trunk.
        
        2008-01-30 Martin Sebor <[EMAIL PROTECTED]>

        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
 
     }


Reply via email to