aboutsummaryrefslogtreecommitdiff
path: root/tests/platform.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-01-16 00:43:03 -0800
committerGarrett D'Amore <garrett@damore.org>2017-01-16 00:43:03 -0800
commit39dbff5615631522d3ef98b83141957038502c0d (patch)
tree89becbf88ebb79df9c9202450acd476bd790bde0 /tests/platform.c
parentf71209a0b429cddcd44f1f2473c49e986c9b4be7 (diff)
downloadnng-39dbff5615631522d3ef98b83141957038502c0d.tar.gz
nng-39dbff5615631522d3ef98b83141957038502c0d.tar.bz2
nng-39dbff5615631522d3ef98b83141957038502c0d.zip
Various complaints found in AppVeyor build.
Diffstat (limited to 'tests/platform.c')
-rw-r--r--tests/platform.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/platform.c b/tests/platform.c
index 0ac881d6..fb8ee2a7 100644
--- a/tests/platform.c
+++ b/tests/platform.c
@@ -66,9 +66,16 @@ notifyafter(void *arg)
nni_mtx_unlock(&na->mx);
}
+int
+nop(void)
+{
+ return (0);
+}
+
TestMain("Platform Operations", {
- int rv = nni_init(); // This is required for anything else to work
+ // This is required for anything else to work
+ int rv = nni_plat_init(nop);
Convey("Platform init worked", {
So(rv == 0);
})