summaryrefslogtreecommitdiff
path: root/src/unittest
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2017-11-21 16:52:48 -0800
committerGabe Black <gabeblack@google.com>2017-11-22 22:55:16 +0000
commit9651c0278d93bf5c4620e198baac975f0c84e9a0 (patch)
tree92e7fce69c727d23dc127208516259d47d954759 /src/unittest
parente80899c49a758d966ae47920c296325d64fea383 (diff)
downloadgem5-9651c0278d93bf5c4620e198baac975f0c84e9a0.tar.xz
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 <andreas.sandberg@arm.com> Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Diffstat (limited to 'src/unittest')
-rw-r--r--src/unittest/stattestmain.py2
1 files changed, 1 insertions, 1 deletions
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()