[CDRIVER-742] Enable mock server tests on Solaris Created: 14/Jul/15  Updated: 12/Aug/15  Resolved: 17/Jul/15

Status: Closed
Project: C Driver
Component/s: libmongoc, tests
Affects Version/s: 1.2.0
Fix Version/s: 1.2-beta0

Type: Improvement Priority: Minor - P4
Reporter: A. Jesse Jiryu Davis Assignee: A. Jesse Jiryu Davis
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: C Driver in Evergreen

 Description   

get_port() in mock_server.c often fails on Solaris (tested on Solaris 11 specifically in Evergreen), logging "Failed to get listening port number: Socket operation on non-socket". This leads to test failures so I've disabled the mock server tests on Solaris.

It would be nice to determine what's wrong with the mock server test framework on Solaris and reënable the tests.



 Comments   
Comment by Githook User [ 17/Jul/15 ]

Author:

{u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}

Message: CDRIVER-742 fix mock server tests on solaris

The non-static "get_port" function conflicted with a symbol in Cyrus SASL.
sasl_client_init called it by accident in _mongoc_init_ctor, before main().
Branch: 1.2.0-dev
https://github.com/mongodb/mongo-c-driver/commit/5fe9f153d2f082e048da3cf473f1e9c73cd76e93

Comment by Githook User [ 17/Jul/15 ]

Author:

{u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}

Message: Revert "CDRIVER-742 disable mock server tests on Solaris"

This reverts commit 651fb897e0d489958f3b832ffa7147d151d5323e.

Conflicts:
tests/test-mongoc-collection.c
Branch: 1.2.0-dev
https://github.com/mongodb/mongo-c-driver/commit/206fb2d3c093b970f99d506dd1d86029c89c77a6

Comment by Githook User [ 17/Jul/15 ]

Author:

{u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}

Message: disable more mock server tests on solaris

Until CDRIVER-742 is fixed.
Branch: 1.2.0-dev
https://github.com/mongodb/mongo-c-driver/commit/1429062e97fa261a9319f3f08f0d20e699896dad

Generated at Wed Feb 07 21:10:29 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.