summaryrefslogtreecommitdiff
path: root/posix
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1997-05-03 00:33:54 +0000
committerUlrich Drepper <drepper@redhat.com>1997-05-03 00:33:54 +0000
commit6b00df4189bd15fe87244876b7f1a3cf800f72dc (patch)
tree9f8651b11ce64d33fd2fe3c6b8436596105c2b0f /posix
parent93256cc1acaefb4c3ae0c13c5b979b298ba66279 (diff)
1997-05-03 00:53 Ulrich Drepper <drepper@cygnus.com>
* posix/TESTS2C.sed: Recognize only digits in first field. This enables us to use colons in the pattern. 1997-05-01 20:02 Richard Henderson <rth@tamu.edu> * sysdeps/unix/sysv/linux/alpha/brk.S: Don't presume that the kernel will preserve non-call-saved registers; save and restore a0 across the system call. * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise tuck the thread data onto the new thread's stack.
Diffstat (limited to 'posix')
-rw-r--r--posix/TESTS2C.sed2
-rw-r--r--posix/testcases.h8
2 files changed, 9 insertions, 1 deletions
diff --git a/posix/TESTS2C.sed b/posix/TESTS2C.sed
index 28dd131dac..d8c2d72617 100644
--- a/posix/TESTS2C.sed
+++ b/posix/TESTS2C.sed
@@ -1,2 +1,2 @@
s/\\/\\\\/g
-s/\(.*\):\(.*\):\(.*\)/ {\1, "\2", "\3"},/
+s/\([0-9]*\):\(.*\):\(.*\)/ {\1, "\2", "\3"},/
diff --git a/posix/testcases.h b/posix/testcases.h
index c471ca0613..d5dce0ae0f 100644
--- a/posix/testcases.h
+++ b/posix/testcases.h
@@ -157,3 +157,11 @@
{0, "M[ou]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy]", "Moammar Qudhafi"},
{0, "M[ou]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy]", "Mu'ammar al-Qaddafi"},
{0, "M[ou]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy]", "Mulazim Awwal Mu'ammar Muhammad Abu Minyar al-Qadhafi"},
+ {0, "[[:digit:]]+", "01234"},
+ {1, "[[:alpha:]]+", "01234"},
+ {0, "^[[:digit:]]*$", "01234"},
+ {1, "^[[:digit:]]*$", "01234a"},
+ {0, "^[[:alnum:]]*$", "01234a"},
+ {0, "^[[:xdigit:]]*$", "01234a"},
+ {1, "^[[:xdigit:]]*$", "01234g"},
+ {0, "^[[:alnum:][:space:]]*$", "Hello world"},