Skip to content

Commit 3cbcd09

Browse files
update cases
1 parent 5e9d512 commit 3cbcd09

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

code/tests/cases/test_network.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ FOSSIL_TEST_CASE(c_test_nstream_connect_invalid_host) {
5959
fossil_nstream_destroy(stream);
6060
}
6161

62+
#if !defined(_WIN32) && !defined(_WIN64)
6263
FOSSIL_TEST_CASE(c_test_nstream_listen_and_accept) {
6364
fossil_nstream_t *server = fossil_nstream_create("tcp", "server");
6465
ASSUME_NOT_CNULL(server);
@@ -116,6 +117,7 @@ FOSSIL_TEST_CASE(c_test_nstream_send_and_receive) {
116117
fossil_nstream_destroy(accepted_client);
117118
fossil_nstream_destroy(server);
118119
}
120+
#endif
119121

120122
FOSSIL_TEST_CASE(c_test_nstream_protocols) {
121123
const char *protocols[] = {"tcp", "udp", "raw", "icmp", "sctp", "http", "https", "ftp", "ssh", "dns", "ntp", "smtp", "pop3", "imap", "ldap", "mqtt"};

code/tests/cases/test_network.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ FOSSIL_TEST(cpp_test_nstream_connect_invalid_host) {
5959
fossil_nstream_destroy(stream);
6060
}
6161

62+
#ifndef _WIN32
6263
FOSSIL_TEST(cpp_test_nstream_listen_and_accept) {
6364
fossil_nstream_t *server = fossil_nstream_create("tcp", "server");
6465
ASSUME_NOT_CNULL(server);
@@ -122,6 +123,7 @@ FOSSIL_TEST(cpp_test_nstream_send_and_receive) {
122123
fossil_nstream_destroy(accepted_client);
123124
fossil_nstream_destroy(server);
124125
}
126+
#endif
125127

126128
FOSSIL_TEST(cpp_test_nstream_protocols) {
127129
const char *protocols[] = {"tcp", "udp", "raw", "icmp", "sctp", "http", "https", "ftp", "ssh", "dns", "ntp", "smtp", "pop3", "imap", "ldap", "mqtt"};
@@ -168,6 +170,7 @@ FOSSIL_TEST(cpp_test_nstream_class_connect_invalid_host) {
168170
}
169171
}
170172

173+
#ifndef _WIN32
171174
FOSSIL_TEST(cpp_test_nstream_class_listen_and_accept) {
172175
using namespace fossil::io;
173176

@@ -205,6 +208,7 @@ FOSSIL_TEST(cpp_test_nstream_class_send_and_receive) {
205208

206209
delete accepted_client;
207210
}
211+
#endif
208212

209213
// * * * * * * * * * * * * * * * * * * * * * * * *
210214
// * Fossil Logic Test Pool

0 commit comments

Comments
 (0)