aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJanjaap Bos <janjaap.bos@capitar.com>2018-03-23 11:26:47 +0100
committerGarrett D'Amore <garrett@damore.org>2018-03-23 06:09:10 -0700
commit69ee01320f3eda2f08e97a755512763079224e8a (patch)
tree272dd5099d4c51bf1fa02c379966f675ee5da5e6 /tests
parent53d5c2766d90a53d3f6c0437bc59c1ad63ec701a (diff)
downloadnng-69ee01320f3eda2f08e97a755512763079224e8a.tar.gz
nng-69ee01320f3eda2f08e97a755512763079224e8a.tar.bz2
nng-69ee01320f3eda2f08e97a755512763079224e8a.zip
Need to create zt home for dialer
Diffstat (limited to 'tests')
-rw-r--r--tests/zt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/zt.c b/tests/zt.c
index f0aae6e2..bb16b714 100644
--- a/tests/zt.c
+++ b/tests/zt.c
@@ -262,6 +262,7 @@ TestMain("ZeroTier Transport", {
snprintf(addr2, sizeof(addr2), "zt://%llx." NWID ":%u",
(unsigned long long) node, port);
So(nng_dialer_create(&d, s2, addr2) == 0);
+ mkdir(path2, 0700);
So(nng_dialer_setopt(
d, NNG_OPT_ZT_HOME, path2, strlen(path2) + 1) == 0);
So(nng_dialer_start(d, 0) == 0);