Commit a41a574d authored by Austin English's avatar Austin English Committed by Alexandre Julliard

comctl32/tests: Remove dead assignments (LLVM/Clang).

parent ba6a41a4
...@@ -87,18 +87,15 @@ static void test_GetPtrAW(void) ...@@ -87,18 +87,15 @@ static void test_GetPtrAW(void)
* Our implementation also crashes and we should probably leave * Our implementation also crashes and we should probably leave
* it like that. * it like that.
*/ */
count = -1;
count = pStr_GetPtrA(NULL, NULL, destsize); count = pStr_GetPtrA(NULL, NULL, destsize);
trace("count : %d\n", count); trace("count : %d\n", count);
} }
count = 0;
count = pStr_GetPtrA(source, NULL, 0); count = pStr_GetPtrA(source, NULL, 0);
ok (count == sourcelen || ok (count == sourcelen ||
broken(count == sourcelen - 1), /* win9x */ broken(count == sourcelen - 1), /* win9x */
"Expected count to be %d, it was %d\n", sourcelen, count); "Expected count to be %d, it was %d\n", sourcelen, count);
count = 0;
strcpy(dest, desttest); strcpy(dest, desttest);
count = pStr_GetPtrA(source, dest, 0); count = pStr_GetPtrA(source, dest, 0);
ok (count == sourcelen || ok (count == sourcelen ||
...@@ -108,26 +105,22 @@ static void test_GetPtrAW(void) ...@@ -108,26 +105,22 @@ static void test_GetPtrAW(void)
broken(!lstrcmp(dest, "")), /* Win7 */ broken(!lstrcmp(dest, "")), /* Win7 */
"Expected destination to not have changed\n"); "Expected destination to not have changed\n");
count = 0;
count = pStr_GetPtrA(source, NULL, destsize); count = pStr_GetPtrA(source, NULL, destsize);
ok (count == sourcelen || ok (count == sourcelen ||
broken(count == sourcelen - 1), /* win9x */ broken(count == sourcelen - 1), /* win9x */
"Expected count to be %d, it was %d\n", sourcelen, count); "Expected count to be %d, it was %d\n", sourcelen, count);
count = 0;
count = pStr_GetPtrA(source, dest, destsize); count = pStr_GetPtrA(source, dest, destsize);
ok (count == sourcelen || ok (count == sourcelen ||
broken(count == sourcelen - 1), /* win9x */ broken(count == sourcelen - 1), /* win9x */
"Expected count to be %d, it was %d\n", sourcelen, count); "Expected count to be %d, it was %d\n", sourcelen, count);
ok (!lstrcmp(source, dest), "Expected source and destination to be the same\n"); ok (!lstrcmp(source, dest), "Expected source and destination to be the same\n");
count = -1;
strcpy(dest, desttest); strcpy(dest, desttest);
count = pStr_GetPtrA(NULL, dest, destsize); count = pStr_GetPtrA(NULL, dest, destsize);
ok (count == 0, "Expected count to be 0, it was %d\n", count); ok (count == 0, "Expected count to be 0, it was %d\n", count);
ok (dest[0] == '\0', "Expected destination to be cut-off and 0 terminated\n"); ok (dest[0] == '\0', "Expected destination to be cut-off and 0 terminated\n");
count = 0;
destsize = 15; destsize = 15;
count = pStr_GetPtrA(source, dest, destsize); count = pStr_GetPtrA(source, dest, destsize);
ok (count == 15 || ok (count == 15 ||
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment