summaryrefslogtreecommitdiff
path: root/tools/checker_test.py
diff options
context:
space:
mode:
author David Brazdil <dbrazdil@google.com> 2015-01-08 01:49:53 +0000
committer David Brazdil <dbrazdil@google.com> 2015-01-08 19:50:17 +0000
commit21df8898e239a46ebfb189b14668d216d5801a61 (patch)
tree860e17966d0fee6aa163f4d207cfa3a3790e9d3e /tools/checker_test.py
parent7e1a34386368d2bb3dc89bf5aa0519cafc326095 (diff)
ART: Fixed subsequent CHECK-NOTs Checker bug
Matching a group of CHECK-NOT lines caused Checker to crash due to incorrectly overwriting the varState variable. The second use of the variable was renamed and a regression test added. Change-Id: I1a879cf5368acca6b5092f69a9caa47b89a79532
Diffstat (limited to 'tools/checker_test.py')
-rwxr-xr-xtools/checker_test.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/checker_test.py b/tools/checker_test.py
index 9b04ab0d91..2846a9cc82 100755
--- a/tools/checker_test.py
+++ b/tools/checker_test.py
@@ -342,6 +342,10 @@ class TestCheckGroup_Match(unittest.TestCase):
self.__notMatchMulti([("foo", CheckVariant.Not)],
"""abc foo
def""")
+ self.__notMatchMulti([("foo", CheckVariant.Not),
+ ("bar", CheckVariant.Not)],
+ """abc
+ def bar""")
def test_LineOnlyMatchesOnce(self):
self.__matchMulti([("foo", CheckVariant.DAG),