diff options
Diffstat (limited to 'libraries/systeminfo/src/sys_test.cpp')
-rw-r--r-- | libraries/systeminfo/src/sys_test.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libraries/systeminfo/src/sys_test.cpp b/libraries/systeminfo/src/sys_test.cpp index 6221da45..0f6007c9 100644 --- a/libraries/systeminfo/src/sys_test.cpp +++ b/libraries/systeminfo/src/sys_test.cpp @@ -15,6 +15,14 @@ slots: QVERIFY(!kinfo.kernelName.isEmpty()); QVERIFY(kinfo.kernelVersion != "0.0"); } + + void test_systemDistroNotNull() + { + auto kinfo = Sys::getDistributionInfo(); + QVERIFY(!kinfo.distributionName.isEmpty()); + QVERIFY(!kinfo.distributionVersion.isEmpty()); + qDebug() << "Distro: " << kinfo.distributionName << "version" << kinfo.distributionVersion; + } }; QTEST_GUILESS_MAIN(SysTest) |