summaryrefslogtreecommitdiff
path: root/tests/lowmem-system-env.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lowmem-system-env.cpp')
-rw-r--r--tests/lowmem-system-env.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/lowmem-system-env.cpp b/tests/lowmem-system-env.cpp
index b2ed8411..f76ec4d7 100644
--- a/tests/lowmem-system-env.cpp
+++ b/tests/lowmem-system-env.cpp
@@ -77,6 +77,16 @@ int LowmemSystemEnv::cgroup_read_node_uint32(const char *cgroup_name, const char
return RESOURCED_ERROR_NONE;
}
+int LowmemSystemEnv::cgroup_read_node_uint64(const char *cgroup_name, const char *file_name, uint64_t *value)
+{
+ std::cerr << " cgroup_name=" << cgroup_name << ", file_name=" << file_name << std::endl;
+ check_expected(cgroup_name);
+ check_expected(file_name);
+ *value = static_cast<uint64_t>(mock());
+ std::cerr << " -> " << *value << std::endl;
+ return RESOURCED_ERROR_NONE;
+}
+
void LowmemSystemEnv::g_source_destroy(GSource *source)
{
delete source;