summaryrefslogtreecommitdiff
path: root/posix/runtests.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-12-10 10:00:31 +0000
committerUlrich Drepper <drepper@redhat.com>1998-12-10 10:00:31 +0000
commit648c133790556357a430d83c2c89a2bd01df9e27 (patch)
treebc39460863b155333aeb1a8bafc884e48e3ed1d5 /posix/runtests.c
parentb77e6cd62103be90cd9cdd8e24372cb5324916ad (diff)
Update.
1998-12-09 Geoff Keating <geoffk@ozemail.com.au> * sysdeps/unix/sysv/linux/sys/procfs.h: Use sys/user.h not asm/user.h. * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise. * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: New file, like linux/sys/procfs.h but uses uid_t and gid_t. * sysdeps/unix/sysv/linux/powerpc/sys/user.h: New file, don't include <linux/ptrace.h>. 1998-12-08 Andreas Schwab <schwab@issan.cs.uni-dortmund.de> * posix/runptests.c (main): Check that regcomp did not succeed unexpectedly. * posix/runtests.c (run_a_test): Likewise. Return appropriate exit code. * posix/TESTS: Regexp "a[b-a]" should not compile. * posix/PTESTS: Comment out bogus tests GA113(2), GA145(2) and GA147(2). 1998-12-09 Andreas Schwab <schwab@issan.cs.uni-dortmund.de> * locale/programs/ld-ctype.c (allocate_arrays): Don't crash if there is no codeset name. * locale/programs/ld-collate.c (collate_output): Don't crash if a character has no weight.
Diffstat (limited to 'posix/runtests.c')
-rw-r--r--posix/runtests.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/posix/runtests.c b/posix/runtests.c
index b6a292e6f5..8347286989 100644
--- a/posix/runtests.c
+++ b/posix/runtests.c
@@ -65,7 +65,7 @@ run_a_test (int id, const struct a_test * t)
err = regcomp (&r, t->pattern, REG_EXTENDED);
if (err)
{
- if (t->expected)
+ if (t->expected == 2)
{
puts (" OK.");
return 0;
@@ -75,6 +75,13 @@ run_a_test (int id, const struct a_test * t)
puts (errmsg);
return 1;
}
+ else if (t->expected == 2)
+ {
+ printf ("test %d\n", id);
+ printf ("pattern \"%s\" successfull compilation not expected\n",
+ t->pattern);
+ return 1;
+ }
}
err = regexec (&r, t->data, 10, regs, 0);
@@ -124,9 +131,7 @@ main (int argc, char * argv[])
printf ("#%d:", x);
res |= run_a_test (x, &the_tests[x]);
}
- {
- exit (0);
- }
+ exit (res != 0);
}