summaryrefslogtreecommitdiff
path: root/test/locale-mbwc/tst_strcoll.c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2016-10-28 20:29:21 +0200
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-10-28 20:31:55 +0200
commit99ef2719fb3d703fe38c4113cd7f5adec516dd3a (patch)
tree2c1f77cb41b60ccbf8faa77a3640491a3546b546 /test/locale-mbwc/tst_strcoll.c
parent543308f6c46cf2edf8a524bc9c631e472570fe72 (diff)
test: remove test suite
The test suite is now a developed in a separate git repository. See here: http://cgit.uclibc-ng.org/cgi/cgit/uclibc-ng-test.git The test suite should be just like every other software compiled with the cross-toolchain. In the past strange problems where found when the test suite got build in the toolchain creation step.
Diffstat (limited to 'test/locale-mbwc/tst_strcoll.c')
-rw-r--r--test/locale-mbwc/tst_strcoll.c87
1 files changed, 0 insertions, 87 deletions
diff --git a/test/locale-mbwc/tst_strcoll.c b/test/locale-mbwc/tst_strcoll.c
deleted file mode 100644
index 4c5a84f69..000000000
--- a/test/locale-mbwc/tst_strcoll.c
+++ /dev/null
@@ -1,87 +0,0 @@
-/*
- STRCOLL: int strcoll (const char *s1, const char *s2)
-*/
-
-#define TST_FUNCTION strcoll
-
-#include "tsp_common.c"
-#include "dat_strcoll.c"
-
-int
-tst_strcoll (FILE * fp, int debug_flg)
-{
- TST_DECL_VARS (int);
- const char *s1, *s2;
-
- TST_DO_TEST (strcoll)
- {
- TST_HEAD_LOCALE (strcoll, S_STRCOLL);
- TST_DO_REC (strcoll)
- {
- TST_GET_ERRET (strcoll);
- s1 = TST_INPUT (strcoll).s1;
- s2 = TST_INPUT (strcoll).s2;
-
- TST_CLEAR_ERRNO;
- ret = strcoll (s1, s2);
- TST_SAVE_ERRNO;
-
- if (debug_flg)
- {
- fprintf (stdout, "strcoll() [ %s : %d ] ret = %d\n", locale,
- rec + 1, ret);
- fprintf (stdout, " errno = %d\n",
- errno_save);
- fprintf (stdout, " LC_COLLATE = %s\n",
- (setlocale (LC_COLLATE, NULL)) ? setlocale (LC_COLLATE,
- NULL) : "");
- }
-
- TST_IF_RETURN (S_STRCOLL)
- {
- if (ret_exp == +1)
- {
- if (ret > 0)
- {
- Result (C_SUCCESS, S_STRCOLL, CASE_3, MS_PASSED);
- }
- else
- {
- err_count++;
- Result (C_FAILURE, S_STRCOLL, CASE_3,
- "the return value should be greater than 0,"
- " but is not ...");
- }
- }
- else if (ret_exp == -1)
- {
- if (ret < 0)
- {
- Result (C_SUCCESS, S_STRCOLL, CASE_3, MS_PASSED);
- }
- else
- {
- err_count++;
- Result (C_FAILURE, S_STRCOLL, CASE_3,
- "the return value should less than 0, but not ...");
- }
- }
- else if (ret_exp != 0)
- {
- if (debug_flg)
- {
- fprintf (stderr, "*** Warning *** : tst_strcoll : "
- "(check the test data); should set ret_flg=1"
- " to check a return value");
- }
-
- warn_count++;
- Result (C_INVALID, S_WCSCHR, CASE_3, "(check the test data); "
- "should set ret_flg=1 to check a return value");
- }
- }
- }
- }
-
- return err_count;
-}