[Piglit] [PATCH 06/13] dmesg_tests.py: Add initializer tests
Dylan Baker
baker.dylan.c at gmail.com
Thu Mar 6 14:47:16 PST 2014
Signed-off-by: Dylan Baker <baker.dylan.c at gmail.com>
---
framework/tests/dmesg_tests.py | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/framework/tests/dmesg_tests.py b/framework/tests/dmesg_tests.py
index cb450e1..63d9051 100644
--- a/framework/tests/dmesg_tests.py
+++ b/framework/tests/dmesg_tests.py
@@ -59,6 +59,18 @@ def _write_dev_kmesg():
raise SkipTest("Writing to the ringbuffer failed")
+def test_linux_initialization():
+ """ Test that LinuxDmesg initializes """
+ dmesg = LinuxDmesg()
+ assert dmesg
+
+
+def test_dummy_initialization():
+ """ Test that DummyDmesg initializes """
+ dmesg = DummyDmesg()
+ assert dmesg
+
+
def test_get_dmesg_dummy():
""" Test that get_dmesg function returns a Dummy when asked """
dummy = get_dmesg(not_dummy=False)
--
1.9.0
More information about the Piglit
mailing list