summaryrefslogtreecommitdiff
path: root/tests/regex_test.cpp
AgeCommit message (Collapse)Author
2018-08-02Modernize codebase by replacing NULL with nullptrYi Kong
Fixes -Wzero-as-null-pointer-constant warning. Test: m Bug: 68236239 Change-Id: I5b4123bc6709641315120a191e36cc57541349b2
2016-02-12Fix regerror(..., nullptr, 0).Elliott Hughes
Found by passing a bad regular expression to the Google benchmark code (https://github.com/google/benchmark). Change-Id: I475db71c25706bbf02091b754acabe8254062f3a
2015-08-27Fix regoff_t for LP32 and _FILE_OFFSET_BITS=64.Elliott Hughes
bionic is built without _FILE_OFFSET_BITS=64, so internally regoff_t was 32-bit on LP32, but code compiled with _FILE_OFFSET_BITS would expect rm_so and rm_eo in struct regmatch_t to be 64-bit, leading to confusion. Bug: http://b/23566443 Change-Id: Iae92fa545104068e4f64ce1977f5ec616859638c
2014-05-13Consistently use #if defined(__BIONIC__) in tests.Elliott Hughes
I've also switched some tests to be positive rather than negative, because !defined is slightly harder to reason about and there are only two cases: bionic and glibc. Change-Id: I8d3ac40420ca5aead3e88c69cf293f267273c8ef
2012-08-15Switch to the current NetBSD regex implementation.Elliott Hughes
Change-Id: If32b28dd85d6a7ab8957ab81d19fa4c0de9499d5