From 285259186d349c15195a9694fde4088b94d201a8 Mon Sep 17 00:00:00 2001 From: Markus Scherer Date: Fri, 15 Jan 2010 22:48:17 +0000 Subject: [PATCH] ICU-7350 remove test for old udata_setCommonData() semantics; it now allows setting multiple packages and checks for duplicates X-SVN-Rev: 27290 --- icu4c/source/test/cintltst/udatatst.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/icu4c/source/test/cintltst/udatatst.c b/icu4c/source/test/cintltst/udatatst.c index 7781bad3922..97bdaa3db6f 100644 --- a/icu4c/source/test/cintltst/udatatst.c +++ b/icu4c/source/test/cintltst/udatatst.c @@ -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;