]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
* stdlib/random_r.c (__initstate_r): Don't use non-existing state.
authorUlrich Drepper <drepper@redhat.com>
Tue, 12 Apr 2005 15:29:07 +0000 (15:29 +0000)
committerUlrich Drepper <drepper@redhat.com>
Tue, 12 Apr 2005 15:29:07 +0000 (15:29 +0000)
* string/tst-strfry.c: New file.
* string/Makefile (tests): Add tst-strfry.

ChangeLog
string/Makefile
string/tst-strfry.c [new file with mode: 0644]

index 750c47db5a1c2758c53088c92e212540e14139d2..5aafdd156b49faa9ea58be6ed48c23f133e3a6cb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-04-12  Ulrich Drepper  <drepper@redhat.com>
+
+       * stdlib/random_r.c (__initstate_r): Don't use non-existing state.
+       * string/tst-strfry.c: New file.
+       * string/Makefile (tests): Add tst-strfry.
+
 2005-04-11  James A. Morrison  <ja2morri@uwaterloo.ca>
 
        * manual/string.texi: Fix typo in wmemcpy decl.
index 66469f586ed7ae9bf800f0643607e045e7681f46..2f37d29526548e65040e5536950615a90acfcac8 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 1991-1999,2000,2001,2002 Free Software Foundation, Inc.
+# Copyright (C) 1991-1999,2000,2001,2002, 2005 Free Software Foundation, Inc.
 # This file is part of the GNU C Library.
 
 # The GNU C Library is free software; you can redistribute it and/or
@@ -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 (file)
index 0000000..2b40a39
--- /dev/null
@@ -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"