[CDRIVER-1122] Don't just fork(), exec(), in the test suite Created: 18/Feb/16 Updated: 10/Aug/16 Resolved: 17/May/16 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | None |
| Affects Version/s: | 1.4.0 |
| Fix Version/s: | 1.4.0 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Hannes Magnusson | Assignee: | A. Jesse Jiryu Davis |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||
| Epic Link: | C Driver in Evergreen | ||||||||||||||||||||
| Description |
|
Currently our test suite can fork() before running the tests. We use this on *nix because we'd like to continue running the next test case, even if one of them fails, and then in the end we generate test-results.json file that is uploaded to evergreen for graphing. Prior to fork()ing though, we do a full mongoc initialization and print out a test header with the connection uri and things. On Windows, this switch doesn't do anything (and the header lies about it fork()ing). On OSX, using NativeSSL, we hit the problem of its random number generator is not fork() safe. We should unify this on all OSs by always launching a new clean process. |
| Comments |
| Comment by Githook User [ 17/May/16 ] |
|
Author: {u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}Message: On Mac with native TLS we must exec() to reseed the RNG, otherwise it |