ICU-5032 Increase code coverage numbers

X-SVN-Rev: 19087
This commit is contained in:
George Rhoten 2006-02-07 22:15:47 +00:00
parent cb69e53d8d
commit d160dc506e
4 changed files with 11 additions and 15 deletions

View File

@ -1,6 +1,6 @@
/*
********************************************************************************
* Copyright (C) 1996-2005, International Business Machines
* Copyright (C) 1996-2006, International Business Machines
* Corporation and others. All Rights Reserved.
********************************************************************************
*
@ -154,11 +154,9 @@ _openProps(UCharProps *ucp, UErrorCode *pErrorCode) {
#endif
U_CFUNC int8_t
#if !UCHAR_HARDCODE_DATA
static int8_t
uprv_loadPropsData(UErrorCode *pErrorCode) {
#if UCHAR_HARDCODE_DATA
return TRUE;
#else
/* load Unicode character properties data from file if necessary */
/*
@ -213,11 +211,8 @@ uprv_loadPropsData(UErrorCode *pErrorCode) {
}
return havePropsData;
#endif
}
#if !UCHAR_HARDCODE_DATA
static int8_t
loadPropsData(void) {
UErrorCode errorCode = U_ZERO_ERROR;

View File

@ -1,7 +1,7 @@
/*
******************************************************************************
* *
* Copyright (C) 2001-2005, International Business Machines *
* Copyright (C) 2001-2006, International Business Machines *
* Corporation and others. All Rights Reserved. *
* *
******************************************************************************
@ -118,7 +118,7 @@ u_init(UErrorCode *status) {
*/
/* Char Properties */
uprv_loadPropsData(status);
uprv_haveProperties(status);
/* load the case and bidi properties but don't fail if they are not available */
u_isULowercase(0x61);

View File

@ -1,6 +1,6 @@
/*
**********************************************************************
* Copyright (C) 1999-2005, International Business Machines
* Copyright (C) 1999-2006, International Business Machines
* Corporation and others. All Rights Reserved.
**********************************************************************
* file name: ustr_imp.h
@ -67,8 +67,8 @@ uprv_haveProperties(UErrorCode *pErrorCode);
* NOT thread safe.
* @internal
*/
U_CFUNC int8_t
uprv_loadPropsData(UErrorCode *errorCode);
/*U_CFUNC int8_t
uprv_loadPropsData(UErrorCode *errorCode);*/
/**
* Type of a function that may be passed to the internal case mapping functions

View File

@ -975,7 +975,7 @@ static void TestAPI() {
const char* testdatapath;
UChar* utestdatapath=NULL;
char convOutput[256];
UChar largeBuffer[1024];
UChar largeBuffer[1025];
UResourceBundle *teRes = NULL;
UResourceBundle *teFillin=NULL;
UResourceBundle *teFillin2=NULL;
@ -1008,8 +1008,9 @@ static void TestAPI() {
/*Test ures_openU */
status = U_ZERO_ERROR;
ures_close(ures_openU(largeBuffer, "root", &status));
if(U_SUCCESS(status)){
if(status != U_ILLEGAL_ARGUMENT_ERROR){
log_err("ERROR: ures_openU() worked when the path is very large. It returned %s\n", myErrorName(status));
}