summaryrefslogtreecommitdiff
path: root/testdata
diff options
context:
space:
mode:
authorph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2011-08-26 18:17:51 +0000
committerph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2011-08-26 18:17:51 +0000
commita2394219cf791e28b6a138f9233890ffb94fe955 (patch)
tree24a2cbbe45a1d5249250e0bbb197d7c54f1be511 /testdata
parent6cdbeffaa279d89159cd6c22376b19c0f50bc21d (diff)
downloadpcre-a2394219cf791e28b6a138f9233890ffb94fe955.tar.gz
More JIT testing.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@674 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'testdata')
-rw-r--r--testdata/testinput149
-rw-r--r--testdata/testoutput1424
2 files changed, 28 insertions, 5 deletions
diff --git a/testdata/testinput14 b/testdata/testinput14
index e4d1b24..b9e91b5 100644
--- a/testdata/testinput14
+++ b/testdata/testinput14
@@ -1,8 +1,13 @@
/-- This test is run only when JIT support is available. It checks for a
- successful and an unsuccessful JIT compile. --/
+ successful and an unsuccessful JIT compile and save/restore behaviour. --/
/abc/S+I
-/ab\C/S+I
+/ab(*COMMIT)/S+I
+
+/abc/S+I>testsavedregex
+
+<testsavedregex
+ abc
/-- End of testinput14 --/
diff --git a/testdata/testoutput14 b/testdata/testoutput14
index 2874272..9b2f21d 100644
--- a/testdata/testoutput14
+++ b/testdata/testoutput14
@@ -1,5 +1,6 @@
/-- This test is run only when JIT support is available. It checks for a
- successful and an unsuccessful JIT compile. --/
+ successful and an unsuccessful JIT compile and save/restore behaviour. --/
+** Unknown option 'r'
/abc/S+I
Capturing subpattern count = 0
@@ -10,13 +11,30 @@ Subject length lower bound = 3
No set of starting bytes
JIT study was successful
-/ab\C/S+I
+/ab(*COMMIT)/S+I
Capturing subpattern count = 0
No options
First char = 'a'
Need char = 'b'
-Subject length lower bound = 3
+Subject length lower bound = 2
No set of starting bytes
JIT study was not successful
+/abc/S+I>testsavedregex
+Capturing subpattern count = 0
+No options
+First char = 'a'
+Need char = 'c'
+Subject length lower bound = 3
+No set of starting bytes
+JIT study was successful
+Compiled pattern written to testsavedregex
+Study data written to testsavedregex
+
+<testsavedregex
+Compiled pattern loaded from testsavedregex
+Study data loaded from testsavedregex
+ abc
+ 0: abc
+
/-- End of testinput14 --/