Handle POSIX-compliant errno value of unlink in remove.
[glibc.git] / localedata / tests-mbwc / tst_wcsspn.c
blob02157eecaab4d79ebbae7b924fd01d12b67bd785
1 /*
2 WCSSPN: size_t wcsspn (const wchar_t *ws1, const wchar_t *ws2);
3 */
5 #define TST_FUNCTION wcsspn
7 #include "tsp_common.c"
8 #include "dat_wcsspn.c"
10 int
11 tst_wcsspn (FILE *fp, int debug_flg)
13 TST_DECL_VARS (size_t);
14 wchar_t *ws1, *ws2;
16 TST_DO_TEST (wcsspn)
18 TST_HEAD_LOCALE (wcsspn, S_WCSSPN);
19 TST_DO_REC (wcsspn)
21 TST_GET_ERRET (wcsspn);
22 ws1 = TST_INPUT (wcsspn).ws1;
23 ws2 = TST_INPUT (wcsspn).ws2; /* external value: size WCSSIZE */
24 ret = wcsspn (ws1, ws2);
26 if (debug_flg)
28 fprintf (stderr, "wcsspn: ret = %zu\n", ret);
31 TST_IF_RETURN (S_WCSSPN)
37 return err_count;