X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/08b89b0a244153b9f5bbb2f49c55ab0f7298122e..b331163bffd790ced0e88b73f44f86d49ccc48a5:/icuSources/test/iotest/filetst.c?ds=sidebyside diff --git a/icuSources/test/iotest/filetst.c b/icuSources/test/iotest/filetst.c index 6cd0ecc1..54838d10 100644 --- a/icuSources/test/iotest/filetst.c +++ b/icuSources/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); }