tests: Fix the stats unit test.
authorGabe Black <gabeblack@google.com>
Wed, 22 Nov 2017 00:52:48 +0000 (16:52 -0800)
committerGabe Black <gabeblack@google.com>
Wed, 22 Nov 2017 22:55:16 +0000 (22:55 +0000)
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 <andreas.sandberg@arm.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>

src/unittest/stattestmain.py

index 70fef59be8a393b84ed8b529c6d412dbe9186478..60b041cd3690b005018d595ab4e2d6b71c7c5757 100644 (file)
@@ -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()