diff -r 31a8f755b7fe -r 211563e4b919 persistentstorage/sql/TEST/t_sqlstartup.cpp --- a/persistentstorage/sql/TEST/t_sqlstartup.cpp Thu Apr 01 00:19:42 2010 +0300 +++ b/persistentstorage/sql/TEST/t_sqlstartup.cpp Wed Apr 14 17:46:32 2010 +0300 @@ -306,6 +306,17 @@ name2[1] = TChar(0xFC00); rc = UTF16ToUTF8(name2, bufout); TEST(!rc); +#ifndef _DEBUG + //Test where the input buffer is too big + TBuf bufin; + bufin.SetLength(bufin.MaxLength()); + rc = UTF16ToUTF8(bufin, bufout); + TEST(!rc); + //Test where the output buffer max length is less than KMaxFileName + TBuf8 bufout2; + rc = UTF16ToUTF8(name2, bufout2); + TEST(!rc); +#endif ///////// UTF16ToUTF8Z() /////////////////////// _LIT8(KStr8Z, "abcd\x0"); rc = UTF16ToUTF8Z(KStr16, bufout);