summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2017-02-27 18:01:20 +0100
committerlouiz’ <louiz@louiz.org>2017-02-27 18:01:20 +0100
commitd81cbc4a33ee2c28628ccb632af9ae1b27e84d03 (patch)
treee301669f22080be2241e082af34c6d8c8979f5ec /tests
parent9f978cda943619c95a41e5da9047c3cc0dd31555 (diff)
downloadbiboumi-d81cbc4a33ee2c28628ccb632af9ae1b27e84d03.tar.gz
biboumi-d81cbc4a33ee2c28628ccb632af9ae1b27e84d03.tar.bz2
biboumi-d81cbc4a33ee2c28628ccb632af9ae1b27e84d03.tar.xz
biboumi-d81cbc4a33ee2c28628ccb632af9ae1b27e84d03.zip
Use uname() instead of CMAKE_SYSTEM
fix #3235
Diffstat (limited to 'tests')
-rw-r--r--tests/utils.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/utils.cpp b/tests/utils.cpp
index d1f0edf..b8a3e75 100644
--- a/tests/utils.cpp
+++ b/tests/utils.cpp
@@ -8,6 +8,7 @@
#include <utils/empty_if_fixed_server.hpp>
#include <utils/get_first_non_empty.hpp>
#include <utils/time.hpp>
+#include <utils/system.hpp>
#include <utils/scopeguard.hpp>
using namespace std::string_literals;
@@ -151,3 +152,9 @@ TEST_CASE("scope_guard")
}
CHECK(res);
}
+
+TEST_CASE("system_name")
+{
+ CHECK(utils::get_system_name() != "Unknown");
+ CHECK(!utils::get_system_name().empty());
+} \ No newline at end of file