]> git.meshlink.io Git - meshlink/blobdiff - test/channels-fork.c
Fix some test cases using the same configuration directory.
[meshlink] / test / channels-fork.c
index f331d0d2d4407c478cb7c5f2f81001e32bb2a7dd..483f430b88bee52be1aa82421e81538877f5786b 100644 (file)
@@ -91,7 +91,7 @@ static int main1(int rfd, int wfd) {
        meshlink_set_log_cb(NULL, MESHLINK_DEBUG, log_cb);
 
        assert(meshlink_destroy("channels_fork_conf.1"));
-       meshlink_handle_t *mesh = meshlink_open("channels_fork_conf.1", "foo", "channels", DEV_CLASS_BACKBONE);
+       meshlink_handle_t *mesh = meshlink_open("channels_fork_conf.1", "foo", "channels-fork", DEV_CLASS_BACKBONE);
        assert(mesh);
 
        meshlink_enable_discovery(mesh, false);
@@ -147,7 +147,7 @@ static int main2(int rfd, int wfd) {
        meshlink_set_log_cb(NULL, MESHLINK_DEBUG, log_cb);
 
        assert(meshlink_destroy("channels_fork_conf.2"));
-       meshlink_handle_t *mesh = meshlink_open("channels_fork_conf.2", "bar", "channels", DEV_CLASS_BACKBONE);
+       meshlink_handle_t *mesh = meshlink_open("channels_fork_conf.2", "bar", "channels-fork", DEV_CLASS_BACKBONE);
        assert(mesh);
 
        meshlink_enable_discovery(mesh, false);
@@ -186,7 +186,7 @@ static void alarm_handler(int sig) {
        assert(0);
 }
 
-int main() {
+int main(void) {
        int fda[2], fdb[2];
 
        assert(pipe2(fda, 0) != -1);