Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
* stdlib/random_r.c (__initstate_r): Don't use non-existing state.
	* string/tst-strfry.c: New file.
	* string/Makefile (tests): Add tst-strfry.
  • Loading branch information
Ulrich Drepper committed Apr 12, 2005
1 parent fcc3501 commit 806bc96
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
6 changes: 6 additions & 0 deletions 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.
Expand Down
4 changes: 2 additions & 2 deletions string/Makefile
@@ -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
Expand Down Expand Up @@ -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

Expand Down
15 changes: 15 additions & 0 deletions 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"

0 comments on commit 806bc96

Please sign in to comment.