aboutsummaryrefslogtreecommitdiffstats
path: root/string
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2005-07-18 02:39:13 +0000
committerRoland McGrath <roland@gnu.org>2005-07-18 02:39:13 +0000
commit0f7a049f2f5bd7a79c589979736ffd0caee88447 (patch)
tree8279994a6b98b151b8ca8aa8bf0d75dec9d14315 /string
parent2005-06-20 Jakub Jelinek <jakub@redhat.com> (diff)
downloadglibc-0f7a049f2f5bd7a79c589979736ffd0caee88447.tar.xz
glibc-0f7a049f2f5bd7a79c589979736ffd0caee88447.zip
2005-04-12 Ulrich Drepper <drepper@redhat.com>
[BZ #1090] * stdlib/random_r.c (__initstate_r): Don't use non-existing state. * string/tst-strfry.c: New file. * string/Makefile (tests): Add tst-strfry.
Diffstat (limited to 'string')
-rw-r--r--string/Makefile2
-rw-r--r--string/tst-strfry.c15
2 files changed, 16 insertions, 1 deletions
diff --git a/string/Makefile b/string/Makefile
index 66469f586e..7a77e35732 100644
--- a/string/Makefile
+++ b/string/Makefile
@@ -52,7 +52,7 @@ strop-tests := memchr memcmp memcpy memmove mempcpy memset memccpy \
tests := tester inl-tester noinl-tester testcopy test-ffs \
tst-strlen stratcliff tst-svc tst-inlcall \
bug-strncat1 bug-strspn1 bug-strpbrk1 tst-bswap \
- tst-strtok tst-strxfrm bug-strcoll1 \
+ tst-strtok tst-strxfrm bug-strcoll1 tst-strfry \
$(addprefix test-,$(strop-tests))
distribute := memcopy.h pagecopy.h tst-svc.expect test-string.h
diff --git a/string/tst-strfry.c b/string/tst-strfry.c
new file mode 100644
index 0000000000..2b40a39b13
--- /dev/null
+++ b/string/tst-strfry.c
@@ -0,0 +1,15 @@
+#include <stdio.h>
+#include <string.h>
+
+static int
+do_test (void)
+{
+ char str[] = "this is a test";
+
+ strfry (str);
+
+ return 0;
+}
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"