diff options
author | Petr Mrázek <peterix@gmail.com> | 2016-11-27 00:40:02 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2016-11-27 00:40:02 +0100 |
commit | ef73a2bd322c7df43922cd4b4ed4f49440b1b92f (patch) | |
tree | 657210493a6dd88fed4288e86050bc576fe4e17a /libraries/ganalytics/src/sys_test.cpp | |
parent | 5994c47d7c6845c71c9c37bf30e9511914a017f4 (diff) | |
download | MultiMC-ef73a2bd322c7df43922cd4b4ed4f49440b1b92f.tar MultiMC-ef73a2bd322c7df43922cd4b4ed4f49440b1b92f.tar.gz MultiMC-ef73a2bd322c7df43922cd4b4ed4f49440b1b92f.tar.lz MultiMC-ef73a2bd322c7df43922cd4b4ed4f49440b1b92f.tar.xz MultiMC-ef73a2bd322c7df43922cd4b4ed4f49440b1b92f.zip |
NOISSUE fix Windows kernel numbers and add unit test for them
Diffstat (limited to 'libraries/ganalytics/src/sys_test.cpp')
-rw-r--r-- | libraries/ganalytics/src/sys_test.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/libraries/ganalytics/src/sys_test.cpp b/libraries/ganalytics/src/sys_test.cpp new file mode 100644 index 00000000..6221da45 --- /dev/null +++ b/libraries/ganalytics/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" |