summaryrefslogtreecommitdiffstats
path: root/libraries/systeminfo/src/sys_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/systeminfo/src/sys_test.cpp')
-rw-r--r--libraries/systeminfo/src/sys_test.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/libraries/systeminfo/src/sys_test.cpp b/libraries/systeminfo/src/sys_test.cpp
new file mode 100644
index 00000000..6221da45
--- /dev/null
+++ b/libraries/systeminfo/src/sys_test.cpp
@@ -0,0 +1,22 @@
+#include <QTest>
+#include "TestUtil.h"
+
+#include <sys.h>
+
+class SysTest : public QObject
+{
+ Q_OBJECT
+private
+slots:
+
+ void test_kernelNotNull()
+ {
+ auto kinfo = Sys::getKernelInfo();
+ QVERIFY(!kinfo.kernelName.isEmpty());
+ QVERIFY(kinfo.kernelVersion != "0.0");
+ }
+};
+
+QTEST_GUILESS_MAIN(SysTest)
+
+#include "sys_test.moc"