[CXX-385] Client tests can pass, when they can't possibly pass Created: 29/Oct/14  Updated: 13/Nov/14  Resolved: 06/Nov/14

Status: Closed
Project: C++ Driver
Component/s: None
Affects Version/s: None
Fix Version/s: legacy-1.0.0-rc2

Type: Bug Priority: Major - P3
Reporter: Spencer Jackson Assignee: Spencer Jackson
Resolution: Done Votes: 0
Labels: legacy-cxx
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Success is dependent on the OR of all returns. If any pass, the suite passes. These codes should be ANDed instead.



 Comments   
Comment by Githook User [ 06/Nov/14 ]

Author:

{u'username': u'spencerjackson', u'name': u'Spencer Jackson', u'email': u'spencer.jackson@mongodb.com'}

Message: CXX-385 Use trap to respond to test failures
Branch: legacy
https://github.com/mongodb/mongo-cxx-driver/commit/408662e7b1286a65e96445e9704eaccaf8877e5c

Comment by Spencer Jackson [ 03/Nov/14 ]

It turns out that the && and || operators are more intended for conditional execution of commands, and don't seem usable for combining error codes, after the fact.

Comment by Spencer Jackson [ 03/Nov/14 ]

https://github.com/mongodb/mongo-cxx-driver/pull/189

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