Mir

Unit-tests sometimes non-deterministically terminate

Bug #1164226 reported by Chris Halse Rogers
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Mir
Fix Released
Medium
Chris Halse Rogers

Bug Description

The unit-tests binary will often silently terminate part-way through a run - in this case it does *not* return an error to the console.

I'm not aware of any particular test which is causing this; it does not consistently terminate at any one test. Some of the more common outputs are:

[ RUN ] AndroidInputSortedVector.count_items_at_removed_index_are_not_found
[ OK ] AndroidInputSortedVector.count_items_at_removed_index_are_not_found (0 ms)
[ RUN ] AndroidInputSortedVector.remove_beyond_end_fails
[ OK ] AndroidInputSortedVector.remove_beyond_end_fails (0 ms)
[----------] 13 tests from AndroidInputSortedVector (1 ms total)%
>
and

[ OK ] DrawPatternsTest.checkered_bad_pixel_formats (0 ms)
[----------] 6 tests from DrawPatternsTest (1 ms total)

[----------] Global test environment tear-down
[==========] 361 tests from 79 test cases ran. (427 ms total)%
>

As you can see, it often crashes between printing out the total number of tests run and the number of tests which passed.

Related branches

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

First try:
   make test
because that will print a summary including what failed in unit-tests.

Second try:
  valgrind bin/unit-tests

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Confirmed. It often exits at:
    AndroidInputSortedVector.remove_beyond_end_fails
or:
    SurfaceCreation.test_surface_move_to

But there's no sign of a failure. unit-tests just exits with return code 0.

Changed in mir:
status: New → Confirmed
importance: Undecided → Medium
Changed in mir:
status: Confirmed → In Progress
assignee: nobody → Chris Halse Rogers (raof)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

Fix committed into lp:mir at revision None, scheduled for release in mir, milestone 0.0.3

Changed in mir:
status: In Progress → Fix Committed
Changed in mir:
milestone: none → 0.0.3
Changed in mir:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.