123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- #include <locale.h>
- #include <stdio.h>
- #include <stdint.h>
- #include <stdlib.h>
- #include <string.h>
- #include <support/check.h>
- #include <support/test-driver.h>
- #define SIZE 0x40000000ul
- int
- do_test (void)
- {
- TEST_VERIFY_EXIT (setlocale (LC_COLLATE, "en_GB.UTF-8") != NULL);
- char *p = malloc (SIZE);
- if (p == NULL)
- {
- puts ("info: could not allocate memory, cannot run test");
- return EXIT_UNSUPPORTED;
- }
- memset (p, 'x', SIZE - 1);
- p[SIZE - 1] = 0;
- printf ("info: strcoll result: %d\n", strcoll (p, p));
- return 0;
- }
- #define TIMEOUT 300
- #include <support/test-driver.c>
|