diff options
author | ache <ache@FreeBSD.org> | 2004-02-25 02:41:15 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 2004-02-25 02:41:15 +0000 |
commit | 492ba90c20eff51f83646872867f3c51f2ab3bfe (patch) | |
tree | 28e8d81c4f492fad0494337e7a3d37f7aa393f87 /gnu/lib/libregex/test/bsd-interf.c | |
parent | 0da2f6f92ba9b77e4e4ff2cfd61f406eb413a06a (diff) | |
download | FreeBSD-src-492ba90c20eff51f83646872867f3c51f2ab3bfe.zip FreeBSD-src-492ba90c20eff51f83646872867f3c51f2ab3bfe.tar.gz |
Upgrade to regex from grep 2.4.2
Diffstat (limited to 'gnu/lib/libregex/test/bsd-interf.c')
-rw-r--r-- | gnu/lib/libregex/test/bsd-interf.c | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/gnu/lib/libregex/test/bsd-interf.c b/gnu/lib/libregex/test/bsd-interf.c deleted file mode 100644 index 226a513..0000000 --- a/gnu/lib/libregex/test/bsd-interf.c +++ /dev/null @@ -1,38 +0,0 @@ -/* bsd-interf.c: test BSD interface. */ - -#ifndef _POSIX_SOURCE /* whole file */ - -#include "test.h" - -void -test_berk_search (pattern, string) - const char *pattern; - char *string; -{ - const char *return_value = re_comp (pattern); - - if (return_value != 0) - { - printf ("This didn't compile: `%s'.\n", pattern); - printf (" The error message was: `%s'.\n", return_value); - } - else - if (test_should_match && re_exec (string) != strlen (string)) - { - printf ("Should have matched but didn't:\n"); - printf (" The pattern was: %s.\n", pattern); - if (string) - printf (" The string was: `%s'.'n", string); - else - printf (" The string was empty.\n"); - } -} - - -void -test_bsd_interface () -{ - test_berk_search ("a", "ab"); -} - -#endif /* _POSIX_SOURCE */ |