From 99ef2719fb3d703fe38c4113cd7f5adec516dd3a Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Fri, 28 Oct 2016 20:29:21 +0200 Subject: 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. --- test/time/tst_wcsftime.c | 65 ------------------------------------------------ 1 file changed, 65 deletions(-) delete mode 100644 test/time/tst_wcsftime.c (limited to 'test/time/tst_wcsftime.c') diff --git a/test/time/tst_wcsftime.c b/test/time/tst_wcsftime.c deleted file mode 100644 index 5631d952a..000000000 --- a/test/time/tst_wcsftime.c +++ /dev/null @@ -1,65 +0,0 @@ -#include -#include -#include -#include -#include - -#define NUM_OF_DATES 7 -#define NUM_OF_LOCALES 3 -#define BUF_SIZE 256 - -int -main (void) -{ - wchar_t buf[BUF_SIZE]; - struct tm *tp; - time_t time_list[NUM_OF_DATES] = { - 500, 68200000, 694223999, - 694224000, 704900000, 705000000, - 705900000 - }; - char *locale_list[NUM_OF_LOCALES] = { - "C", - "fr_FR.ISO-8859-1", - "ja_JP.UTF-8" - }; - int result = 0, ddd, lll; - size_t n; - - for (lll = 0; lll < NUM_OF_LOCALES; lll++) { - printf ("\nUsing locale: %s\n", locale_list[lll]); - char* set = setlocale(LC_ALL, locale_list[lll]); - if (set == NULL) { - printf ("FAILED!\n\n"); - continue; - } else - printf ("\n"); - for (ddd = 0; ddd < NUM_OF_DATES; ddd++) { - tp = localtime(&time_list[ddd]); - printf ("%ld corresponds to ", time_list[ddd]); - - n = wcsftime (buf, sizeof (buf) / sizeof (buf[0]), - L"%H:%M:%S %Y-%m-%d%n", tp); - if (n != 21) { - result = 1; - printf ("FAILED!\n"); - } - - printf ("%ls", buf); - - wcsftime (buf, sizeof (buf) / sizeof (buf[0]), - L"%tor, as %%D %%T: %D %T%n", tp); - printf ("%ls", buf); - - wcsftime (buf, sizeof (buf) / sizeof (buf[0]), L"%A (%a)%n", tp); - printf ("The weekday was %ls", buf); - - wcsftime (buf, sizeof (buf) / sizeof (buf[0]), L"%B (%b) %Y%n", tp); - /* glibc bug? forgets aigu from french february février - * See s/printf (/wprintf (L/g */ - //wprintf (L"Month was %ls", buf); - printf ("Month was %ls", buf); - } - } - return result; -} -- cgit v1.2.3