opnsense-src/contrib/netbsd-tests/lib/libc
Kyle Evans a4a801688c regex(3): Handle invalid {} constructs consistently and adjust tests
Currently, regex(3) exhibits the following wrong behavior as demonstrated
with sed:

 - echo "a{1,2,3}b" | sed -r "s/{/_/"     (1)
 - echo "a{1,2,3}b" | sed "s/\}/_/"       (2)
 - echo "a{1,2,3}b" | sed -r "s/{}/_/"    (3)

Cases (1) and (3) should throw errors but they actually succeed, and (2)
throws an error when it should match the literal '}'. The correct behavior
was decided by comparing to the behavior with the equivalent BRE (1)(3) or
ERE (2) and consulting POSIX, along with some reasonable evaluation.

Tests were also adjusted/added accordingly.

PR:		166861
Reviewed by:	emaste, ngie, pfg
Approved by:	emaste (mentor)
MFC after:	never
Differential Revision:	https://reviews.freebsd.org/D10315
2017-08-08 04:10:46 +00:00
..
arch Upgrade NetBSD tests to 01.11.2017_23.20 snapshot 2017-01-13 03:33:57 +00:00
c063 Pull in ^/vendor/NetBSD/tests/dist@r312219 2017-01-15 10:04:20 +00:00
common
db Drop unnecessary diff rewriting dict(..) function 2017-01-16 07:34:45 +00:00
gen o Replace __riscv__ with __riscv 2017-08-07 14:09:57 +00:00
hash Use copy of sha2.h from libnetbsd 2017-01-14 08:11:17 +00:00
inet Checkpoint initial integration work 2016-08-12 08:50:05 +00:00
locale Remove all expected failures from lib/libc/locale/io_test for FreeBSD 2017-03-20 03:52:06 +00:00
net Checkpoint initial integration work 2016-08-12 08:50:05 +00:00
regex regex(3): Handle invalid {} constructs consistently and adjust tests 2017-08-08 04:10:46 +00:00
rpc Remove expected failure now that it was fixed in r317660. 2017-05-02 22:14:55 +00:00
setjmp Pull in ^/vendor/NetBSD/tests/dist@r312219 2017-01-15 10:04:20 +00:00
ssp Fix up previous commit 2017-05-12 05:17:49 +00:00
stdio :snprintf_float: don't blindly set RLIMIT_DATA and RLIMIT_AS to 1 MB -- raise 2017-07-06 07:59:00 +00:00
stdlib Add additional __FreeBSD_version guards around the hsearch_r testcases 2017-03-01 03:31:12 +00:00
string Pull in ^/vendor/NetBSD/tests/dist@r312219 2017-01-15 10:04:20 +00:00
sync Upgrade NetBSD tests to 01.11.2017_23.20 snapshot 2017-01-13 03:33:57 +00:00
sys o Replace __riscv__ with __riscv 2017-08-07 14:09:57 +00:00
termios
time Checkpoint initial integration work 2016-08-12 08:50:05 +00:00
tls Mechanically replace #if defined(__FreeBSD__) and #if defined(__NetBSD__) with 2014-11-17 13:39:00 +00:00
tls_dso Mechanically replace #if defined(__FreeBSD__) and #if defined(__NetBSD__) with 2014-11-17 13:39:00 +00:00
ttyio Merge ^/vendor/NetBSD/tests/dist@r311868 2017-01-10 10:16:59 +00:00
t_cdb.c Import testcase updates with code contributed back to NetBSD 2017-01-11 09:51:34 +00:00
t_convfp.c
t_gdtoa.c