summaryrefslogtreecommitdiff
path: root/test/test-util.hpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan.goodliffe@octal.co.uk>2025-09-02 16:13:22 +0100
committerDan Goodliffe <dan.goodliffe@octal.co.uk>2025-09-02 16:13:22 +0100
commitca9be55a98c094e8026a4003a099573dd4137050 (patch)
tree1d58e13a84fc6bba25242877859027bdfe8f461e /test/test-util.hpp
parent07a98c0ba7d2fdd79cab1884f81bb041741fc18c (diff)
downloadwebstat-ca9be55a98c094e8026a4003a099573dd4137050.tar.bz2
webstat-ca9be55a98c094e8026a4003a099573dd4137050.tar.xz
webstat-ca9be55a98c094e8026a4003a099573dd4137050.zip
Store utsname details in the host's detail field
Diffstat (limited to 'test/test-util.hpp')
-rw-r--r--test/test-util.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/test-util.hpp b/test/test-util.hpp
index 5b2a968..3338c5e 100644
--- a/test/test-util.hpp
+++ b/test/test-util.hpp
@@ -3,6 +3,7 @@
#include <connectionPool.h>
#include <filesystem>
#include <pq-mock.h>
+#include <sys/utsname.h>
namespace WebStat {
#define XSTR(s) STR(s)
@@ -33,4 +34,6 @@ namespace WebStat {
};
template<typename Out> using ParseData = std::tuple<std::string_view, Out>;
+
+ utsname getTestUtsName(std::string_view);
}