Skip to content

Commit

Permalink
IPC test - note which ones skipped.
Browse files Browse the repository at this point in the history
  • Loading branch information
gdamore committed Nov 5, 2024
1 parent 1f9ee60 commit 39f718d
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/sp/transport/ipc/ipc_test.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright 2020 Staysail Systems, Inc. <info@staysail.tech>
// Copyright 2024 Staysail Systems, Inc. <info@staysail.tech>
// Copyright 2018 Cody Piersall <cody.piersall@gmail.com>
//
// This software is supplied under the terms of the MIT License, a
Expand Down Expand Up @@ -203,6 +203,8 @@ test_abstract_sockets(void)
NUTS_RECV(s2, "ping");
NUTS_CLOSE(s1);
NUTS_CLOSE(s2);
#else
NUTS_SKIP("No abstract sockets.");
#endif
}

Expand Down Expand Up @@ -250,6 +252,8 @@ test_abstract_auto_bind(void)

NUTS_CLOSE(s1);
NUTS_CLOSE(s2);
#else
NUTS_SKIP("No abstract sockets.");
#endif
}

Expand All @@ -273,6 +277,8 @@ test_abstract_too_long(void)
NUTS_FAIL(nng_dial(s1, addr, NULL, NNG_FLAG_NONBLOCK), NNG_EADDRINVAL);

NUTS_CLOSE(s1);
#else
NUTS_SKIP("No abstract sockets.");
#endif
}

Expand Down Expand Up @@ -325,6 +331,8 @@ test_abstract_null(void)

NUTS_CLOSE(s1);
NUTS_CLOSE(s2);
#else
NUTS_SKIP("No abstract sockets.");
#endif
}

Expand Down Expand Up @@ -374,6 +382,8 @@ test_unix_alias(void)

NUTS_CLOSE(s1);
NUTS_CLOSE(s2);
#else
NUTS_SKIP("Not POSIX.");
#endif
}

Expand Down Expand Up @@ -427,6 +437,8 @@ test_ipc_pipe_peer(void)
nng_msg_free(msg);
NUTS_CLOSE(s0);
NUTS_CLOSE(s1);
#else
NUTS_SKIP("Not POSIX.")
#endif // NNG_PLATFORM_POSIX
}

Expand Down

0 comments on commit 39f718d

Please sign in to comment.