diff options
author | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2011-08-26 18:17:51 +0000 |
---|---|---|
committer | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2011-08-26 18:17:51 +0000 |
commit | a2394219cf791e28b6a138f9233890ffb94fe955 (patch) | |
tree | 24a2cbbe45a1d5249250e0bbb197d7c54f1be511 /testdata | |
parent | 6cdbeffaa279d89159cd6c22376b19c0f50bc21d (diff) | |
download | pcre-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/testinput14 | 9 | ||||
-rw-r--r-- | testdata/testoutput14 | 24 |
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 --/ |