diff options
author | Ulrich Drepper <drepper@redhat.com> | 2005-04-12 15:29:07 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2005-04-12 15:29:07 +0000 |
commit | 806bc96abb96212c38ef54ea80a86b45647161eb (patch) | |
tree | 479050d0c1226f7e08ecdef9b3de2f20271f6aa2 /string | |
parent | fcc3501c221534c9329d2f438ecf0f1323f18a4d (diff) | |
download | glibc-806bc96abb96212c38ef54ea80a86b45647161eb.zip glibc-806bc96abb96212c38ef54ea80a86b45647161eb.tar.gz glibc-806bc96abb96212c38ef54ea80a86b45647161eb.tar.bz2 |
* 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/Makefile | 4 | ||||
-rw-r--r-- | string/tst-strfry.c | 15 |
2 files changed, 17 insertions, 2 deletions
diff --git a/string/Makefile b/string/Makefile index 66469f5..2f37d29 100644 --- a/string/Makefile +++ b/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 @@ -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 0000000..2b40a39 --- /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" |