ICU-567 Mac OS has a tough time with stack data larger than 32K

X-SVN-Rev: 4586
This commit is contained in:
George Rhoten 2001-05-03 00:08:09 +00:00
parent 6600210ae6
commit dfd3b1c90e

View File

@ -244,8 +244,9 @@ void TestProperty()
doAssert( tempLength != 0, "getRules() result incorrect" );
log_verbose("getRules tests end.\n");
{
UChar buffer[200000] ={'\0'};
UChar *buffer = (UChar *)uprv_malloc(200000);
int32_t bufLen = 200000;
buffer[0] = '\0';
log_verbose("ucol_getRulesEx() testing ...\n");
tempLength = ucol_getRulesEx(col,UCOL_TAILORING_ONLY,buffer,bufLen );
doAssert( tempLength == 0, "getRulesEx() result incorrect" );
@ -255,6 +256,7 @@ void TestProperty()
tempLength=ucol_getRulesEx(col,UCOL_FULL_RULES,buffer,bufLen );
doAssert( tempLength != 0, "getRulesEx() result incorrect" );
log_verbose("getRules tests end.\n");
uprv_free(buffer);
}
ucol_close(ruled);
ucol_close(col);