Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Unified Diff: source/test/iotest/filetst.c

Issue 1621843002: ICU 56 update step 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/icu.git@561
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « source/test/intltest/ustrtest.cpp ('k') | source/test/iotest/iotest.vcxproj » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/test/iotest/filetst.c
diff --git a/source/test/iotest/filetst.c b/source/test/iotest/filetst.c
index 6cd0ecc1666d6c5eec7b68d98146d9f359e73a4a..54838d10492eb395638c6d27ec39fd374ee4bf16 100644
--- a/source/test/iotest/filetst.c
+++ b/source/test/iotest/filetst.c
@@ -1,6 +1,6 @@
/*
**********************************************************************
- * Copyright (C) 2004-2013, International Business Machines
+ * Copyright (C) 2004-2014, International Business Machines
* Corporation and others. All Rights Reserved.
**********************************************************************
* file name: filetst.c
@@ -239,7 +239,7 @@ static void TestFileFromICU(UFILE *myFile) {
myString[2] = '!';
myString[3] = '!';
u_austrncpy(myString, myUString, sizeof(myUString)/sizeof(*myUString));
- if (myString == NULL || strcmp(myString, "\t\n") != 0) {
+ if (strcmp(myString, "\t\n") != 0) {
log_err("u_fgets got \"%s\"\n", myString);
}
@@ -247,7 +247,7 @@ static void TestFileFromICU(UFILE *myFile) {
log_err("u_fgets did not return myUString\n");
}
u_austrncpy(myString, myUString, sizeof(myUString)/sizeof(*myUString));
- if (myString == NULL || strcmp(myString, "Pointer to integer (Count) %n: n=1 n=1\n") != 0) {
+ if (strcmp(myString, "Pointer to integer (Count) %n: n=1 n=1\n") != 0) {
log_err("u_fgets got \"%s\"\n", myString);
}
@@ -255,7 +255,7 @@ static void TestFileFromICU(UFILE *myFile) {
log_err("u_fgets did not return myUString\n");
}
u_austrncpy(myString, myUString, sizeof(myUString)/sizeof(*myUString));
- if (myString == NULL || strcmp(myString, "Pointer to integer Value: 37\n") != 0) {
+ if (strcmp(myString, "Pointer to integer Value: 37\n") != 0) {
log_err("u_fgets got \"%s\"\n", myString);
}
@@ -263,7 +263,7 @@ static void TestFileFromICU(UFILE *myFile) {
log_err("u_fgets did not return myUString\n");
}
u_austrncpy(myString, myUString, sizeof(myUString)/sizeof(*myUString));
- if (myString == NULL || strcmp(myString, "This is a long test123456789012345678901234567890123456789012345678901234567890\n") != 0) {
+ if (strcmp(myString, "This is a long test123456789012345678901234567890123456789012345678901234567890\n") != 0) {
log_err("u_fgets got \"%s\"\n", myString);
}
@@ -275,7 +275,7 @@ static void TestFileFromICU(UFILE *myFile) {
log_err("u_fgets did not return myUString\n");
}
u_austrncpy(myString, myUString, sizeof(myUString)/sizeof(*myUString));
- if (myString == NULL || strcmp(myString, "") != 0) {
+ if (strcmp(myString, "") != 0) {
log_err("u_fgets got \"%s\"\n", myString);
}
@@ -283,7 +283,7 @@ static void TestFileFromICU(UFILE *myFile) {
log_err("u_fgets did not return myUString\n");
}
u_austrncpy(myString, myUString, sizeof(myUString)/sizeof(*myUString));
- if (myString == NULL || strcmp(myString, "\t") != 0) {
+ if (strcmp(myString, "\t") != 0) {
log_err("u_fgets got \"%s\"\n", myString);
}
« no previous file with comments | « source/test/intltest/ustrtest.cpp ('k') | source/test/iotest/iotest.vcxproj » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698