ICU-7350 remove test for old udata_setCommonData() semantics; it now allows setting multiple packages and checks for duplicates

X-SVN-Rev: 27290
This commit is contained in:
Markus Scherer 2010-01-15 22:48:17 +00:00
parent a31448aab8
commit 285259186d

View File

@ -1,6 +1,6 @@
/********************************************************************
* COPYRIGHT:
* Copyright (c) 1998-2009, International Business Machines Corporation and
* Copyright (c) 1998-2010, International Business Machines Corporation and
* others. All Rights Reserved.
********************************************************************/
/*
@ -1747,18 +1747,6 @@ static void SetBadCommonData(void) {
if (status != U_ILLEGAL_ARGUMENT_ERROR) {
log_err("FAIL: udata_setCommonData did not fail with bad arguments.\n");
}
if (u_getDataDirectory() == NULL || u_getDataDirectory()[0] == 0) {
/* Check that we don't change the common data. Many ICU tests will fail after this test, if this works. */
/* We could do a better test, if we called u_cleanup and udata_setCommonData returned the last value. */
status = U_ZERO_ERROR;
udata_setCommonData(&gOffsetTOCAppData_dat, &status);
if (status != U_USING_DEFAULT_WARNING) {
log_err("FAIL: udata_setCommonData allowed the data to be changed after initialization!\n");
}
}
else {
log_verbose("Can't test setting common data because files mode may have been used.\n");
}
/* Check that we verify that the data isn't bad */
status = U_ZERO_ERROR;