summaryrefslogtreecommitdiff
path: root/test/locale-mbwc/tsp_common.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/tsp_common.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/tsp_common.c')
-rw-r--r--test/locale-mbwc/tsp_common.c64
1 files changed, 0 insertions, 64 deletions
diff --git a/test/locale-mbwc/tsp_common.c b/test/locale-mbwc/tsp_common.c
deleted file mode 100644
index cd88274c5..000000000
--- a/test/locale-mbwc/tsp_common.c
+++ /dev/null
@@ -1,64 +0,0 @@
-/*
- * TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY
- * Main driver
- */
-
-
-#define TST_FUNCTION_CALL(func) _TST_FUNCTION_CALL(func)
-#define _TST_FUNCTION_CALL(func) tst ##_## func
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <locale.h>
-#include <errno.h>
-#include <signal.h>
-
-#include "tst_types.h"
-#include "tgn_locdef.h"
-
-
-int
-main (int argc, char *argv[])
-{
- int ret;
- int debug;
-
- debug = argc > 1 ? atoi (argv[1]) : 0;
-
- if (debug)
- {
- fprintf (stdout, "\nTST_MBWC ===> %s ...\n", argv[0]);
- }
- ret = TST_FUNCTION_CALL (TST_FUNCTION) (stdout, debug);
-
- return (ret != 0);
-}
-
-#define MAX_RESULT_REC 132
-char result_rec[MAX_RESULT_REC];
-
-
-int
-result (FILE * fp, char res, const char *func, const char *loc, int rec_no,
- int seq_no, int case_no, const char *msg)
-{
- if (fp == NULL
- || strlen (func) + strlen (loc) + strlen (msg) + 32 > MAX_RESULT_REC)
- {
- fprintf (stderr,
- "Warning: result(): can't write the result: %s:%s:%d:%d:%s\n",
- func, loc, rec_no, case_no, msg);
- return 0;
- }
-
- sprintf (result_rec, "%s:%s:%d:%d:%d:%c:%s\n", func, loc, rec_no, seq_no,
- case_no, res, msg);
-
- if (fputs (result_rec, fp) == EOF)
- {
- return 0;
- }
-
- return 1;
-}