File tree Expand file tree Collapse file tree 3 files changed +21
-3
lines changed Expand file tree Collapse file tree 3 files changed +21
-3
lines changed Original file line number Diff line number Diff line change @@ -1552,6 +1552,17 @@ test_framework_skip_if_windows (void)
1552
1552
}
1553
1553
1554
1554
1555
+ int
1556
+ test_framework_skip_if_apple (void )
1557
+ {
1558
+ #ifdef __APPLE__
1559
+ return false;
1560
+ #else
1561
+ return true;
1562
+ #endif
1563
+ }
1564
+
1565
+
1555
1566
/* skip if no Unix domain socket */
1556
1567
int
1557
1568
test_framework_skip_if_no_uds (void )
Original file line number Diff line number Diff line change @@ -128,6 +128,8 @@ test_framework_skip_if_single (void);
128
128
int
129
129
test_framework_skip_if_windows (void );
130
130
int
131
+ test_framework_skip_if_apple (void );
132
+ int
131
133
test_framework_skip_if_no_uds (void ); /* skip if no Unix domain socket */
132
134
int
133
135
test_framework_skip_if_not_mongos (void );
Original file line number Diff line number Diff line change @@ -318,7 +318,7 @@ sendv_test_client (void *data_)
318
318
319
319
320
320
static void
321
- test_mongoc_socket_check_closed (void )
321
+ test_mongoc_socket_check_closed (void * ctx )
322
322
{
323
323
socket_test_data_t data = {0 };
324
324
mongoc_thread_t threads [2 ];
@@ -342,6 +342,7 @@ test_mongoc_socket_check_closed (void)
342
342
mongoc_cond_destroy (& data .cond );
343
343
}
344
344
345
+
345
346
static void
346
347
test_mongoc_socket_sendv (void * ctx )
347
348
{
@@ -370,8 +371,12 @@ test_mongoc_socket_sendv (void *ctx)
370
371
void
371
372
test_socket_install (TestSuite * suite )
372
373
{
373
- TestSuite_Add (
374
- suite , "/Socket/check_closed" , test_mongoc_socket_check_closed );
374
+ TestSuite_AddFull (suite ,
375
+ "/Socket/check_closed" ,
376
+ test_mongoc_socket_check_closed ,
377
+ NULL ,
378
+ NULL ,
379
+ test_framework_skip_if_apple );
375
380
TestSuite_AddFull (suite ,
376
381
"/Socket/sendv" ,
377
382
test_mongoc_socket_sendv ,
You can’t perform that action at this time.
0 commit comments