From 01817988f4631bdd8ee5cec9c6b69039712a93fe Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Tue, 23 Apr 2024 07:39:59 -0700 Subject: Move the rest of the functionality from platform.h into core. This also deprecates supplemental/util/platform.h. --- tests/pipe.c | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'tests/pipe.c') diff --git a/tests/pipe.c b/tests/pipe.c index c2d1f06c..665018b0 100644 --- a/tests/pipe.c +++ b/tests/pipe.c @@ -1,5 +1,5 @@ // -// Copyright 2021 Staysail Systems, Inc. +// Copyright 2024 Staysail Systems, Inc. // Copyright 2018 Capitar IT Group BV // // This software is supplied under the terms of the MIT License, a @@ -14,7 +14,6 @@ #include #include #include -#include #include "convey.h" #include "stubs.h" @@ -34,8 +33,8 @@ struct testcase { int rem; int err; int rej; - nng_mtx * lk; - nng_cv * cv; + nng_mtx *lk; + nng_cv *cv; }; static bool @@ -114,7 +113,6 @@ char addr[64]; static int cnt; TestMain("Pipe notify works", { - Convey("We can create a pipeline", { struct testcase push; struct testcase pull; @@ -161,10 +159,10 @@ TestMain("Pipe notify works", { So(nng_dialer_create(&push.d, push.s, addr) == 0); So(nng_listener_id(pull.l) > 0); So(nng_dialer_id(push.d) > 0); - So(nng_dialer_set_ms( - push.d, NNG_OPT_RECONNMINT, 10) == 0); - So(nng_dialer_set_ms( - push.d, NNG_OPT_RECONNMAXT, 10) == 0); + So(nng_dialer_set_ms(push.d, NNG_OPT_RECONNMINT, 10) == + 0); + So(nng_dialer_set_ms(push.d, NNG_OPT_RECONNMAXT, 10) == + 0); So(nng_listener_start(pull.l, 0) == 0); So(nng_dialer_start(push.d, 0) == 0); So(expect(&pull, &pull.add_pre, 1)); -- cgit v1.2.3-70-g09d2