aboutsummaryrefslogtreecommitdiff
path: root/tests.mk
diff options
context:
space:
mode:
authorDmitry Mikhirev2015-01-24 14:31:23 +0300
committerDmitry Mikhirev2015-01-24 14:31:23 +0300
commit15f22648cd99f392ac5cab6afeec2a0e97b85c6d (patch)
tree5c94d011d1ae45d066a21d550a85f3f77564ed96 /tests.mk
parent2b494614096cdb578993b473b1f4ac93cd4dce1a (diff)
downloadmake_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.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests.mk b/tests.mk
index 47031c1..ce00b89 100644
--- a/tests.mk
+++ b/tests.mk
@@ -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%: