You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stdcxx.apache.org by se...@apache.org on 2008/01/31 02:27:11 UTC
svn commit: r616976 - /stdcxx/trunk/tests/self/0.printf.cpp
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 <se...@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
}