aboutsummaryrefslogtreecommitdiff
path: root/tests/test_systrace.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_systrace.py')
-rw-r--r--tests/test_systrace.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_systrace.py b/tests/test_systrace.py
index 22b9288..4c2a594 100644
--- a/tests/test_systrace.py
+++ b/tests/test_systrace.py
@@ -31,6 +31,10 @@ class TestSystrace(utils_tests.SetupDirectory):
events = ["sched_switch", "sched_wakeup", "trace_event_clock_sync"]
trace = trappy.SysTrace("trace.html", events=events)
+ self.assertTrue(hasattr(trace, "sched_switch"))
+ self.assertEquals(len(trace.sched_switch.data_frame), 4)
+ self.assertTrue("prev_comm" in trace.sched_switch.data_frame.columns)
+
self.assertTrue(hasattr(trace, "sched_wakeup"))
self.assertEquals(len(trace.sched_wakeup.data_frame), 4)
self.assertTrue("target_cpu" in trace.sched_wakeup.data_frame.columns)