Skip to content

Commit 0119c17

Browse files
committed
Add guards to test files
1 parent e0b21bd commit 0119c17

File tree

7 files changed

+25
-0
lines changed

7 files changed

+25
-0
lines changed

icu4c/source/test/intltest/itformat.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,8 +288,10 @@ void IntlTestFormat::runIndexedTest( int32_t index, UBool exec, const char* &nam
288288
callTest(*test, par);
289289
}
290290
break;
291+
#if !UCONFIG_NO_NORMALIZATION
291292
#if !UCONFIG_NO_MF2
292293
TESTCLASS(60,TestMessageFormat2);
294+
#endif
293295
#endif
294296
default: name = ""; break; //needed to end loop
295297
}

icu4c/source/test/intltest/messageformat2test.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
#include "unicode/utypes.h"
44

5+
#if !UCONFIG_NO_NORMALIZATION
6+
57
#if !UCONFIG_NO_FORMATTING
68

79
#if !UCONFIG_NO_MF2
@@ -380,3 +382,4 @@ TestCase::Builder::~Builder() {}
380382

381383
#endif /* #if !UCONFIG_NO_FORMATTING */
382384

385+
#endif /* #if !UCONFIG_NO_NORMALIZATION */

icu4c/source/test/intltest/messageformat2test.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
#include "unicode/rep.h"
88
#include "unicode/utypes.h"
99

10+
#if !UCONFIG_NO_NORMALIZATION
11+
1012
#if !UCONFIG_NO_FORMATTING
1113

1214
#if !UCONFIG_NO_MF2
@@ -187,4 +189,6 @@ U_NAMESPACE_END
187189

188190
#endif /* #if !UCONFIG_NO_FORMATTING */
189191

192+
#endif /* #if !UCONFIG_NO_NORMALIZATION */
193+
190194
#endif

icu4c/source/test/intltest/messageformat2test_custom.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
#include "unicode/utypes.h"
44

5+
#if !UCONFIG_NO_NORMALIZATION
6+
57
#if !UCONFIG_NO_FORMATTING
68

79
#if !UCONFIG_NO_MF2
@@ -730,3 +732,5 @@ void TestMessageFormat2::testMessageRefFormatter(IcuTestErrorCode& errorCode) {
730732
#endif /* #if !UCONFIG_NO_MF2 */
731733

732734
#endif /* #if !UCONFIG_NO_FORMATTING */
735+
736+
#endif /* #if !UCONFIG_NO_NORMALIZATION */

icu4c/source/test/intltest/messageformat2test_icu.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
#include "unicode/utypes.h"
44

5+
#if !UCONFIG_NO_NORMALIZATION
6+
57
#if !UCONFIG_NO_FORMATTING
68

79
#if !UCONFIG_NO_MF2
@@ -157,3 +159,5 @@ void TestMessageFormat2::messageFormat1Tests() {
157159
#endif /* #if !UCONFIG_NO_MF2 */
158160

159161
#endif /* #if !UCONFIG_NO_FORMATTING */
162+
163+
#endif /* #if !UCONFIG_NO_NORMALIZATION */

icu4c/source/test/intltest/messageformat2test_read_json.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
#include "unicode/utypes.h"
44

5+
#if !UCONFIG_NO_NORMALIZATION
6+
57
#if !UCONFIG_NO_FORMATTING
68

79
#if !UCONFIG_NO_MF2
@@ -361,3 +363,5 @@ void TestMessageFormat2::jsonTestsFromFiles(IcuTestErrorCode& errorCode) {
361363
#endif /* #if !UCONFIG_NO_MF2 */
362364

363365
#endif /* #if !UCONFIG_NO_FORMATTING */
366+
367+
#endif /* #if !UCONFIG_NO_NORMALIZATION */

icu4c/source/test/intltest/messageformat2test_utils.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
#include "unicode/utypes.h"
88

9+
#if !UCONFIG_NO_NORMALIZATION
10+
911
#if !UCONFIG_NO_FORMATTING
1012

1113
#if !UCONFIG_NO_MF2
@@ -344,4 +346,6 @@ U_NAMESPACE_END
344346

345347
#endif /* #if !UCONFIG_NO_FORMATTING */
346348

349+
#endif /* #if !UCONFIG_NO_NORMALIZATION */
350+
347351
#endif

0 commit comments

Comments
 (0)