summaryrefslogtreecommitdiff
path: root/tests/device.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-08-12 10:16:54 -0700
committerGarrett D'Amore <garrett@damore.org>2017-08-12 10:16:54 -0700
commit9b4d9e71a63cafcee0edee734847bba28d9fea35 (patch)
treec65290fb84bf3168af439ef8e92a5f1370aa2ceb /tests/device.c
parent0584aa354014e91a9036bc51bad438e8fddaf15f (diff)
downloadnng-9b4d9e71a63cafcee0edee734847bba28d9fea35.tar.gz
nng-9b4d9e71a63cafcee0edee734847bba28d9fea35.tar.bz2
nng-9b4d9e71a63cafcee0edee734847bba28d9fea35.zip
Convenience option accesor functions.
This adds functions that know about option sizes and make them easier to use. While here I added some validation of those, and cleaned up a few tests slightly. Note that we do not need to use the nng_impl.h for most tests. More of them need to be cleaned up.
Diffstat (limited to 'tests/device.c')
-rw-r--r--tests/device.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/device.c b/tests/device.c
index e5239f25..ba0ebeca 100644
--- a/tests/device.c
+++ b/tests/device.c
@@ -9,7 +9,6 @@
//
#include "convey.h"
-#include "core/nng_impl.h"
#include "nng.h"
#include <string.h>
@@ -33,7 +32,6 @@ dodev(void *arg)
}
Main({
- nni_init();
Test("PAIRv1 device", {
const char *addr1 = "inproc://dev1";
@@ -64,7 +62,6 @@ Main({
So(nng_thread_create(&thr, dodev, &ddata) == 0);
Reset({
- printf("RESETING1\n");
nng_close(dev1);
nng_close(dev2);
nng_thread_destroy(thr);
@@ -108,5 +105,5 @@ Main({
});
});
- nni_fini();
+ nng_fini();
})