diff options
author | Dmitry Mikhirev | 2015-01-24 14:31:23 +0300 |
---|---|---|
committer | Dmitry Mikhirev | 2015-01-24 14:31:23 +0300 |
commit | 15f22648cd99f392ac5cab6afeec2a0e97b85c6d (patch) | |
tree | 5c94d011d1ae45d066a21d550a85f3f77564ed96 /tests.mk | |
parent | 2b494614096cdb578993b473b1f4ac93cd4dce1a (diff) | |
download | make_pcre-15f22648cd99f392ac5cab6afeec2a0e97b85c6d.tar.gz make_pcre-15f22648cd99f392ac5cab6afeec2a0e97b85c6d.tar.bz2 make_pcre-15f22648cd99f392ac5cab6afeec2a0e97b85c6d.tar.xz make_pcre-15f22648cd99f392ac5cab6afeec2a0e97b85c6d.zip |
fixed global search hang when zero-length matching foundv0.3.1
Diffstat (limited to 'tests.mk')
-rw-r--r-- | tests.mk | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -2,7 +2,7 @@ ifneq ($(findstring 4.,$(MAKE_VERSION)),4.) $(error you need GNU make 4.x to run tests) endif -NUMTESTS = 30 +NUMTESTS = 32 tests := $(foreach num,$(shell seq -f%03g $(NUMTESTS)),test$(num)) load pcre.so @@ -113,6 +113,10 @@ test029 = -z "$(m ^test$,$(subj029))" -a "$(m ^test$,$(subj029),m)" = test test030 = -z "$(m test.test,$(subj029))" -a \ "$(s test.test,passed,$(subj029),s)" = passed +# test zero-length matching +test031 = "$(m x?,aaa,g)" = "" +test032 = "$(s x?,!,abcd,g)" = "!a!b!c!d!" + ### END OF TEST EXPRESSIONS ### test%: |