Changeset 21740 in vbox for trunk/src/VBox/Runtime/testcase/tstUtf8.cpp
- Timestamp:
- Jul 21, 2009 12:06:38 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 50317
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/testcase/tstUtf8.cpp
r21728 r21740 806 806 } s_Buf; 807 807 808 RTTestSub(hTest, "Benchmarks"); 809 /** @todo add RTTest* methods for reporting benchmark results. */ 808 810 RTTestPrintf(hTest, RTTESTLVL_ALWAYS, "Benchmarking RTStrToUtf16Ex: "); /** @todo figure this stuff into the test framework. */ 809 811 PRTUTF16 pwsz = &s_Buf.wszBuf[0]; … … 846 848 } 847 849 850 RTTestSubDone(hTest); 848 851 } 849 852 … … 1067 1070 rc = RTUtf16ToLatin1Ex(g_wszAll, 128, &psz2, 128, &cchActual); 1068 1071 RTTEST_CHECK_RC(hTest, rc, VERR_BUFFER_OVERFLOW); 1069 /** @todo Either fix the documentation or fix the code - cchActual is 1070 * set to the number of bytes actually encoded. */ 1071 RTTEST_CHECK_MSG(hTest, (cchActual == 128), 1072 RTTEST_CHECK_MSG(hTest, cchActual == 128, 1072 1073 (hTest, "cchActual=%lu\n", cchActual)); 1073 1074 rc = RTUtf16ToLatin1Ex(g_wszAll, 255, &psz, 0, &cchActual); … … 1183 1184 RTTESTI_CHECK_RC(rc, VERR_NO_TRANSLATION); 1184 1185 1186 RTTestSub(hTest, "VERR_NO_TRANSLATION/RTUtf16ToLatin1"); 1187 rc = RTUtf16ToLatin1(s_swzTest1, &pszOut); 1188 RTTESTI_CHECK_RC(rc, VERR_NO_TRANSLATION); 1189 if (RT_SUCCESS(rc)) 1190 RTStrFree(pszOut); 1191 1185 1192 RTStrFree(pszTest1); 1186 1193 RTTestSubDone(hTest); … … 1208 1215 TstRTStrXCmp(hTest); 1209 1216 testStrStr(hTest); 1210 1211 1217 testMinistring(hTest); 1212 1213 1218 testLatin1(hTest); 1214 1215 1219 testNoTransation(hTest); 1216 1220
Note:
See TracChangeset
for help on using the changeset viewer.