Skip to content

Commit 38ae108

Browse files
committed
CDRIVER-643: Fix ‘test_mongoc_tls_hangup’ defined but not used
1 parent 799bc15 commit 38ae108

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tests/test-mongoc-stream-tls-error.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,11 @@ ssl_error_server (void *ptr)
9696
return NULL;
9797
}
9898

99+
100+
#define TRUST_DIR "tests/trust_dir"
101+
#define PEMFILE_NOPASS TRUST_DIR "/keys/mongodb.com.pem"
102+
103+
#if !defined(__sun)
99104
/** run as a child thread by test_mongoc_tls_hangup
100105
*
101106
* It:
@@ -165,9 +170,6 @@ ssl_hangup_client (void *ptr)
165170
return NULL;
166171
}
167172

168-
#define TRUST_DIR "tests/trust_dir"
169-
#define PEMFILE_NOPASS TRUST_DIR "/keys/mongodb.com.pem"
170-
171173
static void
172174
test_mongoc_tls_hangup (void)
173175
{
@@ -210,6 +212,7 @@ test_mongoc_tls_hangup (void)
210212
ASSERT (cr.result == SSL_TEST_SUCCESS);
211213
ASSERT (sr.result == SSL_TEST_SUCCESS);
212214
}
215+
#endif
213216

214217

215218
/** run as a child thread by test_mongoc_tls_handshake_stall

0 commit comments

Comments
 (0)