[test] Fix assert for predictable mode in test runner.

NOTRY=true

Review URL: https://codereview.chromium.org/1156663009

Cr-Commit-Position: refs/heads/master@{#28679}
This commit is contained in:
machenbach 2015-05-28 06:06:35 -07:00 committed by Commit bot
parent 5df3b4ab5c
commit 5effc7131a

View File

@ -255,8 +255,13 @@ class Runner(object):
if queued_exception:
raise queued_exception
# Make sure that any allocations were printed in predictable mode.
assert not self.context.predictable or self.printed_allocations
# Make sure that any allocations were printed in predictable mode (if we
# ran any tests).
assert (
not self.total or
not self.context.predictable or
self.printed_allocations
)
def _VerbosePrint(self, text):
if self.context.verbose: