diff options
author | Joe Thornber <thornber@redhat.com> | 2010-07-20 15:32:07 +0000 |
---|---|---|
committer | Joe Thornber <thornber@redhat.com> | 2010-07-20 15:32:07 +0000 |
commit | fee2e890af8866bdc234ae7b0fc6d4173280a567 (patch) | |
tree | 913a8fffb16da05fb2c0b31af225725a4c1ee017 /unit-tests | |
parent | 96412de6a92e8da00d8a2fbfe0fd2ce2122b096e (diff) | |
download | lvm2-fee2e890af8866bdc234ae7b0fc6d4173280a567.tar.gz lvm2-fee2e890af8866bdc234ae7b0fc6d4173280a567.tar.xz lvm2-fee2e890af8866bdc234ae7b0fc6d4173280a567.zip |
[REGEX] add a fingerprinting facility to allow test code to compare dfas
Diffstat (limited to 'unit-tests')
-rw-r--r-- | unit-tests/regex/matcher_t.c | 1 | ||||
-rw-r--r-- | unit-tests/regex/matcher_t.expected | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/unit-tests/regex/matcher_t.c b/unit-tests/regex/matcher_t.c index 1eb1b3c4..063e864d 100644 --- a/unit-tests/regex/matcher_t.c +++ b/unit-tests/regex/matcher_t.c @@ -135,6 +135,7 @@ int main(int argc, char **argv) goto err; } + printf("fingerprint: %x\n", dm_regex_fingerprint(scanner)); _scan_input(scanner, regex); _free_regex(regex, nregex); diff --git a/unit-tests/regex/matcher_t.expected b/unit-tests/regex/matcher_t.expected index aaf071c5..5ace51c4 100644 --- a/unit-tests/regex/matcher_t.expected +++ b/unit-tests/regex/matcher_t.expected @@ -1,4 +1,5 @@ Matcher built with 23 dfa states +fingerprint: 352b6c4f /dev/loop/0 : loop/[0-9]+ /dev/loop/1 : loop/[0-9]+ /dev/loop/2 : loop/[0-9]+ |