about summary refs log tree commit diff
path: root/string/tst-strfry.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2005-04-12 15:29:07 +0000
committerUlrich Drepper <drepper@redhat.com>2005-04-12 15:29:07 +0000
commit806bc96abb96212c38ef54ea80a86b45647161eb (patch)
tree479050d0c1226f7e08ecdef9b3de2f20271f6aa2 /string/tst-strfry.c
parentfcc3501c221534c9329d2f438ecf0f1323f18a4d (diff)
downloadglibc-806bc96abb96212c38ef54ea80a86b45647161eb.tar.gz
glibc-806bc96abb96212c38ef54ea80a86b45647161eb.tar.xz
glibc-806bc96abb96212c38ef54ea80a86b45647161eb.zip
* 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/tst-strfry.c')
-rw-r--r--string/tst-strfry.c15
1 files changed, 15 insertions, 0 deletions
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"