diff options
author | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2016-10-28 20:29:21 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2016-10-28 20:31:55 +0200 |
commit | 99ef2719fb3d703fe38c4113cd7f5adec516dd3a (patch) | |
tree | 2c1f77cb41b60ccbf8faa77a3640491a3546b546 /test/string/tst-strlen.c | |
parent | 543308f6c46cf2edf8a524bc9c631e472570fe72 (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/string/tst-strlen.c')
-rw-r--r-- | test/string/tst-strlen.c | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/test/string/tst-strlen.c b/test/string/tst-strlen.c deleted file mode 100644 index a1e115927..000000000 --- a/test/string/tst-strlen.c +++ /dev/null @@ -1,45 +0,0 @@ -/* Make sure we don't test the optimized inline functions if we want to - test the real implementation. */ -#undef __USE_STRING_INLINES - -#include <stdio.h> -#include <string.h> - -int -main(int argc, char *argv[]) -{ - static const size_t lens[] = { 0, 1, 0, 2, 0, 1, 0, 3, - 0, 1, 0, 2, 0, 1, 0, 4 }; - char basebuf[24 + 32]; - size_t base; - - for (base = 0; base < 32; ++base) - { - char *buf = basebuf + base; - size_t words; - - for (words = 0; words < 4; ++words) - { - size_t last; - memset (buf, 'a', words * 4); - - for (last = 0; last < 16; ++last) - { - buf[words * 4 + 0] = (last & 1) != 0 ? 'b' : '\0'; - buf[words * 4 + 1] = (last & 2) != 0 ? 'c' : '\0'; - buf[words * 4 + 2] = (last & 4) != 0 ? 'd' : '\0'; - buf[words * 4 + 3] = (last & 8) != 0 ? 'e' : '\0'; - buf[words * 4 + 4] = '\0'; - - if (strlen (buf) != words * 4 + lens[last] - || strnlen (buf, -1) != words * 4 + lens[last]) - { - printf ("failed for base=%Zu, words=%Zu, and last=%Zu\n", - base, words, last); - return 1; - } - } - } - } - return 0; -} |