Mir

Merge lp:~vanvugt/mir/fix-1472911 into lp:mir

Proposed by Daniel van Vugt
Status: Merged
Approved by: Daniel van Vugt
Approved revision: no longer in the source branch.
Merged at revision: 2736
Proposed branch: lp:~vanvugt/mir/fix-1472911
Merge into: lp:mir
Diff against target: 10 lines (+1/-1)
1 file modified
tests/mir_test_framework/main.cpp (+1/-1)
To merge this branch: bzr merge lp:~vanvugt/mir/fix-1472911
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Kevin DuBois (community) Approve
Alexandros Frantzis (community) Approve
Review via email: mp+264235@code.launchpad.net

Commit message

mir_unit_tests et al: Don't blindly return success every time. Instead
return the actual test result in your return code back to ctest.
(LP: #1472911)

Description of the change

The default return value of an int function is always zero (success). Although I thought we were using sufficient compiler options for mistakes like this to be detected.... ?

To post a comment you must log in.
Revision history for this message
Alexandros Frantzis (afrantzis) wrote :

Looks good.

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Kevin DuBois (kdub) wrote :

I would have thought the compiler would have complained too... regardless, lgtm too

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tests/mir_test_framework/main.cpp'
2--- tests/mir_test_framework/main.cpp 2015-06-25 15:47:46 +0000
3+++ tests/mir_test_framework/main.cpp 2015-07-10 03:30:46 +0000
4@@ -26,5 +26,5 @@
5 // Override this standard gtest message
6 std::cout << "Running main() from " << basename(__FILE__) << std::endl;
7
8- mir_test_framework::main(argc, argv);
9+ return mir_test_framework::main(argc, argv);
10 }

Subscribers

People subscribed via source and target branches