| Index: tools/test.py
|
| diff --git a/tools/test.py b/tools/test.py
|
| index 1632895c0d36afe8b5c5f413344f155821a902ec..d8ecb5fb3440476dd52953f5230aa5b36af4b0a9 100755
|
| --- a/tools/test.py
|
| +++ b/tools/test.py
|
| @@ -264,10 +264,16 @@ class TestCase(object):
|
| def __init__(self, context, path):
|
| self.path = path
|
| self.context = context
|
| + self.failed = None
|
|
|
| def IsNegative(self):
|
| return False
|
|
|
| + def DidFail(self, output):
|
| + if self.failed is None:
|
| + self.failed = self.IsFailureOutput(output)
|
| + return self.failed
|
| +
|
| def IsFailureOutput(self, output):
|
| return output.exit_code != 0
|
|
|
| @@ -296,7 +302,7 @@ class TestOutput(object):
|
| return not outcome in self.test.outcomes
|
|
|
| def HasFailed(self):
|
| - execution_failed = self.test.IsFailureOutput(self.output)
|
| + execution_failed = self.test.DidFail(self.output)
|
| if self.test.IsNegative():
|
| return not execution_failed
|
| else:
|
| @@ -1060,7 +1066,7 @@ def GetSpecialCommandProcessor(value):
|
| return ExpandCommand
|
|
|
|
|
| -BUILT_IN_TESTS = ['mjsunit', 'cctest']
|
| +BUILT_IN_TESTS = ['mjsunit', 'cctest', 'message']
|
|
|
|
|
| def GetSuites(test_root):
|
|
|