#define NUM_TESTS_PER_TEST 1
struct test {
- char *stream_path;
- char *session_name;
- char *hostname;
- char *creation_time;
- char *extra_path;
- char *leftover;
+ const char *stream_path;
+ const char *session_name;
+ const char *hostname;
+ const char *creation_time;
+ const char *extra_path;
+ const char *leftover;
bool is_valid;
};
int main(int argc, char **argv)
{
+ int i;
int num_test = sizeof(tests) / sizeof(struct test);
plan_tests(NUM_TESTS_PER_TEST * num_test);
diag("Backward compatibility utils for lttng-relayd --group-by-session");
- for (int i = 0; i < num_test; i++) {
+ for (i = 0; i < num_test; i++) {
char *expected = NULL;
char *result = NULL;