aboutsummaryrefslogtreecommitdiff
path: root/posix/runtests.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-10-31 04:38:55 +0000
committerUlrich Drepper <drepper@redhat.com>2000-10-31 04:38:55 +0000
commit02fb3d179ddd3c88f4d4f31d4b27948b48bced2b (patch)
tree21c13678f5ef2e6daf5972fa6defef68abd382d3 /posix/runtests.c
parentcdfb970dd9c20861d7fdac16435d70792b8a027a (diff)
downloadglibc-02fb3d179ddd3c88f4d4f31d4b27948b48bced2b.tar
glibc-02fb3d179ddd3c88f4d4f31d4b27948b48bced2b.tar.gz
glibc-02fb3d179ddd3c88f4d4f31d4b27948b48bced2b.tar.bz2
glibc-02fb3d179ddd3c88f4d4f31d4b27948b48bced2b.zip
Update.
* posix/runtests.c (main): Don't use exit() to avoid warning with broken compilers. * string/bug-strncat1.c: Undefine __USE_STRING_INLINES before defining it again to avoid warning. * string/bug-strpbrk1.c: Likewise. * string/bug-strspn1.c: Likewise. 2000-10-29 Bruno Haible <haible@clisp.cons.org> * locale/C-translit.h.in: Include more rules from translit_neutral. Remove a few German and Danish specific rules. * locale/gen-translit.pl: Avoid an error when printing a string containing a '%' character. * locale/C-translit.h: Regenerated. * intl/translit.po: Choose different translations. * intl/tst-translit.c: Update. 2000-10-29 Bruno Haible <haible@clisp.cons.org> * locale/programs/ld-ctype.c (translit_include_t): New type. (locale_ctype_t): Remove translit_copy_locale, translit_copy_repertoire fields, add translit_include field. (ctype_read): After seeing "translit_start" in ignore_content mode, skip the entire translit section, not only one line. Remove dead test for tok_translit_end. Enqueue include statements into a list. Signal error if tok_eof seen before tok_translit_end. (translit_flatten): New function. (allocate_arrays): Call translit_flatten. 2000-10-30 Ulrich Drepper <drepper@redhat.com>
Diffstat (limited to 'posix/runtests.c')
-rw-r--r--posix/runtests.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/posix/runtests.c b/posix/runtests.c
index 2e823fb52f..1e91b11e68 100644
--- a/posix/runtests.c
+++ b/posix/runtests.c
@@ -4,13 +4,13 @@ Copyright 1995 by Tom Lord
All Rights Reserved
-Permission to use, copy, modify, and distribute this software and its
-documentation for any purpose and without fee is hereby granted,
+Permission to use, copy, modify, and distribute this software and its
+documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appear in all copies and that
-both that copyright notice and this permission notice appear in
+both that copyright notice and this permission notice appear in
supporting documentation, and that the name of the copyright holder not be
used in advertising or publicity pertaining to distribution of the
-software without specific, written prior permission.
+software without specific, written prior permission.
Tom Lord DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
@@ -39,7 +39,7 @@ struct a_test
const unsigned char * data;
};
-static const struct a_test the_tests[] =
+static const struct a_test the_tests[] =
{
#include "testcases.h"
{-1, 0, 0}
@@ -84,7 +84,7 @@ run_a_test (int id, const struct a_test * t)
return 1;
}
}
-
+
err = regexec (&r, t->data, 10, regs, 0);
if (err != t->expected)
@@ -132,7 +132,5 @@ main (int argc, char * argv[])
printf ("#%d:", x);
res |= run_a_test (x, &the_tests[x]);
}
- exit (res != 0);
+ return res != 0;
}
-
-