From 43ec833c7c2c151bafa7f1434905f51feebab4c0 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Sat, 13 Sep 2014 16:56:50 +0200 Subject: [PATCH] Add devclass argument to calls to meshlink_open() in all tests. --- test/basic.c | 4 ++-- test/basicpp.cpp | 4 ++-- test/channels.c | 4 ++-- test/import-export.c | 4 ++-- test/invite-join.c | 4 ++-- test/sign-verify.c | 4 ++-- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/test/basic.c b/test/basic.c index 002c5769..626d06f6 100644 --- a/test/basic.c +++ b/test/basic.c @@ -6,7 +6,7 @@ int main(int argc, char *argv[]) { // Open a new meshlink instance. - meshlink_handle_t *mesh = meshlink_open("basic_conf", "foo", "basic"); + meshlink_handle_t *mesh = meshlink_open("basic_conf", "foo", "basic", DEV_CLASS_BACKBONE); if(!mesh) { fprintf(stderr, "Could not initialize configuration for foo\n"); return 1; @@ -46,7 +46,7 @@ int main(int argc, char *argv[]) { // Check that the name is ignored now, and that we still are "foo". - mesh = meshlink_open("basic_conf", "bar", "basic"); + mesh = meshlink_open("basic_conf", "bar", "basic", DEV_CLASS_BACKBONE); if(!mesh) { fprintf(stderr, "Could not open configuration for foo a second time\n"); return 1; diff --git a/test/basicpp.cpp b/test/basicpp.cpp index e1c10366..548812c0 100644 --- a/test/basicpp.cpp +++ b/test/basicpp.cpp @@ -8,7 +8,7 @@ using namespace std; int main(int argc, char *argv[]) { // Open a new meshlink instance. - meshlink::mesh *mesh = meshlink::open("basicpp_conf", "foo", "basicpp"); + meshlink::mesh *mesh = meshlink::open("basicpp_conf", "foo", "basicpp", DEV_CLASS_BACKBONE); if(!mesh) { cerr << "Could not initialize configuration for foo\n"; return 1; @@ -48,7 +48,7 @@ int main(int argc, char *argv[]) { // Check that the name is ignored now, and that we still are "foo". - mesh = meshlink::open("basic_conf", "bar", "basicpp"); + mesh = meshlink::open("basic_conf", "bar", "basicpp", DEV_CLASS_BACKBONE); if(!mesh) { cerr << "Could not open configuration for foo a second time\n"; return 1; diff --git a/test/channels.c b/test/channels.c index 280902cb..4a96541f 100644 --- a/test/channels.c +++ b/test/channels.c @@ -35,13 +35,13 @@ bool accept_cb(meshlink_handle_t *mesh, meshlink_channel_t *channel, meshlink_no int main(int argc, char *argv[]) { // Open two new meshlink instance. - meshlink_handle_t *mesh1 = meshlink_open("channels_conf.1", "foo", "channels"); + meshlink_handle_t *mesh1 = meshlink_open("channels_conf.1", "foo", "channels", DEV_CLASS_BACKBONE); if(!mesh1) { fprintf(stderr, "Could not initialize configuration for foo\n"); return 1; } - meshlink_handle_t *mesh2 = meshlink_open("channels_conf.2", "bar", "channels"); + meshlink_handle_t *mesh2 = meshlink_open("channels_conf.2", "bar", "channels", DEV_CLASS_BACKBONE); if(!mesh2) { fprintf(stderr, "Could not initialize configuration for bar\n"); return 1; diff --git a/test/import-export.c b/test/import-export.c index f2229589..546ad757 100644 --- a/test/import-export.c +++ b/test/import-export.c @@ -15,13 +15,13 @@ void status_cb(meshlink_handle_t *mesh, meshlink_node_t *node, bool reachable) { int main(int argc, char *argv[]) { // Open two new meshlink instance. - meshlink_handle_t *mesh1 = meshlink_open("import_export_conf.1", "foo", "import-export"); + meshlink_handle_t *mesh1 = meshlink_open("import_export_conf.1", "foo", "import-export", DEV_CLASS_BACKBONE); if(!mesh1) { fprintf(stderr, "Could not initialize configuration for foo\n"); return 1; } - meshlink_handle_t *mesh2 = meshlink_open("import_export_conf.2", "bar", "import-export"); + meshlink_handle_t *mesh2 = meshlink_open("import_export_conf.2", "bar", "import-export", DEV_CLASS_BACKBONE); if(!mesh2) { fprintf(stderr, "Could not initialize configuration for bar\n"); return 1; diff --git a/test/invite-join.c b/test/invite-join.c index a7bee95c..c0fe067d 100644 --- a/test/invite-join.c +++ b/test/invite-join.c @@ -15,13 +15,13 @@ void status_cb(meshlink_handle_t *mesh, meshlink_node_t *node, bool reachable) { int main(int argc, char *argv[]) { // Open two new meshlink instance. - meshlink_handle_t *mesh1 = meshlink_open("invite_join_conf.1", "foo", "invite-join"); + meshlink_handle_t *mesh1 = meshlink_open("invite_join_conf.1", "foo", "invite-join", DEV_CLASS_BACKBONE); if(!mesh1) { fprintf(stderr, "Could not initialize configuration for foo\n"); return 1; } - meshlink_handle_t *mesh2 = meshlink_open("invite_join_conf.2", "bar", "invite-join"); + meshlink_handle_t *mesh2 = meshlink_open("invite_join_conf.2", "bar", "invite-join", DEV_CLASS_BACKBONE); if(!mesh2) { fprintf(stderr, "Could not initialize configuration for bar\n"); return 1; diff --git a/test/sign-verify.c b/test/sign-verify.c index 6c7ccfec..028d8021 100644 --- a/test/sign-verify.c +++ b/test/sign-verify.c @@ -8,13 +8,13 @@ int main(int argc, char *argv[]) { // Open two new meshlink instance. - meshlink_handle_t *mesh1 = meshlink_open("sign_verify_conf.1", "foo", "sign-verify"); + meshlink_handle_t *mesh1 = meshlink_open("sign_verify_conf.1", "foo", "sign-verify", DEV_CLASS_BACKBONE); if(!mesh1) { fprintf(stderr, "Could not initialize configuration for foo\n"); return 1; } - meshlink_handle_t *mesh2 = meshlink_open("sign_verify_conf.2", "bar", "sign-verify"); + meshlink_handle_t *mesh2 = meshlink_open("sign_verify_conf.2", "bar", "sign-verify", DEV_CLASS_BACKBONE); if(!mesh2) { fprintf(stderr, "Could not initialize configuration for bar\n"); return 1; -- 2.39.2