mirror of git://sourceware.org/git/glibc.git
localedata: Remove unused variables in tests
Checked on x86_64-linux-gnu and i686-linux-gnu.
This commit is contained in:
parent
244b415d38
commit
d1eefcb2a0
|
@ -83,7 +83,6 @@ extern int result (FILE * fp, char res, const char *func, const char *loc,
|
||||||
|
|
||||||
#define TST_DECL_VARS(_type_) \
|
#define TST_DECL_VARS(_type_) \
|
||||||
int loc, rec, err_count = 0; \
|
int loc, rec, err_count = 0; \
|
||||||
int warn_count __attribute__ ((unused)); \
|
|
||||||
int seq_num = 0; \
|
int seq_num = 0; \
|
||||||
const char *locale; \
|
const char *locale; \
|
||||||
int err_exp, ret_flg; \
|
int err_exp, ret_flg; \
|
||||||
|
|
|
@ -75,7 +75,6 @@ tst_strcoll (FILE * fp, int debug_flg)
|
||||||
" to check a return value");
|
" to check a return value");
|
||||||
}
|
}
|
||||||
|
|
||||||
warn_count++;
|
|
||||||
Result (C_INVALID, S_WCSCHR, CASE_3, "(check the test data); "
|
Result (C_INVALID, S_WCSCHR, CASE_3, "(check the test data); "
|
||||||
"should set ret_flg=1 to check a return value");
|
"should set ret_flg=1 to check a return value");
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,7 +30,6 @@ tst_strxfrm (FILE * fp, int debug_flg)
|
||||||
|
|
||||||
if (n1 < 0 || sizeof (frm1) < n1 || sizeof (frm2) < n2)
|
if (n1 < 0 || sizeof (frm1) < n1 || sizeof (frm2) < n2)
|
||||||
{
|
{
|
||||||
warn_count++;
|
|
||||||
Result (C_IGNORED, S_STRXFRM, CASE_9,
|
Result (C_IGNORED, S_STRXFRM, CASE_9,
|
||||||
"input data n1 or n2 is invalid");
|
"input data n1 or n2 is invalid");
|
||||||
continue;
|
continue;
|
||||||
|
@ -60,7 +59,6 @@ tst_strxfrm (FILE * fp, int debug_flg)
|
||||||
|
|
||||||
if (ret >= n1 || errno != 0)
|
if (ret >= n1 || errno != 0)
|
||||||
{
|
{
|
||||||
warn_count++;
|
|
||||||
Result (C_INVALID, S_STRXFRM, CASE_8,
|
Result (C_INVALID, S_STRXFRM, CASE_8,
|
||||||
"got an error in fist strxfrm() call");
|
"got an error in fist strxfrm() call");
|
||||||
continue;
|
continue;
|
||||||
|
@ -103,7 +101,6 @@ tst_strxfrm (FILE * fp, int debug_flg)
|
||||||
if (errno != 0)
|
if (errno != 0)
|
||||||
{
|
{
|
||||||
/* bug * bug may get correct results ... */
|
/* bug * bug may get correct results ... */
|
||||||
warn_count++;
|
|
||||||
Result (C_INVALID, S_STRXFRM, CASE_6,
|
Result (C_INVALID, S_STRXFRM, CASE_6,
|
||||||
"got an error in strcoll() call");
|
"got an error in strcoll() call");
|
||||||
continue;
|
continue;
|
||||||
|
|
|
@ -46,7 +46,6 @@ tst_wcschr (FILE * fp, int debug_flg)
|
||||||
"set ret_flg=1 to check NULL return value\n");
|
"set ret_flg=1 to check NULL return value\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
warn_count++;
|
|
||||||
Result (C_INVALID, S_WCSCHR, CASE_3, "(check the test data) "
|
Result (C_INVALID, S_WCSCHR, CASE_3, "(check the test data) "
|
||||||
"set ret_flg=1 to check NULL return value");
|
"set ret_flg=1 to check NULL return value");
|
||||||
continue;
|
continue;
|
||||||
|
|
|
@ -12,7 +12,6 @@ tst_wcspbrk (FILE * fp, int debug_flg)
|
||||||
{
|
{
|
||||||
TST_DECL_VARS (wchar_t *);
|
TST_DECL_VARS (wchar_t *);
|
||||||
wchar_t *ws1, *ws2;
|
wchar_t *ws1, *ws2;
|
||||||
int err;
|
|
||||||
wchar_t wc_ex;
|
wchar_t wc_ex;
|
||||||
|
|
||||||
TST_DO_TEST (wcspbrk)
|
TST_DO_TEST (wcspbrk)
|
||||||
|
@ -63,7 +62,6 @@ tst_wcspbrk (FILE * fp, int debug_flg)
|
||||||
|
|
||||||
if (*ret != wc_ex)
|
if (*ret != wc_ex)
|
||||||
{
|
{
|
||||||
err++;
|
|
||||||
err_count++;
|
err_count++;
|
||||||
Result (C_FAILURE, S_WCSPBRK, CASE_4, "the pointed wc is "
|
Result (C_FAILURE, S_WCSPBRK, CASE_4, "the pointed wc is "
|
||||||
"different from an expected wc");
|
"different from an expected wc");
|
||||||
|
|
|
@ -28,7 +28,6 @@ tst_wcsxfrm (FILE * fp, int debug_flg)
|
||||||
n2 = TST_INPUT (wcsxfrm).n2;
|
n2 = TST_INPUT (wcsxfrm).n2;
|
||||||
if (n1 < 0 || sizeof (frm1) < n1 || sizeof (frm2) < n2)
|
if (n1 < 0 || sizeof (frm1) < n1 || sizeof (frm2) < n2)
|
||||||
{
|
{
|
||||||
warn_count++;
|
|
||||||
Result (C_IGNORED, S_WCSXFRM, CASE_9,
|
Result (C_IGNORED, S_WCSXFRM, CASE_9,
|
||||||
"input data n1 or n2 is invalid");
|
"input data n1 or n2 is invalid");
|
||||||
continue;
|
continue;
|
||||||
|
@ -52,7 +51,6 @@ tst_wcsxfrm (FILE * fp, int debug_flg)
|
||||||
|
|
||||||
if (ret == -1 || ret >= n1 || errno_save != 0)
|
if (ret == -1 || ret >= n1 || errno_save != 0)
|
||||||
{
|
{
|
||||||
warn_count++;
|
|
||||||
Result (C_INVALID, S_WCSXFRM, CASE_8,
|
Result (C_INVALID, S_WCSXFRM, CASE_8,
|
||||||
"got an error in fist wcsxfrm() call");
|
"got an error in fist wcsxfrm() call");
|
||||||
continue;
|
continue;
|
||||||
|
@ -70,7 +68,6 @@ tst_wcsxfrm (FILE * fp, int debug_flg)
|
||||||
if (n2 == 0 || ret >= n2 || errno != 0)
|
if (n2 == 0 || ret >= n2 || errno != 0)
|
||||||
{
|
{
|
||||||
#if 0
|
#if 0
|
||||||
warn_count++;
|
|
||||||
Result (C_IGNORED, S_WCSXFRM, CASE_7, "did not get a result");
|
Result (C_IGNORED, S_WCSXFRM, CASE_7, "did not get a result");
|
||||||
#endif
|
#endif
|
||||||
continue;
|
continue;
|
||||||
|
@ -89,7 +86,6 @@ tst_wcsxfrm (FILE * fp, int debug_flg)
|
||||||
|
|
||||||
if (errno != 0) /* bugs * bugs may got correct results ... */
|
if (errno != 0) /* bugs * bugs may got correct results ... */
|
||||||
{
|
{
|
||||||
warn_count++;
|
|
||||||
Result (C_INVALID, S_WCSXFRM, CASE_6,
|
Result (C_INVALID, S_WCSXFRM, CASE_6,
|
||||||
"got an error in wcscoll() call");
|
"got an error in wcscoll() call");
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in New Issue