[CXX-1103] bsoncxx test binary doesn't return test status in exit code Created: 26/Oct/16 Updated: 15/Nov/16 Resolved: 28/Oct/16 |
|
| Status: | Closed |
| Project: | C++ Driver |
| Component/s: | Testing |
| Affects Version/s: | None |
| Fix Version/s: | 3.0.3 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | David Golden | Assignee: | David Golden |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
The src/bsoncxx/test/new_tests.cpp file with main doesn't return the catch test result as the exit status. To the build system it will always appear to succeed even when bsoncxx tests are failing. Here is an example from work-in-progress test-driven development:
The bsoncxx test CMakeLists.txt should be modified to match the mongocxx test CMakeLists.txt file which links the main.cpp file in the catch directory. |
| Comments |
| Comment by Githook User [ 08/Nov/16 ] |
|
Author: {u'username': u'xdg', u'name': u'David Golden', u'email': u'xdg@xdg.me'}Message: The bsoncxx test binary wasn't returning test status in its exit code. This commit replaces the buggy custom main() function with the standard |
| Comment by Githook User [ 28/Oct/16 ] |
|
Author: {u'username': u'xdg', u'name': u'David Golden', u'email': u'xdg@xdg.me'}Message: The bsoncxx test binary wasn't returning test status in its exit code. This commit replaces the buggy custom main() function with the standard |
| Comment by David Golden [ 26/Oct/16 ] |