From: Gabe Black Date: Wed, 22 Nov 2017 00:52:48 +0000 (-0800) Subject: tests: Fix the stats unit test. X-Git-Tag: v19.0.0.0~2519 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9651c0278d93bf5c4620e198baac975f0c84e9a0;p=gem5.git tests: Fix the stats unit test. This has been broken since February. The interface for opening initializing where the stats output should go was changed, but the test wasn't updated. Change-Id: I54bd8be15bf870352d5fcfad95ded28d87c7cc5a Reviewed-on: https://gem5-review.googlesource.com/6001 Reviewed-by: Andreas Sandberg Maintainer: Andreas Sandberg --- diff --git a/src/unittest/stattestmain.py b/src/unittest/stattestmain.py index 70fef59be..60b041cd3 100644 --- a/src/unittest/stattestmain.py +++ b/src/unittest/stattestmain.py @@ -6,7 +6,7 @@ def main(): # Initialize the global statistics m5.stats.initSimStats() - m5.stats.initText("cout") + m5.stats.addStatVisitor("cout") # We're done registering statistics. Enable the stats package now. m5.stats.enable()