Lines Matching refs:result

41 		size_t result = wcslen(string);
43 if (result != expected || errno != 0) {
44 printf("\tPROBLEM: result for wcslen(\"%ls\") = %lu (expected %lu),"
45 " errno = %x (expected %x)\n", string, result, expected,
53 size_t result = wcslen(string);
55 if (result != expected || errno != 0) {
56 printf("\tPROBLEM: result for wcslen(\"%ls\") = %lu (expected %lu),"
57 " errno = %x (expected %x)\n", string, result, expected,
65 size_t result = wcslen(string);
67 if (result != expected || errno != 0) {
68 printf("\tPROBLEM: result for wcslen(\"%ls\") = %lu (expected %lu),"
69 " errno = %x (expected %x)\n", string, result, expected,
77 size_t result = wcslen(string);
79 if (result != expected || errno != 0) {
80 printf("\tPROBLEM: result for wcslen(\"%ls\") = %lu (expected %lu),"
81 " errno = %x (expected %x)\n", string, result, expected,
89 size_t result = wcsnlen(string, 0);
91 if (result != expected || errno != 0) {
92 printf("\tPROBLEM: result for wcsnlen(\"%ls\", 0) = %lu "
94 string, result, expected, errno, 0);
101 size_t result = wcsnlen(string, 4);
103 if (result != expected || errno != 0) {
104 printf("\tPROBLEM: result for wcsnlen(\"%ls\", 4) = %lu "
106 string, result, expected, errno, 0);
113 size_t result = wcsnlen(string, 6);
115 if (result != expected || errno != 0) {
116 printf("\tPROBLEM: result for wcsnlen(\"%ls\", 6) = %lu "
118 string, result, expected, errno, 0);
144 int result = sign(wcscmp(a, b));
146 if (result != expected || errno != 0) {
147 printf("\tPROBLEM: result for wcscmp(\"%ls\", \"%ls\") = %d "
148 "(expected %d), errno = %x (expected 0)\n", a, b, result,
157 int result = sign(wcscmp(a, b));
159 if (result != expected || errno != 0) {
160 printf("\tPROBLEM: result for wcscmp(\"%ls\", \"%ls\") = %d "
161 "(expected %d), errno = %x (expected 0)\n", a, b, result,
170 int result = sign(wcscmp(a, b));
172 if (result != expected || errno != 0) {
173 printf("\tPROBLEM: result for wcscmp(\"%ls\", \"%ls\") = %d "
174 "(expected %d), errno = %x (expected 0)\n", a, b, result,
183 int result = sign(wcscmp(a, b));
185 if (result != expected || errno != 0) {
186 printf("\tPROBLEM: result for wcscmp(\"%ls\", \"%ls\") = %d "
187 "(expected %d), errno = %x (expected 0)\n", a, b, result,
196 int result = sign(wcscmp(a, b));
198 if (result != expected || errno != 0) {
199 printf("\tPROBLEM: result for wcscmp(\"%ls\", \"%ls\") = %d "
200 "(expected %d), errno = %x (expected 0)\n", a, b, result,
209 int result = sign(wcscmp(a, b));
211 if (result != expected || errno != 0) {
212 printf("\tPROBLEM: result for wcscmp(\"%ls\", \"%ls\") = %d "
213 "(expected %d), errno = %x (expected 0)\n", a, b, result,
222 int result = sign(wcscmp(a, b));
224 if (result != expected || errno != 0) {
225 printf("\tPROBLEM: result for wcscmp(\"%ls\", \"%ls\") = %d "
226 "(expected %d), errno = %x (expected 0)\n", a, b, result,
235 int result = sign(wcsncmp(a, b, 0));
237 if (result != expected || errno != 0) {
238 printf("\tPROBLEM: result for wcsncmp(\"%ls\", \"%ls\", 0) = %d "
239 "(expected %d), errno = %x (expected 0)\n", a, b, result,
248 int result = sign(wcsncmp(a, b, 4));
250 if (result != expected || errno != 0) {
251 printf("\tPROBLEM: result for wcsncmp(\"%ls\", \"%ls\", 4) = %d "
252 "(expected %d), errno = %x (expected 0)\n", a, b, result,
261 int result = sign(wcsncmp(a, b, 5));
263 if (result != expected || errno != 0) {
264 printf("\tPROBLEM: result for wcsncmp(\"%ls\", \"%ls\", 5) = %d "
265 "(expected %d), errno = %x (expected 0)\n", a, b, result,
274 int result = sign(wcsncmp(a, b, (size_t)-1));
276 if (result != expected || errno != 0) {
277 printf("\tPROBLEM: result for wcsncmp(\"%ls\", \"%ls\", -1) = %d "
278 "(expected %d), errno = %x (expected 0)\n", a, b, result,
305 int result = sign(wcscasecmp(a, b));
307 if (result != expected || errno != 0) {
308 printf("\tPROBLEM: result for wcscasecmp(\"%ls\", \"%ls\") = %d "
309 "(expected %d), errno = %x (expected 0)\n", a, b, result,
318 int result = sign(wcscasecmp(a, b));
320 if (result != expected || errno != 0) {
321 printf("\tPROBLEM: result for wcscasecmp(\"%ls\", \"%ls\") = %d "
322 "(expected %d), errno = %x (expected 0)\n", a, b, result,
331 int result = sign(wcscasecmp(a, b));
333 if (result != expected || errno != 0) {
334 printf("\tPROBLEM: result for wcscasecmp(\"%ls\", \"%ls\") = %d "
335 "(expected %d), errno = %x (expected 0)\n", a, b, result,
344 int result = sign(wcscasecmp(a, b));
346 if (result != expected || errno != 0) {
347 printf("\tPROBLEM: result for wcscasecmp(\"%ls\", \"%ls\") = %d "
348 "(expected %d), errno = %x (expected 0)\n", a, b, result,
357 int result = sign(wcscasecmp(a, b));
359 if (result != expected || errno != 0) {
360 printf("\tPROBLEM: result for wcscasecmp(\"%ls\", \"%ls\") = %d "
361 "(expected %d), errno = %x (expected 0)\n", a, b, result,
370 int result = sign(wcscasecmp(a, b));
372 if (result != expected || errno != 0) {
373 printf("\tPROBLEM: result for wcscasecmp(\"%ls\", \"%ls\") = %d "
374 "(expected %d), errno = %x (expected 0)\n", a, b, result,
383 int result = sign(wcscasecmp(a, b));
385 if (result != expected || errno != 0) {
386 printf("\tPROBLEM: result for wcscasecmp(\"%ls\", \"%ls\") = %d "
387 "(expected %d), errno = %x (expected 0)\n", a, b, result,
396 int result = sign(wcsncasecmp(a, b, 0));
398 if (result != expected || errno != 0) {
399 printf("\tPROBLEM: result for wcscasencmp(\"%ls\", \"%ls\", 0) = %d"
400 " (expected %d), errno = %x (expected 0)\n", a, b, result,
409 int result = sign(wcsncasecmp(a, b, 4));
411 if (result != expected || errno != 0) {
412 printf("\tPROBLEM: result for wcsncasecmp(\"%ls\", \"%ls\", 4) = %d"
413 " (expected %d), errno = %x (expected 0)\n", a, b, result,
422 int result = sign(wcsncasecmp(a, b, 5));
424 if (result != expected || errno != 0) {
425 printf("\tPROBLEM: result for wcsncasecmp(\"%ls\", \"%ls\", 5) = %d"
426 " (expected %d), errno = %x (expected 0)\n", a, b, result,
435 int result = sign(wcsncasecmp(a, b, (size_t)-1));
437 if (result != expected || errno != 0) {
438 printf("\tPROBLEM: result for wcsncasecmp(\"%ls\", \"%ls\", -1) = "
439 "%d (expected %d), errno = %x (expected 0)\n", a, b, result,
466 const wchar_t* result = wcschr(string, ch);
468 if (result != expected || errno != 0) {
469 printf("\tPROBLEM: result for wcschr(\"%ls\", '%lc') = %p "
471 result, expected, errno);
479 const wchar_t* result = wcschr(string, ch);
481 if (result != expected || errno != 0) {
482 printf("\tPROBLEM: result for wcschr(\"%ls\", '%lc') = %p "
484 result, expected, errno);
492 const wchar_t* result = wcschr(string, ch);
494 if (result != expected || errno != 0) {
495 printf("\tPROBLEM: result for wcschr(\"%ls\", '%lc') = %p "
497 result, expected, errno);
505 const wchar_t* result = wcschr(string, ch);
507 if (result != expected || errno != 0) {
508 printf("\tPROBLEM: result for wcschr(\"%ls\", '%lc') = %p "
510 result, expected, errno);
518 const wchar_t* result = wcschr(string, ch);
520 if (result != expected || errno != 0) {
521 printf("\tPROBLEM: result for wcschr(\"%ls\", '%lc') = %p "
523 result, expected, errno);
531 const wchar_t* result = wcschr(string, ch);
533 if (result != expected || errno != 0) {
534 printf("\tPROBLEM: result for wcschr(\"%ls\", '%lc') = %p "
536 result, expected, errno);
544 const wchar_t* result = wcschr(string, ch);
546 if (result != expected || errno != 0) {
547 printf("\tPROBLEM: result for wcschr(\"%ls\", '%lc') = %p "
549 result, expected, errno);
557 const wchar_t* result = wcschrnul(string, ch);
559 if (result != expected || errno != 0) {
560 printf("\tPROBLEM: result for wcschrnul(\"%ls\", '%lc') = %p "
562 result, expected, errno);
570 const wchar_t* result = wcschrnul(string, ch);
572 if (result != expected || errno != 0) {
573 printf("\tPROBLEM: result for wcschrnul(\"%ls\", '%lc') = %p "
575 result, expected, errno);
583 const wchar_t* result = wcschrnul(string, ch);
585 if (result != expected || errno != 0) {
586 printf("\tPROBLEM: result for wcschrnul(\"%ls\", '%lc') = %p "
588 result, expected, errno);
596 const wchar_t* result = wcschrnul(string, ch);
598 if (result != expected || errno != 0) {
599 printf("\tPROBLEM: result for wcschrnul(\"%ls\", '%lc') = %p "
601 result, expected, errno);
609 const wchar_t* result = wcschrnul(string, ch);
611 if (result != expected || errno != 0) {
612 printf("\tPROBLEM: result for wcschrnul(\"%ls\", '%lc') = %p "
614 result, expected, errno);
622 const wchar_t* result = wcschrnul(string, ch);
624 if (result != expected || errno != 0) {
625 printf("\tPROBLEM: result for wcschrnul(\"%ls\", '%lc') = %p "
627 result, expected, errno);
635 const wchar_t* result = wcschrnul(string, ch);
637 if (result != expected || errno != 0) {
638 printf("\tPROBLEM: result for wcschrnul(\"%ls\", '%lc') = %p "
640 result, expected, errno);
648 const wchar_t* result = wcsrchr(string, ch);
650 if (result != expected || errno != 0) {
651 printf("\tPROBLEM: result for wcsrchr(\"%ls\", '%lc') = %p "
653 result, expected, errno);
661 const wchar_t* result = wcsrchr(string, ch);
663 if (result != expected || errno != 0) {
664 printf("\tPROBLEM: result for wcsrchr(\"%ls\", '%lc') = %p "
666 result, expected, errno);
674 const wchar_t* result = wcsrchr(string, ch);
676 if (result != expected || errno != 0) {
677 printf("\tPROBLEM: result for wcsrchr(\"%ls\", '%lc') = %p "
679 result, expected, errno);
687 const wchar_t* result = wcsrchr(string, ch);
689 if (result != expected || errno != 0) {
690 printf("\tPROBLEM: result for wcsrchr(\"%ls\", '%lc') = %p "
692 result, expected, errno);
700 const wchar_t* result = wcsrchr(string, ch);
702 if (result != expected || errno != 0) {
703 printf("\tPROBLEM: result for wcsrchr(\"%ls\", '%lc') = %p "
705 result, expected, errno);
713 const wchar_t* result = wcsrchr(string, ch);
715 if (result != expected || errno != 0) {
716 printf("\tPROBLEM: result for wcsrchr(\"%ls\", '%lc') = %p "
718 result, expected, errno);
726 const wchar_t* result = wcsrchr(string, ch);
728 if (result != expected || errno != 0) {
729 printf("\tPROBLEM: result for wcsrchr(\"%ls\", '%lc') = %p "
731 result, expected, errno);
757 wchar_t* result = wcsdup(string);
758 if (result != NULL || errno != 0) {
759 printf("\tPROBLEM: result for wcsdup(%p) = \"%ls\", errno = %x"
760 " (expected 0)\n", string, result, errno);
768 wchar_t* result = wcsdup(string);
769 if (result == NULL || wcscmp(result, string) != 0 || errno != 0) {
770 printf("\tPROBLEM: result for wcsdup(\"%ls\") = \"%ls\", errno = %x"
771 " (expected 0)\n", string, result, errno);
778 wchar_t* result = wcsdup(string);
779 if (result == NULL || wcscmp(result, string) != 0 || errno != 0) {
780 printf("\tPROBLEM: result for wcsdup(\"%ls\") = \"%ls\", errno = %x"
781 " (expected 0)\n", string, result, errno);
807 wchar_t* result = wcscpy(destination, source);
808 if (result != destination) {
809 printf("\tPROBLEM: wcscpy(destination, \"%ls\") -> result=%p, "
810 "expected %p\n", source, result, destination);
841 wchar_t* result = wcscpy(destination, source);
842 if (result != destination) {
843 printf("\tPROBLEM: wcscpy(destination, \"%ls\") -> result=%p, "
844 "expected %p\n", source, result, destination);
899 wchar_t* result = wcscpy(destination, source);
900 if (result != destination) {
901 printf("\tPROBLEM: wcscpy(destination, \"%ls\") -> result=%p, "
902 "expected %p\n", source, result, destination);
957 wchar_t* result = wcscpy(destination, source);
958 if (result != destination) {
959 printf("\tPROBLEM: wcscpy(destination, \"%ls\") -> result=%p, "
960 "expected %p\n", source, result, destination);
1003 wchar_t* result = wcsncpy(destination, source, 0);
1004 if (result != destination) {
1005 printf("\tPROBLEM: wcsncpy(destination, \"%ls\", 0) -> result=%p, "
1006 "expected %p\n", source, result, destination);
1025 wchar_t* result = wcsncpy(destination, source, 2);
1026 if (result != destination) {
1027 printf("\tPROBLEM: wcsncpy(destination, \"%ls\", 2) -> result=%p, "
1028 "expected %p\n", source, result, destination);
1059 wchar_t* result = wcsncpy(destination, source, 4);
1060 if (result != destination) {
1061 printf("\tPROBLEM: wcsncpy(destination, \"%ls\", 4) -> result=%p, "
1062 "expected %p\n", source, result, destination);
1105 wchar_t* result = wcsncpy(destination, source, 8);
1106 if (result != destination) {
1107 printf("\tPROBLEM: wcsncpy(destination, \"%ls\", 8) -> result=%p, "
1108 "expected %p\n", source, result, destination);
1199 wchar_t* result = wcpcpy(destination, source);
1200 if (result != destination) {
1201 printf("\tPROBLEM: wcpcpy(destination, \"%ls\") -> result=%p, "
1202 "expected %p\n", source, result, destination);
1233 wchar_t* result = wcpcpy(destination, source);
1234 if (result != destination + 4) {
1235 printf("\tPROBLEM: wcpcpy(destination, \"%ls\") -> result=%p, "
1236 "expected %p\n", source, result, destination + 4);
1291 wchar_t* result = wcpcpy(destination, source);
1292 if (result != destination + 4) {
1293 printf("\tPROBLEM: wcpcpy(destination, \"%ls\") -> result=%p, "
1294 "expected %p\n", source, result, destination + 4);
1349 wchar_t* result = wcpcpy(destination, source);
1350 if (result != destination + 2) {
1351 printf("\tPROBLEM: wcpcpy(destination, \"%ls\") -> result=%p, "
1352 "expected %p\n", source, result, destination + 2);
1395 wchar_t* result = wcpncpy(destination, source, 0);
1396 if (result != destination) {
1397 printf("\tPROBLEM: wcpncpy(destination, \"%ls\", 0) -> result=%p, "
1398 "expected %p\n", source, result, destination);
1417 wchar_t* result = wcpncpy(destination, source, 2);
1418 if (result != destination + 2) {
1419 printf("\tPROBLEM: wcpncpy(destination, \"%ls\", 2) -> result=%p, "
1420 "expected %p\n", source, result, destination + 2);
1451 wchar_t* result = wcpncpy(destination, source, 4);
1452 if (result != destination + 4) {
1453 printf("\tPROBLEM: wcpncpy(destination, \"%ls\", 4) -> result=%p, "
1454 "expected %p\n", source, result, destination + 4);
1497 wchar_t* result = wcpncpy(destination, source, 8);
1498 if (result != destination + 4) {
1499 printf("\tPROBLEM: wcpncpy(destination, \"%ls\", 8) -> result=%p, "
1500 "expected %p\n", source, result, destination + 4);
1594 wchar_t* result = wcscat(destination, source);
1595 if (result != destination) {
1596 printf("\tPROBLEM: wcscat(\"%ls\", \"%ls\") -> result=%p, "
1597 "expected %p\n", backup, source, result, destination);
1626 wchar_t* result = wcscat(destination, source);
1627 if (result != destination) {
1628 printf("\tPROBLEM: wcscat(\"%ls\", \"%ls\") -> result=%p, "
1629 "expected %p\n", backup, source, result, destination);
1678 wchar_t* result = wcscat(destination, source);
1679 if (result != destination) {
1680 printf("\tPROBLEM: wcscat(\"%ls\", \"%ls\") -> result=%p, "
1681 "expected %p\n", backup, source, result, destination);
1750 wchar_t* result = wcscat(destination, source);
1751 if (result != destination) {
1752 printf("\tPROBLEM: wcscat(\"%ls\", \"%ls\") -> result=%p, "
1753 "expected %p\n", backup, source, result, destination);
1833 wchar_t* result = wcsncat(destination, source, 0);
1834 if (result != destination) {
1835 printf("\tPROBLEM: wcsncat(\"%ls\", \"%ls\", 0) -> result=%p, "
1836 "expected %p\n", backup, source, result, destination);
1861 wchar_t* result = wcsncat(destination, source, 6);
1862 if (result != destination) {
1863 printf("\tPROBLEM: wcsncat(\"%ls\", \"%ls\", 6) -> result=%p, "
1864 "expected %p\n", backup, source, result, destination);
1889 wchar_t* result = wcsncat(destination, source, 20);
1890 if (result != destination) {
1891 printf("\tPROBLEM: wcsncat(\"%ls\", \"%ls\", 20) -> result=%p, "
1892 "expected %p\n", backup, source, result, destination);
1938 size_t result = wcslcat(destination, source, 0);
1940 if (result != expectedResult) {
1941 printf("\tPROBLEM: wcslcat(\"%ls\", \"%ls\", 0) -> result=%ld, "
1942 "expected %ld\n", backup, source, result, expectedResult);
1967 size_t result = wcslcat(destination, source, 32);
1969 if (result != expectedResult) {
1970 printf("\tPROBLEM: wcslcat(\"%ls\", \"%ls\", 32) -> result=%ld, "
1971 "expected %ld\n", backup, source, result, expectedResult);
2000 size_t result = wcslcat(destination, source, 3);
2002 if (result != expectedResult) {
2003 printf("\tPROBLEM: wcslcat(\"%ls\", \"%ls\", 3) -> result=%ld, "
2004 "expected %ld\n", backup, source, result, expectedResult);
2043 size_t result = wcslcat(destination, source, 4);
2045 if (result != expectedResult) {
2046 printf("\tPROBLEM: wcslcat(\"%ls\", \"%ls\", 4) -> result=%ld, "
2047 "expected %ld\n", backup, source, result, expectedResult);
2091 size_t result = wcslcat(destination, source, 5);
2093 if (result != expectedResult) {
2094 printf("\tPROBLEM: wcslcat(\"%ls\", \"%ls\", 5) -> result=%ld, "
2095 "expected %ld\n", backup, source, result, expectedResult);
2144 size_t result = wcslcat(destination, source, 32);
2146 if (result != expectedResult) {
2147 printf("\tPROBLEM: wcslcat(\"%ls\", \"%ls\", 32) -> result=%ld, "
2148 "expected %ld\n", backup, source, result, expectedResult);
2241 size_t result = wcslcpy(destination, source, 0);
2243 if (result != expectedResult) {
2244 printf("\tPROBLEM: wcslcpy(destination, \"%ls\", 0) -> result=%ld, "
2245 "expected %ld\n", source, result, expectedResult);
2270 size_t result = wcslcpy(destination, source, 16);
2272 if (result != expectedResult) {
2273 printf("\tPROBLEM: wcslcpy(destination, \"%ls\", 16) -> result=%ld,"
2274 " expected %ld\n", source, result, expectedResult);
2305 size_t result = wcslcpy(destination, source, 3);
2307 if (result != expectedResult) {
2308 printf("\tPROBLEM: wcslcpy(destination, \"%ls\", 3) -> result=%ld, "
2309 "expected %ld\n", source, result, expectedResult);
2352 size_t result = wcslcpy(destination, source, 16);
2354 if (result != expectedResult) {
2355 printf("\tPROBLEM: wcslcpy(destination, \"%ls\", 16) -> result=%ld, "
2356 "expected %ld\n", source, result, expectedResult);
2422 int result;
2436 int result;
2442 result = sign(wcscmp(sortKeyA, sortKeyB));
2446 result = sign(wcscoll(coll[i].a, coll[i].b));
2451 if (result != coll[i].result || errno != coll[i].err) {
2454 funcCall, result, coll[i].result, errno, coll[i].err);
2604 const wchar_t* result;
2621 if (wcscmp(buf, data[i].result) != 0) {
2624 data[i].format, buf, data[i].result);
2740 const wchar_t* result = wcspbrk(string, accept);
2742 if (result != expected || errno != 0) {
2743 printf("\tPROBLEM: result for wcspbrk(\"%ls\", \"%ls\") = %p "
2745 result, expected, errno);
2753 const wchar_t* result = wcspbrk(string, accept);
2755 if (result != expected || errno != 0) {
2756 printf("\tPROBLEM: result for wcspbrk(\"%ls\", \"%ls\") = %p "
2758 result, expected, errno);
2766 const wchar_t* result = wcspbrk(string, accept);
2768 if (result != expected || errno != 0) {
2769 printf("\tPROBLEM: result for wcspbrk(\"%ls\", \"%ls\") = %p "
2771 result, expected, errno);
2779 const wchar_t* result = wcspbrk(string, accept);
2781 if (result != expected || errno != 0) {
2782 printf("\tPROBLEM: result for wcspbrk(\"%ls\", \"%ls\") = %p "
2784 result, expected, errno);
2792 const wchar_t* result = wcspbrk(string, accept);
2794 if (result != expected || errno != 0) {
2795 printf("\tPROBLEM: result for wcspbrk(\"%ls\", \"%ls\") = %p "
2797 result, expected, errno);
2805 const wchar_t* result = wcspbrk(string, accept);
2807 if (result != expected || errno != 0) {
2808 printf("\tPROBLEM: result for wcspbrk(\"%ls\", \"%ls\") = %p "
2810 result, expected, errno);
2836 size_t result = wcscspn(string, reject);
2838 if (result != expected || errno != 0) {
2839 printf("\tPROBLEM: result for wcscspn(\"%ls\", \"%ls\") = %ld "
2841 result, expected, errno);
2849 size_t result = wcscspn(string, reject);
2851 if (result != expected || errno != 0) {
2852 printf("\tPROBLEM: result for wcscspn(\"%ls\", \"%ls\") = %ld "
2854 result, expected, errno);
2862 size_t result = wcscspn(string, reject);
2864 if (result != expected || errno != 0) {
2865 printf("\tPROBLEM: result for wcscspn(\"%ls\", \"%ls\") = %ld "
2867 result, expected, errno);
2875 size_t result = wcscspn(string, reject);
2877 if (result != expected || errno != 0) {
2878 printf("\tPROBLEM: result for wcscspn(\"%ls\", \"%ls\") = %ld "
2880 result, expected, errno);
2888 size_t result = wcscspn(string, reject);
2890 if (result != expected || errno != 0) {
2891 printf("\tPROBLEM: result for wcscspn(\"%ls\", \"%ls\") = %ld "
2893 result, expected, errno);
2901 size_t result = wcscspn(string, reject);
2903 if (result != expected || errno != 0) {
2904 printf("\tPROBLEM: result for wcscspn(\"%ls\", \"%ls\") = %ld "
2906 result, expected, errno);
2932 size_t result = wcsspn(string, accept);
2934 if (result != expected || errno != 0) {
2935 printf("\tPROBLEM: result for wcsspn(\"%ls\", \"%ls\") = %ld "
2937 result, expected, errno);
2945 size_t result = wcsspn(string, accept);
2947 if (result != expected || errno != 0) {
2948 printf("\tPROBLEM: result for wcsspn(\"%ls\", \"%ls\") = %ld "
2950 result, expected, errno);
2958 size_t result = wcsspn(string, accept);
2960 if (result != expected || errno != 0) {
2961 printf("\tPROBLEM: result for wcsspn(\"%ls\", \"%ls\") = %ld "
2963 result, expected, errno);
2971 size_t result = wcsspn(string, accept);
2973 if (result != expected || errno != 0) {
2974 printf("\tPROBLEM: result for wcsspn(\"%ls\", \"%ls\") = %ld "
2976 result, expected, errno);
2984 size_t result = wcsspn(string, accept);
2986 if (result != expected || errno != 0) {
2987 printf("\tPROBLEM: result for wcsspn(\"%ls\", \"%ls\") = %ld "
2989 result, expected, errno);
3015 const wchar_t* result = wcsstr(string, sought);
3017 if (result != expected || errno != 0) {
3018 printf("\tPROBLEM: result for wcsstr(\"%ls\", \"%ls\") = %p "
3020 result, expected, errno);
3028 const wchar_t* result = wcsstr(string, sought);
3030 if (result != expected || errno != 0) {
3031 printf("\tPROBLEM: result for wcsstr(\"%ls\", \"%ls\") = %p "
3033 result, expected, errno);
3041 const wchar_t* result = wcsstr(string, sought);
3043 if (result != expected || errno != 0) {
3044 printf("\tPROBLEM: result for wcsstr(\"%ls\", \"%ls\") = %p "
3046 result, expected, errno);
3054 const wchar_t* result = wcsstr(string, sought);
3056 if (result != expected || errno != 0) {
3057 printf("\tPROBLEM: result for wcsstr(\"%ls\", \"%ls\") = %p "
3059 result, expected, errno);
3067 const wchar_t* result = wcsstr(string, sought);
3069 if (result != expected || errno != 0) {
3070 printf("\tPROBLEM: result for wcsstr(\"%ls\", \"%ls\") = %p "
3072 result, expected, errno);
3080 const wchar_t* result = wcsstr(string, sought);
3082 if (result != expected || errno != 0) {
3083 printf("\tPROBLEM: result for wcsstr(\"%ls\", \"%ls\") = %p "
3085 result, expected, errno);
3093 const wchar_t* result = wcsstr(string, sought);
3095 if (result != expected || errno != 0) {
3096 printf("\tPROBLEM: result for wcsstr(\"%ls\", \"%ls\") = %p "
3098 result, expected, errno);
3124 wchar_t* result = wcstok(string, delim, &state);
3127 if (result != expected || state != expectedState) {
3128 printf("\tPROBLEM: result for wcstok(\"%ls\", \"%ls\", %p) = %p "
3130 &state, result, expected, state, expectedState);
3134 result = wcstok(NULL, delim, &state);
3137 if (result != expected || state != expectedState) {
3138 printf("\tPROBLEM: result for wcstok(\"%ls\", \"%ls\", %p) = %p "
3140 &state, result, expected, state, expectedState);
3149 wchar_t* result = wcstok(string, delim, &state);
3152 if (result != expected || state != expectedState) {
3153 printf("\tPROBLEM: result for wcstok(\"%ls\", \"%ls\", %p) = %p "
3155 &state, result, expected, state, expectedState);
3159 result = wcstok(NULL, delim, &state);
3162 if (result != expected || state != expectedState) {
3163 printf("\tPROBLEM: result for wcstok(\"%ls\", \"%ls\", %p) = %p "
3165 &state, result, expected, state, expectedState);
3174 wchar_t* result = wcstok(string, delim, &state);
3177 if (result != expected || state != expectedState) {
3178 printf("\tPROBLEM: result for wcstok(\"%ls\", \"%ls\", %p) = %p "
3180 &state, result, expected, state, expectedState);
3184 result = wcstok(NULL, delim, &state);
3187 if (result != expected || state != expectedState) {
3188 printf("\tPROBLEM: result for wcstok(\"%ls\", \"%ls\", %p) = %p "
3190 &state, result, expected, state, expectedState);
3194 result = wcstok(NULL, delim, &state);
3197 if (result != expected || state != expectedState) {
3198 printf("\tPROBLEM: result for wcstok(\"%ls\", \"%ls\", %p) = %p "
3200 &state, result, expected, state, expectedState);
3204 result = wcstok(NULL, delim, &state);
3207 if (result != expected || state != expectedState) {
3208 printf("\tPROBLEM: result for wcstok(\"%ls\", \"%ls\", %p) = %p "
3210 &state, result, expected, state, expectedState);
3214 result = wcstok(NULL, delim, &state);
3217 if (result != expected || state != expectedState) {
3218 printf("\tPROBLEM: result for wcstok(\"%ls\", \"%ls\", %p) = %p "
3220 &state, result, expected, state, expectedState);
3229 wchar_t* result = wcstok(string, delim, &state);
3232 if (result != expected || state != expectedState) {
3233 printf("\tPROBLEM: result for wcstok(\"%ls\", \"%ls\", %p) = %p "
3235 &state, result, expected, state, expectedState);
3238 if (wcscmp(result, L"just") != 0) {
3239 printf("\tPROBLEM: result for wcstok(\"%ls\", \"%ls\", %p) = %ls "
3240 "(expected %ls)\n", string, delim, &state, result, L"just");
3244 result = wcstok(NULL, delim, &state);
3247 if (result != expected || state != expectedState) {
3248 printf("\tPROBLEM: result for wcstok(\"%ls\", \"%ls\", %p) = %p "
3250 &state, result, expected, state, expectedState);
3253 if (wcscmp(result, L"some") != 0) {
3254 printf("\tPROBLEM: result for wcstok(\"%ls\", \"%ls\", %p) = %ls "
3255 "(expected %ls)\n", string, delim, &state, result, L"some");
3259 result = wcstok(NULL, delim, &state);
3262 if (result != expected || state != expectedState) {
3263 printf("\tPROBLEM: result for wcstok(\"%ls\", \"%ls\", %p) = %p "
3265 &state, result, expected, state, expectedState);
3268 if (wcscmp(result, L"text") != 0) {
3269 printf("\tPROBLEM: result for wcstok(\"%ls\", \"%ls\", %p) = %ls "
3270 "(expected %ls)\n", string, delim, &state, result, L"text");
3274 result = wcstok(NULL, delim, &state);
3277 if (result != expected || state != expectedState) {
3278 printf("\tPROBLEM: result for wcstok(\"%ls\", \"%ls\", %p) = %p "
3280 &state, result, expected, state, expectedState);
3283 if (wcscmp(result, L"here!") != 0) {
3284 printf("\tPROBLEM: result for wcstok(\"%ls\", \"%ls\", %p) = %ls "
3285 "(expected %ls)\n", string, delim, &state, result, L"here!");
3289 result = wcstok(NULL, delim, &state);
3292 if (result != expected || state != expectedState) {
3293 printf("\tPROBLEM: result for wcstok(\"%ls\", \"%ls\", %p) = %p "
3295 &state, result, expected, state, expectedState);
3321 const wchar_t* result = wmemchr(string, ch, 0);
3323 if (result != expected || errno != 0) {
3324 printf("\tPROBLEM: result for wmemchr(\"%ls\", '%lc', 0) = %p "
3326 result, expected, errno);
3334 const wchar_t* result = wmemchr(string, ch, 0);
3336 if (result != expected || errno != 0) {
3337 printf("\tPROBLEM: result for wmemchr(\"%ls\", '%lc', 0) = %p "
3339 result, expected, errno);
3347 const wchar_t* result = wmemchr(string, ch, 1);
3349 if (result != expected || errno != 0) {
3350 printf("\tPROBLEM: result for wmemchr(\"%ls\", '%lc', 1) = %p "
3352 result, expected, errno);
3360 const wchar_t* result = wmemchr(string, ch, 8);
3362 if (result != expected || errno != 0) {
3363 printf("\tPROBLEM: result for wmemchr(\"%ls\", '%lc', 1) = %p "
3365 result, expected, errno);
3373 const wchar_t* result = wmemchr(string, ch, 9);
3375 if (result != expected || errno != 0) {
3376 printf("\tPROBLEM: result for wmemchr(\"%ls\", '%lc', 1) = %p "
3378 result, expected, errno);
3386 const wchar_t* result = wmemchr(string, ch, 9);
3388 if (result != expected || errno != 0) {
3389 printf("\tPROBLEM: result for wmemchr(\"%ls\", '%lc', 1) = %p "
3391 result, expected, errno);
3399 const wchar_t* result = wmemchr(string, ch, 4);
3401 if (result != expected || errno != 0) {
3402 printf("\tPROBLEM: result for wmemchr(\"%ls\", '%lc', 1) = %p "
3404 result, expected, errno);
3412 const wchar_t* result = wmemchr(string, ch, 9);
3414 if (result != expected || errno != 0) {
3415 printf("\tPROBLEM: result for wmemchr(\"%ls\", '%lc', 1) = %p "
3417 result, expected, errno);
3443 int result = sign(wmemcmp(a, b, 0));
3445 if (result != expected || errno != 0) {
3446 printf("\tPROBLEM: result for wmemcmp(\"%ls\", \"%ls\", 0) = %d "
3447 "(expected %d), errno = %x (expected 0)\n", a, b, result,
3456 int result = sign(wmemcmp(a, b, 1));
3458 if (result != expected || errno != 0) {
3459 printf("\tPROBLEM: result for wmemcmp(\"%ls\", \"%ls\", 0) = %d "
3460 "(expected %d), errno = %x (expected 0)\n", a, b, result,
3469 int result = sign(wmemcmp(a, b, 0));
3471 if (result != expected || errno != 0) {
3472 printf("\tPROBLEM: result for wmemcmp(\"%ls\", \"%ls\", 0) = %d "
3473 "(expected %d), errno = %x (expected 0)\n", a, b, result,
3482 int result = sign(wmemcmp(a, b, 1));
3484 if (result != expected || errno != 0) {
3485 printf("\tPROBLEM: result for wmemcmp(\"%ls\", \"%ls\", 1) = %d "
3486 "(expected %d), errno = %x (expected 0)\n", a, b, result,
3495 int result = sign(wmemcmp(a, b, 2));
3497 if (result != expected || errno != 0) {
3498 printf("\tPROBLEM: result for wmemcmp(\"%ls\", \"%ls\", 2) = %d "
3499 "(expected %d), errno = %x (expected 0)\n", a, b, result,
3508 int result = sign(wmemcmp(a, b, 2));
3510 if (result != expected || errno != 0) {
3511 printf("\tPROBLEM: result for wmemcmp(\"%ls\", \"%ls\", 2) = %d "
3512 "(expected %d), errno = %x (expected 0)\n", a, b, result,
3521 int result = sign(wmemcmp(a, b, 5));
3523 if (result != expected || errno != 0) {
3524 printf("\tPROBLEM: result for wmemcmp(\"%ls\", \"%ls\", 5) = %d "
3525 "(expected %d), errno = %x (expected 0)\n", a, b, result,
3534 int result = sign(wmemcmp(a, b, 5));
3536 if (result != expected || errno != 0) {
3537 printf("\tPROBLEM: result for wmemcmp(\"%ls\", \"%ls\", 5) = %d "
3538 "(expected %d), errno = %x (expected 0)\n", a, b, result,
3547 int result = sign(wmemcmp(a, b, 2));
3549 if (result != expected || errno != 0) {
3550 printf("\tPROBLEM: result for wmemcmp(\"%ls\", \"%ls\", 2) = %d "
3551 "(expected %d), errno = %x (expected 0)\n", a, b, result,
3578 wchar_t* result = wmemcpy(destination, source, 0);
3579 if (result != destination || errno != 0) {
3580 printf("\tPROBLEM: result for wmemcpy(destination, \"%ls\", 0) = "
3582 result, destination, errno);
3596 wchar_t* result = wmemcpy(destination, source, 1);
3597 if (result != destination || wmemcmp(destination, source, 1) != 0
3599 printf("\tPROBLEM: result for wmemcpy(destination, \"%ls\", 1) = "
3601 result, destination, errno);
3615 wchar_t* result = wmemcpy(destination, source, 31);
3616 if (result != destination || wmemcmp(destination, source, 31) != 0
3618 printf("\tPROBLEM: result for wmemcpy(destination, \"%ls\", 31) = "
3620 result, destination, errno);
3646 wchar_t* result = wmempcpy(destination, source, 0);
3647 if (result != destination || errno != 0) {
3648 printf("\tPROBLEM: result for wmempcpy(destination, \"%ls\", 0) = "
3650 result, destination, errno);
3664 wchar_t* result = wmempcpy(destination, source, 1);
3665 if (result != destination + 1 || wmemcmp(destination, source, 1) != 0
3667 printf("\tPROBLEM: result for wmempcpy(destination, \"%ls\", 1) = "
3669 result, destination, errno);
3683 wchar_t* result = wmempcpy(destination, source, 31);
3684 if (result != destination + 31 || wmemcmp(destination, source, 31) != 0
3686 printf("\tPROBLEM: result for wmempcpy(destination, \"%ls\", 31) = "
3688 result, destination, errno);
3714 wchar_t* result = wmemmove(destination, source, 0);
3715 if (result != destination || errno != 0) {
3716 printf("\tPROBLEM: result for wmemmove(destination, \"%ls\", 0) = "
3718 result, destination, errno);
3732 wchar_t* result = wmemmove(destination, source, 1);
3733 if (result != destination || wmemcmp(destination, source, 1) != 0
3735 printf("\tPROBLEM: result for wmemmove(destination, \"%ls\", 1) = "
3737 result, destination, errno);
3752 wchar_t* result = wmemmove(destination, destination + 4, 27);
3753 if (result != destination || wmemcmp(destination, source + 4, 27) != 0
3755 printf("\tPROBLEM: result for wmemmove(destination, \"%ls\", 27) = "
3757 source + 4, result, destination, errno);
3766 wchar_t* result = wmemmove(destination + 2, destination, 8);
3767 if (result != destination + 2
3770 printf("\tPROBLEM: result for wmemmove(destination + 9, \"%ls\", 8)"
3772 source, result, destination, errno);
3798 wchar_t* result = wmemset(destination, source, 0);
3799 if (result != destination || errno != 0) {
3800 printf("\tPROBLEM: result for wmemset(destination, '%lc', 0) = "
3802 result, destination, errno);
3816 wchar_t* result = wmemset(destination, source, 1);
3817 if (result != destination || errno != 0) {
3818 printf("\tPROBLEM: result for wmemset(destination, '%lc', 1) = "
3820 result, destination, errno);
3840 wchar_t* result = wmemset(destination, source, 9);
3841 if (result != destination || errno != 0) {
3842 printf("\tPROBLEM: result for wmemset(destination, '%lc', 9) = "
3844 result, destination, errno);
3870 const char* result;
3887 if (strcmp(buf, data[i].result) != 0) {
3889 data[i].format, buf, data[i].result);
3937 const wchar_t* result;
3954 if (wcscmp(buf, data[i].result) != 0) {
3956 data[i].format, buf, data[i].result);