Merge lp:~compiz-team/compiz/compiz.fix_1187468 into lp:compiz/0.9.10

Proposed by Sam Spilsbury
Status: Superseded
Proposed branch: lp:~compiz-team/compiz/compiz.fix_1187468
Merge into: lp:compiz/0.9.10
To merge this branch: bzr merge lp:~compiz-team/compiz/compiz.fix_1187468
Reviewer Review Type Date Requested Status
Sam Spilsbury Needs Resubmitting
Review via email: mp+167346@code.launchpad.net

This proposal has been superseded by a proposal from 2013-06-05.

Commit message

  Satisfy matchers on getProperty as soon as they are set.

  The order of evaluation for matchers in Google Mock appears to be
  undefined - this means that we can't rely on the first argument being
  matched first and the second argument being matched afterwards. In turn,
  this means that any GValue may be passed to a GValueMatch which, by a
  design flaw, is unable to handle any values of a type it does not expect
  (at least not without an API change). It will silently pass the incorrect
  type to g_type_get_* which causes internal assertion failures.

  At the moment we're just interleaving the calls to getProperty and
  get_property - that way the expectations are satisfied and go away
  as soon as they're set. This in turn means that Google Mock only
  has to traverse one matcher rather than multiple matchers.

  (LP: #1187468)

Description of the change

  Satisfy matchers on getProperty as soon as they are set.

  The order of evaluation for matchers in Google Mock appears to be
  undefined - this means that we can't rely on the first argument being
  matched first and the second argument being matched afterwards. In turn,
  this means that any GValue may be passed to a GValueMatch which, by a
  design flaw, is unable to handle any values of a type it does not expect
  (at least not without an API change). It will silently pass the incorrect
  type to g_type_get_* which causes internal assertion failures.

  At the moment we're just interleaving the calls to getProperty and
  get_property - that way the expectations are satisfied and go away
  as soon as they're set. This in turn means that Google Mock only
  has to traverse one matcher rather than multiple matchers.

  (LP: #1187468)

To post a comment you must log in.
Revision history for this message
Andrea Azzarone (azzar1) wrote :

Proposed by Sam Spilsbury 17 hours ago - Updating diff...

What??

Revision history for this message
Sam Spilsbury (smspillaz) wrote :

Launchpad is being weird. I'll resubmit this.

review: Needs Resubmitting

Unmerged revisions

Subscribers

People subscribed via source and target branches

to all changes: