diff options
author | EuAndreh <eu@euandre.org> | 2024-01-04 20:36:02 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2024-01-05 05:47:09 -0300 |
commit | 8492f115890d56c98c1da24b9fdf26bb1b714c05 (patch) | |
tree | 7d90469d2aff11c2e4c8e99e7b46aa8e8eb43008 /src/ctype | |
parent | Fix the build system. (diff) | |
download | grovel-8492f115890d56c98c1da24b9fdf26bb1b714c05.tar.gz grovel-8492f115890d56c98c1da24b9fdf26bb1b714c05.tar.xz |
Setup stub unit test infrastructure
Diffstat (limited to 'src/ctype')
37 files changed, 296 insertions, 0 deletions
diff --git a/src/ctype/__ctype_b_loc.c b/src/ctype/__ctype_b_loc.c index f43795e9..56fe0439 100644 --- a/src/ctype/__ctype_b_loc.c +++ b/src/ctype/__ctype_b_loc.c @@ -39,3 +39,11 @@ const unsigned short **__ctype_b_loc(void) { return (void *)&ptable; } + + +#ifdef TEST +int +main(void) { + return 0; +} +#endif diff --git a/src/ctype/__ctype_get_mb_cur_max.c b/src/ctype/__ctype_get_mb_cur_max.c index 8e946fc1..8f4696e1 100644 --- a/src/ctype/__ctype_get_mb_cur_max.c +++ b/src/ctype/__ctype_get_mb_cur_max.c @@ -5,3 +5,11 @@ size_t __ctype_get_mb_cur_max() { return MB_CUR_MAX; } + + +#ifdef TEST +int +main(void) { + return 0; +} +#endif diff --git a/src/ctype/__ctype_tolower_loc.c b/src/ctype/__ctype_tolower_loc.c index efb99105..1b0ed280 100644 --- a/src/ctype/__ctype_tolower_loc.c +++ b/src/ctype/__ctype_tolower_loc.c @@ -28,3 +28,11 @@ const int32_t **__ctype_tolower_loc(void) { return (void *)&ptable; } + + +#ifdef TEST +int +main(void) { + return 0; +} +#endif diff --git a/src/ctype/__ctype_toupper_loc.c b/src/ctype/__ctype_toupper_loc.c index ffaef0e9..89dff1fc 100644 --- a/src/ctype/__ctype_toupper_loc.c +++ b/src/ctype/__ctype_toupper_loc.c @@ -28,3 +28,11 @@ const int32_t **__ctype_toupper_loc(void) { return (void *)&ptable; } + + +#ifdef TEST +int +main(void) { + return 0; +} +#endif diff --git a/src/ctype/isalnum.c b/src/ctype/isalnum.c index 8018a2bc..b1fc8f8c 100644 --- a/src/ctype/isalnum.c +++ b/src/ctype/isalnum.c @@ -11,3 +11,11 @@ int __isalnum_l(int c, locale_t l) } weak_alias(__isalnum_l, isalnum_l); + + +#ifdef TEST +int +main(void) { + return 0; +} +#endif diff --git a/src/ctype/isalpha.c b/src/ctype/isalpha.c index a87a9375..842ee20a 100644 --- a/src/ctype/isalpha.c +++ b/src/ctype/isalpha.c @@ -12,3 +12,11 @@ int __isalpha_l(int c, locale_t l) } weak_alias(__isalpha_l, isalpha_l); + + +#ifdef TEST +int +main(void) { + return 0; +} +#endif diff --git a/src/ctype/isascii.c b/src/ctype/isascii.c index 54ad3bf0..266aa0e3 100644 --- a/src/ctype/isascii.c +++ b/src/ctype/isascii.c @@ -5,3 +5,11 @@ int isascii(int c) { return !(c&~0x7f); } + + +#ifdef TEST +int +main(void) { + return 0; +} +#endif diff --git a/src/ctype/isblank.c b/src/ctype/isblank.c index 716da23a..560be82c 100644 --- a/src/ctype/isblank.c +++ b/src/ctype/isblank.c @@ -11,3 +11,11 @@ int __isblank_l(int c, locale_t l) } weak_alias(__isblank_l, isblank_l); + + +#ifdef TEST +int +main(void) { + return 0; +} +#endif diff --git a/src/ctype/iscntrl.c b/src/ctype/iscntrl.c index f27837ea..1fd7dce7 100644 --- a/src/ctype/iscntrl.c +++ b/src/ctype/iscntrl.c @@ -11,3 +11,11 @@ int __iscntrl_l(int c, locale_t l) } weak_alias(__iscntrl_l, iscntrl_l); + + +#ifdef TEST +int +main(void) { + return 0; +} +#endif diff --git a/src/ctype/isdigit.c b/src/ctype/isdigit.c index 16beddb4..2983d726 100644 --- a/src/ctype/isdigit.c +++ b/src/ctype/isdigit.c @@ -12,3 +12,11 @@ int __isdigit_l(int c, locale_t l) } weak_alias(__isdigit_l, isdigit_l); + + +#ifdef TEST +int +main(void) { + return 0; +} +#endif diff --git a/src/ctype/isgraph.c b/src/ctype/isgraph.c index 292d1983..55fb2d1e 100644 --- a/src/ctype/isgraph.c +++ b/src/ctype/isgraph.c @@ -12,3 +12,11 @@ int __isgraph_l(int c, locale_t l) } weak_alias(__isgraph_l, isgraph_l); + + +#ifdef TEST +int +main(void) { + return 0; +} +#endif diff --git a/src/ctype/islower.c b/src/ctype/islower.c index c3fa74c4..14f5fac9 100644 --- a/src/ctype/islower.c +++ b/src/ctype/islower.c @@ -12,3 +12,11 @@ int __islower_l(int c, locale_t l) } weak_alias(__islower_l, islower_l); + + +#ifdef TEST +int +main(void) { + return 0; +} +#endif diff --git a/src/ctype/isprint.c b/src/ctype/isprint.c index b950816b..eedbaea8 100644 --- a/src/ctype/isprint.c +++ b/src/ctype/isprint.c @@ -12,3 +12,11 @@ int __isprint_l(int c, locale_t l) } weak_alias(__isprint_l, isprint_l); + + +#ifdef TEST +int +main(void) { + return 0; +} +#endif diff --git a/src/ctype/ispunct.c b/src/ctype/ispunct.c index a491d5dc..e512657f 100644 --- a/src/ctype/ispunct.c +++ b/src/ctype/ispunct.c @@ -11,3 +11,11 @@ int __ispunct_l(int c, locale_t l) } weak_alias(__ispunct_l, ispunct_l); + + +#ifdef TEST +int +main(void) { + return 0; +} +#endif diff --git a/src/ctype/isspace.c b/src/ctype/isspace.c index 428813e7..60ad415d 100644 --- a/src/ctype/isspace.c +++ b/src/ctype/isspace.c @@ -12,3 +12,11 @@ int __isspace_l(int c, locale_t l) } weak_alias(__isspace_l, isspace_l); + + +#ifdef TEST +int +main(void) { + return 0; +} +#endif diff --git a/src/ctype/isupper.c b/src/ctype/isupper.c index bfd15acd..1c839c8d 100644 --- a/src/ctype/isupper.c +++ b/src/ctype/isupper.c @@ -12,3 +12,11 @@ int __isupper_l(int c, locale_t l) } weak_alias(__isupper_l, isupper_l); + + +#ifdef TEST +int +main(void) { + return 0; +} +#endif diff --git a/src/ctype/iswalnum.c b/src/ctype/iswalnum.c index 046c399c..343adc8a 100644 --- a/src/ctype/iswalnum.c +++ b/src/ctype/iswalnum.c @@ -11,3 +11,11 @@ int __iswalnum_l(wint_t c, locale_t l) } weak_alias(__iswalnum_l, iswalnum_l); + + +#ifdef TEST +int +main(void) { + return 0; +} +#endif diff --git a/src/ctype/iswalpha.c b/src/ctype/iswalpha.c index 1c5485d2..88001fc8 100644 --- a/src/ctype/iswalpha.c +++ b/src/ctype/iswalpha.c @@ -19,3 +19,11 @@ int __iswalpha_l(wint_t c, locale_t l) } weak_alias(__iswalpha_l, iswalpha_l); + + +#ifdef TEST +int +main(void) { + return 0; +} +#endif diff --git a/src/ctype/iswblank.c b/src/ctype/iswblank.c index 68c88002..49319cbd 100644 --- a/src/ctype/iswblank.c +++ b/src/ctype/iswblank.c @@ -12,3 +12,11 @@ int __iswblank_l(wint_t c, locale_t l) } weak_alias(__iswblank_l, iswblank_l); + + +#ifdef TEST +int +main(void) { + return 0; +} +#endif diff --git a/src/ctype/iswcntrl.c b/src/ctype/iswcntrl.c index feccfcd5..dccaefc1 100644 --- a/src/ctype/iswcntrl.c +++ b/src/ctype/iswcntrl.c @@ -14,3 +14,11 @@ int __iswcntrl_l(wint_t c, locale_t l) } weak_alias(__iswcntrl_l, iswcntrl_l); + + +#ifdef TEST +int +main(void) { + return 0; +} +#endif diff --git a/src/ctype/iswctype.c b/src/ctype/iswctype.c index 71b09b8d..7d80c2a4 100644 --- a/src/ctype/iswctype.c +++ b/src/ctype/iswctype.c @@ -73,3 +73,11 @@ wctype_t __wctype_l(const char *s, locale_t l) weak_alias(__iswctype_l, iswctype_l); weak_alias(__wctype_l, wctype_l); + + +#ifdef TEST +int +main(void) { + return 0; +} +#endif diff --git a/src/ctype/iswdigit.c b/src/ctype/iswdigit.c index db817edf..2e54096f 100644 --- a/src/ctype/iswdigit.c +++ b/src/ctype/iswdigit.c @@ -13,3 +13,11 @@ int __iswdigit_l(wint_t c, locale_t l) } weak_alias(__iswdigit_l, iswdigit_l); + + +#ifdef TEST +int +main(void) { + return 0; +} +#endif diff --git a/src/ctype/iswgraph.c b/src/ctype/iswgraph.c index ecdf466c..d49b3436 100644 --- a/src/ctype/iswgraph.c +++ b/src/ctype/iswgraph.c @@ -12,3 +12,11 @@ int __iswgraph_l(wint_t c, locale_t l) } weak_alias(__iswgraph_l, iswgraph_l); + + +#ifdef TEST +int +main(void) { + return 0; +} +#endif diff --git a/src/ctype/iswlower.c b/src/ctype/iswlower.c index f02a4362..dfa40b62 100644 --- a/src/ctype/iswlower.c +++ b/src/ctype/iswlower.c @@ -11,3 +11,11 @@ int __iswlower_l(wint_t c, locale_t l) } weak_alias(__iswlower_l, iswlower_l); + + +#ifdef TEST +int +main(void) { + return 0; +} +#endif diff --git a/src/ctype/iswprint.c b/src/ctype/iswprint.c index 86f9d646..58e2118d 100644 --- a/src/ctype/iswprint.c +++ b/src/ctype/iswprint.c @@ -24,3 +24,11 @@ int __iswprint_l(wint_t c, locale_t l) } weak_alias(__iswprint_l, iswprint_l); + + +#ifdef TEST +int +main(void) { + return 0; +} +#endif diff --git a/src/ctype/iswpunct.c b/src/ctype/iswpunct.c index f0b9ea0a..e99e7490 100644 --- a/src/ctype/iswpunct.c +++ b/src/ctype/iswpunct.c @@ -17,3 +17,11 @@ int __iswpunct_l(wint_t c, locale_t l) } weak_alias(__iswpunct_l, iswpunct_l); + + +#ifdef TEST +int +main(void) { + return 0; +} +#endif diff --git a/src/ctype/iswspace.c b/src/ctype/iswspace.c index 263afa15..3dc1b06c 100644 --- a/src/ctype/iswspace.c +++ b/src/ctype/iswspace.c @@ -22,3 +22,11 @@ int __iswspace_l(wint_t c, locale_t l) } weak_alias(__iswspace_l, iswspace_l); + + +#ifdef TEST +int +main(void) { + return 0; +} +#endif diff --git a/src/ctype/iswupper.c b/src/ctype/iswupper.c index 7e486665..b5773eef 100644 --- a/src/ctype/iswupper.c +++ b/src/ctype/iswupper.c @@ -11,3 +11,11 @@ int __iswupper_l(wint_t c, locale_t l) } weak_alias(__iswupper_l, iswupper_l); + + +#ifdef TEST +int +main(void) { + return 0; +} +#endif diff --git a/src/ctype/iswxdigit.c b/src/ctype/iswxdigit.c index 62bc9e74..088788e2 100644 --- a/src/ctype/iswxdigit.c +++ b/src/ctype/iswxdigit.c @@ -11,3 +11,11 @@ int __iswxdigit_l(wint_t c, locale_t l) } weak_alias(__iswxdigit_l, iswxdigit_l); + + +#ifdef TEST +int +main(void) { + return 0; +} +#endif diff --git a/src/ctype/isxdigit.c b/src/ctype/isxdigit.c index aab1a745..d0b1741b 100644 --- a/src/ctype/isxdigit.c +++ b/src/ctype/isxdigit.c @@ -11,3 +11,11 @@ int __isxdigit_l(int c, locale_t l) } weak_alias(__isxdigit_l, isxdigit_l); + + +#ifdef TEST +int +main(void) { + return 0; +} +#endif diff --git a/src/ctype/toascii.c b/src/ctype/toascii.c index f0e48e8e..b322a909 100644 --- a/src/ctype/toascii.c +++ b/src/ctype/toascii.c @@ -5,3 +5,11 @@ int toascii(int c) { return c & 0x7f; } + + +#ifdef TEST +int +main(void) { + return 0; +} +#endif diff --git a/src/ctype/tolower.c b/src/ctype/tolower.c index f10132ec..c285ebc0 100644 --- a/src/ctype/tolower.c +++ b/src/ctype/tolower.c @@ -12,3 +12,11 @@ int __tolower_l(int c, locale_t l) } weak_alias(__tolower_l, tolower_l); + + +#ifdef TEST +int +main(void) { + return 0; +} +#endif diff --git a/src/ctype/toupper.c b/src/ctype/toupper.c index 4e74a55c..8f84f32c 100644 --- a/src/ctype/toupper.c +++ b/src/ctype/toupper.c @@ -12,3 +12,11 @@ int __toupper_l(int c, locale_t l) } weak_alias(__toupper_l, toupper_l); + + +#ifdef TEST +int +main(void) { + return 0; +} +#endif diff --git a/src/ctype/towctrans.c b/src/ctype/towctrans.c index 76d13769..55ff1ca5 100644 --- a/src/ctype/towctrans.c +++ b/src/ctype/towctrans.c @@ -82,3 +82,11 @@ wint_t __towlower_l(wint_t c, locale_t l) weak_alias(__towupper_l, towupper_l); weak_alias(__towlower_l, towlower_l); + + +#ifdef TEST +int +main(void) { + return 0; +} +#endif diff --git a/src/ctype/wcswidth.c b/src/ctype/wcswidth.c index 5c8a5a4d..2356e33d 100644 --- a/src/ctype/wcswidth.c +++ b/src/ctype/wcswidth.c @@ -6,3 +6,11 @@ int wcswidth(const wchar_t *wcs, size_t n) for (; n-- && *wcs && (k = wcwidth(*wcs)) >= 0; l+=k, wcs++); return (k < 0) ? k : l; } + + +#ifdef TEST +int +main(void) { + return 0; +} +#endif diff --git a/src/ctype/wctrans.c b/src/ctype/wctrans.c index d3eda521..3637125f 100644 --- a/src/ctype/wctrans.c +++ b/src/ctype/wctrans.c @@ -27,3 +27,11 @@ wint_t __towctrans_l(wint_t c, wctrans_t t, locale_t l) weak_alias(__wctrans_l, wctrans_l); weak_alias(__towctrans_l, towctrans_l); + + +#ifdef TEST +int +main(void) { + return 0; +} +#endif diff --git a/src/ctype/wcwidth.c b/src/ctype/wcwidth.c index 36256a53..41cd743f 100644 --- a/src/ctype/wcwidth.c +++ b/src/ctype/wcwidth.c @@ -27,3 +27,11 @@ int wcwidth(wchar_t wc) return 0; return 1; } + + +#ifdef TEST +int +main(void) { + return 0; +} +#endif |