Test timer-callbacks suffers from a race condition

Bug #908042 reported by Thomas Voß
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Compiz Core
Fix Released
Undecided
Sam Spilsbury

Bug Description

/tmp/GoogleTest/src/timer/tests/callbacks/src/test-timer-callbacks.cpp:260: Failure
Mock function called more times than expected - taking default action specified at:
/tmp/GoogleTest/src/timer/tests/callbacks/src/test-timer-callbacks.cpp:71:
    Function call: callback2(1)
          Returns: true
         Expected: to be called once
           Actual: called 38 times - over-saturated and active
/tmp/GoogleTest/src/timer/tests/callbacks/src/test-timer-callbacks.cpp:260: Failure
Mock function called more times than expected - taking default action specified at:
/tmp/GoogleTest/src/timer/tests/callbacks/src/test-timer-callbacks.cpp:71:
    Function call: callback2(1)
          Returns: true
         Expected: to be called once
           Actual: called 39 times - over-saturated and active
/tmp/GoogleTest/src/timer/tests/callbacks/src/test-timer-callbacks.cpp:261: Failure
Mock function called more times than expected - taking default action specified at:
/tmp/GoogleTest/src/timer/tests/callbacks/src/test-timer-callbacks.cpp:70:
    Function call: callback1(0)
          Returns: true
         Expected: to be called once
           Actual: called 20 times - over-saturated and active
/tmp/GoogleTest/src/timer/tests/callbacks/src/test-timer-callbacks.cpp:260: Failure
Mock function called more times than expected - taking default action specified at:
/tmp/GoogleTest/src/timer/tests/callbacks/src/test-timer-callbacks.cpp:71:
    Function call: callback2(1)
          Returns: true
         Expected: to be called once
           Actual: called 40 times - over-saturated and active

Related branches

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

Erm, didn't you verify the test cases passed before committing the change to GoogleTest?

Revision history for this message
Thomas Voß (thomas-voss) wrote :

Well, the unit test is not passing but the failure is related to the compiz timers. Thus, we pushed the branch and reported a bug discovered by a unit test.

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

Please check for bugs in the new unit tests. Because the old ones (before GoogleTest) pass perfectly.

Revision history for this message
Sam Spilsbury (smspillaz) wrote : Re: [Bug 908042] Re: Test timer-callbacks suffers from a race condition

On Fri, 23 Dec 2011, Daniel van Vugt wrote:

> Erm, didn't you verify the test cases passed before committing the
> change to GoogleTest?
>

It is a race condition. They pass on some machines (like mine) and not
others unfortunately.

> --
> You received this bug notification because you are a member of Compiz
> Maintainers, which is the registrant for Compiz Core.
> https://bugs.launchpad.net/bugs/908042
>
> Title:
> Test timer-callbacks suffers from a race condition
>
> Status in Compiz Core:
> New
>
> Bug description:
> /tmp/GoogleTest/src/timer/tests/callbacks/src/test-timer-callbacks.cpp:260: Failure
> Mock function called more times than expected - taking default action specified at:
> /tmp/GoogleTest/src/timer/tests/callbacks/src/test-timer-callbacks.cpp:71:
> Function call: callback2(1)
> Returns: true
> Expected: to be called once
> Actual: called 38 times - over-saturated and active
> /tmp/GoogleTest/src/timer/tests/callbacks/src/test-timer-callbacks.cpp:260: Failure
> Mock function called more times than expected - taking default action specified at:
> /tmp/GoogleTest/src/timer/tests/callbacks/src/test-timer-callbacks.cpp:71:
> Function call: callback2(1)
> Returns: true
> Expected: to be called once
> Actual: called 39 times - over-saturated and active
> /tmp/GoogleTest/src/timer/tests/callbacks/src/test-timer-callbacks.cpp:261: Failure
> Mock function called more times than expected - taking default action specified at:
> /tmp/GoogleTest/src/timer/tests/callbacks/src/test-timer-callbacks.cpp:70:
> Function call: callback1(0)
> Returns: true
> Expected: to be called once
> Actual: called 20 times - over-saturated and active
> /tmp/GoogleTest/src/timer/tests/callbacks/src/test-timer-callbacks.cpp:260: Failure
> Mock function called more times than expected - taking default action specified at:
> /tmp/GoogleTest/src/timer/tests/callbacks/src/test-timer-callbacks.cpp:71:
> Function call: callback2(1)
> Returns: true
> Expected: to be called once
> Actual: called 40 times - over-saturated and active
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/compiz-core/+bug/908042/+subscriptions
>

Changed in compiz-core:
status: New → Fix Committed
assignee: nobody → Sam Spilsbury (smspillaz)
Changed in compiz-core:
milestone: none → 0.9.7
Changed in compiz-core:
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.