aboutsummaryrefslogtreecommitdiff
path: root/tests/test_ftrace.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_ftrace.py')
-rw-r--r--tests/test_ftrace.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/test_ftrace.py b/tests/test_ftrace.py
index a912ff7..389d31f 100644
--- a/tests/test_ftrace.py
+++ b/tests/test_ftrace.py
@@ -420,6 +420,15 @@ class TestFTraceSched(utils_tests.SetupDirectory):
self.assertEqual(trace.basetime, 0)
+ def test_ftrace_unique_but_no_fields(self):
+ """Test with a matching unique but no special fields"""
+ version_parser = trappy.register_dynamic_ftrace("Version", "version")
+
+ with self.assertRaises(ValueError):
+ trappy.FTrace(scope="custom")
+
+ trappy.unregister_dynamic_ftrace(version_parser)
+
def test_ftrace_normalize_some_tracepoints(self):
"""Test that normalizing time works if not all the tracepoints are in the trace"""