{
int ret = 0;
gint exit_status;
- char *argv[] = {parser_path, trace_path, "-o", "dummy", NULL};
+ const char *argv[] = {parser_path, trace_path, "-o", "dummy", NULL};
if (!parser_path || !trace_path) {
ret = -1;
}
if (!g_spawn_sync(NULL,
- argv,
+ (gchar **) argv,
NULL,
G_SPAWN_STDOUT_TO_DEV_NULL,
NULL,
"bt_ctf_event_class_set_log_level succeeds with a valid log level");
ok(bt_ctf_event_class_get_log_level(event_class) == BT_CTF_EVENT_CLASS_LOG_LEVEL_INFO,
"bt_ctf_event_class_get_log_level returns the expected log level");
- ok(bt_ctf_event_class_set_emf_uri(NULL, "http://diamon.org/babeltrace/"),
+ ok(bt_ctf_event_class_set_emf_uri(NULL, "https://babeltrace.org/"),
"bt_ctf_event_class_set_emf_uri handles a NULL event class correctly");
- ok(!bt_ctf_event_class_set_emf_uri(event_class, "http://diamon.org/babeltrace/"),
+ ok(!bt_ctf_event_class_set_emf_uri(event_class, "https://babeltrace.org/"),
"bt_ctf_event_class_set_emf_uri succeeds with a valid EMF URI");
- ok(strcmp(bt_ctf_event_class_get_emf_uri(event_class), "http://diamon.org/babeltrace/") == 0,
+ ok(strcmp(bt_ctf_event_class_get_emf_uri(event_class), "https://babeltrace.org/") == 0,
"bt_ctf_event_class_get_emf_uri returns the expected EMF URI");
ok(!bt_ctf_event_class_set_emf_uri(event_class, NULL),
"bt_ctf_event_class_set_emf_uri succeeds with NULL (to reset)");
}
static
-void type_field_tests()
+void type_field_tests(void)
{
struct bt_ctf_field *uint_12;
struct bt_ctf_field *int_16;