| a4a80168 | 08-Aug-2017 |
Kyle Evans <kevans@FreeBSD.org> |
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
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
show more ...
|
| eaca103d | 06-Jul-2017 |
Alan Somers <asomers@FreeBSD.org> |
Fix cleanup in lib/libc/gen/setdomainname_test
ATF cleanup routines run in separate processes from the tests themselves, so they can't share global variables.
Also, setdomainname_test needs to be i
Fix cleanup in lib/libc/gen/setdomainname_test
ATF cleanup routines run in separate processes from the tests themselves, so they can't share global variables.
Also, setdomainname_test needs to be is_exclusive because the test cases access a global resource.
PR: 219967 Reviewed by: ngie MFC after: 3 weeks Sponsored by: Spectra Logic Corp Differential Revision: https://reviews.freebsd.org/D11188
show more ...
|
| 1c227d00 | 06-Jul-2017 |
Enji Cooper <ngie@FreeBSD.org> |
:snprintf_float: don't blindly set RLIMIT_DATA and RLIMIT_AS to 1 MB -- raise the limit to 32MB instead.
Require user=root and memory=64MB+ first so one can be reasonably sure that the test will fun
:snprintf_float: don't blindly set RLIMIT_DATA and RLIMIT_AS to 1 MB -- raise the limit to 32MB instead.
Require user=root and memory=64MB+ first so one can be reasonably sure that the test will function appropriately.
MFC after: 1 month MFC with: r320726 PR: 220502
show more ...
|
| a229b005 | 12-May-2017 |
Enji Cooper <ngie@FreeBSD.org> |
Fix up previous commit
- Apply the logic to the FreeBSD block - Fix a typo with the getconf(1) call that I would have caught, were it not for the fact that I got the blocks wrong. - Consolidate th
Fix up previous commit
- Apply the logic to the FreeBSD block - Fix a typo with the getconf(1) call that I would have caught, were it not for the fact that I got the blocks wrong. - Consolidate the hardcoded buffer sizes to the NetBSD block.
This would have been discovered had I run the test on a system where PATH_MAX != 1024 (I don't have that at my disposal right at this moment).
MFC after: 3 weeks MFC with: r318210 Sponsored by: Dell EMC Isilon
show more ...
|
| 70aca7c8 | 29-Mar-2017 |
Conrad Meyer <cem@FreeBSD.org> |
t_msgctl: Fix the same msgsnd() misuse as t_msgsnd
msgsnd(2)'s msgsz argument does not describe the full structure, only the message component.
Reported by: Coverity CIDs: 1368703, 1368711 Sponsor
t_msgctl: Fix the same msgsnd() misuse as t_msgsnd
msgsnd(2)'s msgsz argument does not describe the full structure, only the message component.
Reported by: Coverity CIDs: 1368703, 1368711 Sponsored by: Dell EMC Isilon
show more ...
|
| 1a663d3c | 29-Mar-2017 |
Conrad Meyer <cem@FreeBSD.org> |
Follow-up to r316179: More of the same
Reported by: Coverity CIDs: 1368705, 1368706, 1368707, 1368710 Sponsored by: Dell EMC Isilon |