diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2007-09-20 14:23:07 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2007-09-20 14:23:07 +0000 |
commit | 4bc7657b9596ccb7b84162e49ed6976d58529510 (patch) | |
tree | 3cc698fe0e86051ff895cd64fc58651254d64a9e /sal/qa/rtl_strings | |
parent | 8ea20050de1f84f2a9ed45089ea41c7e6239a9cb (diff) |
INTEGRATION: CWS os2port01 (1.5.146); FILE MERGED
2007/08/09 09:17:37 obr 1.5.146.2: RESYNC: (1.5-1.6); FILE MERGED
2006/11/29 14:26:52 ydario 1.5.146.1: Initial OS/2 import.
Diffstat (limited to 'sal/qa/rtl_strings')
-rw-r--r-- | sal/qa/rtl_strings/rtl_old_testowstring.cxx | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/sal/qa/rtl_strings/rtl_old_testowstring.cxx b/sal/qa/rtl_strings/rtl_old_testowstring.cxx index dfdf723e8..62a9850a2 100644 --- a/sal/qa/rtl_strings/rtl_old_testowstring.cxx +++ b/sal/qa/rtl_strings/rtl_old_testowstring.cxx @@ -4,9 +4,9 @@ * * $RCSfile: rtl_old_testowstring.cxx,v $ * - * $Revision: 1.6 $ + * $Revision: 1.7 $ * - * last change: $Author: obo $ $Date: 2006-09-17 09:03:17 $ + * last change: $Author: vg $ $Date: 2007-09-20 15:23:07 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -48,7 +48,7 @@ #ifdef UNX #include <wchar.h> #endif -#ifdef OS2 +#ifdef OS2__00 #include <wcstr.h> #endif @@ -281,11 +281,13 @@ void oldtests::test_OUString() TEST_ENSURE( uStr.compareTo( OUString::createFromAscii("Hallp"), 5 ) < 0, "test_OWString error 54.2.7" ); } +#if OSL_DEBUG_LEVEL == 0 +//YD will fail copy assert on indexes, because ':' returns -1 s7 = OUString::createFromAscii("Hallo jetzt komm ich"); s8 = s7.copy(0, s7.indexOf((sal_Unicode)':')); TEST_ENSURE( s8.getLength() == 0, "test_OWString error 55"); TEST_ENSURE( s8.compareTo(OUString()) == 0, "test_OWString error 56"); - +#endif // ASCII-Schnittstellen, AB 15.10.1999 @@ -345,7 +347,7 @@ void oldtests::test_OUString() // toInt64 OUString s9( OUString::createFromAscii(" -3223372036854775807") ); sal_Int64 ln1 = s9.toInt64(); -#ifdef UNX +#if (defined UNX) || (defined OS2) TEST_ENSURE( ln1 == -3223372036854775807LL, "test_OWString error 67" ); #else TEST_ENSURE( ln1 == -3223372036854775807, "test_OWString error 67" ); @@ -355,7 +357,7 @@ void oldtests::test_OUString() TEST_ENSURE( ln2 == 13243, "test_OWString error 68" ); sal_Int64 ln3 = s10.toInt64( 16 ); -#ifdef UNX +#if (defined UNX) || (defined OS2) TEST_ENSURE( ln3 == 0x13243A65F1LL, "test_OWString error 69" ); #else TEST_ENSURE( ln3 == 0x13243A65F1, "test_OWString error 69" ); |