summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/configs/memcheck.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/configs/memcheck.py b/tests/configs/memcheck.py
index 21c8d7d4c..97f8d1369 100644
--- a/tests/configs/memcheck.py
+++ b/tests/configs/memcheck.py
@@ -39,6 +39,13 @@
# Authors: Jason Lowe-Power
# Andreas Hansson
+import m5
+from m5.objects import *
+
+# the traffic generator is only available if we have protobuf support,
+# so potentially skip this test
+require_sim_object("TrafficGen")
+
# A wrapper around configs/example/memcheck.py
# For some reason, this is implicitly needed by run.py