summaryrefslogtreecommitdiffstats
path: root/tests/libcgrouptest.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/libcgrouptest.h')
-rw-r--r--tests/libcgrouptest.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/libcgrouptest.h b/tests/libcgrouptest.h
index 644e176..70f565c 100644
--- a/tests/libcgrouptest.h
+++ b/tests/libcgrouptest.h
@@ -30,6 +30,7 @@
#include <libcgroup.h>
#define SIZE 100 /* Max size of a message to be printed */
+#define NUM_MSGS 10 /* Number of such messsages */
#define PASS 1 /* test passed */
#define FAIL 0 /* test failed */
@@ -55,6 +56,9 @@ enum cgroup_control_val_t {
STRING,
};
+/* Create a matrix of possible info messages */
+char **info;
+
int64_t val_int64;
u_int64_t val_uint64;
bool val_bool;
@@ -83,6 +87,11 @@ static inline void message(int num, int pass, char *api, int ret, char *extra);
static inline void build_path(char *target, char *mountpoint,
char *group, char *file);
+/* Allocate memory and populate info messages */
+void set_info_msgs();
+/* Free the allocated memory for info messages */
+void free_info_msgs();
+
static inline pid_t cgrouptest_gettid()
{
return syscall(__NR_gettid);