~compiz-team/compiz/0.9.10

Viewing all changes in revision 3694.

  • Committer: Tarmac
  • Author(s): Sam Spilsbury
  • Date: 2013-05-12 11:40:44 UTC
  • mfrom: (3688.2.5 compiz.fix_1178514)
  • Revision ID: tarmac-20130512114044-j9bqk1b9nieca20h
Try to launch tests on another server if there's tests running in parallel.

Provide our own compiz_xorg_gtest_main and subclass xorg::testing::Environment
to try and launch tests on another display if there's tests running on
one already.

This isn't by any means perfect - there are still race conditions
surrounding XOpenDisplay and parallel test runs but it makes a more smaller
time gap for conditions such as:
 1. Client has a server grab on the display we're checking
    and won't let go.
 2. Two servers get launched on one port and one set of tests
    interfere with the other.

It also means that we're now unable to configure the display port,
log file and config file on the command line. But we weren't using that
anyways.

Finally, the logs now point to /tmp/Compiz.Xorg.GTest.displaynum.log

(LP: #1178514). Fixes: https://bugs.launchpad.net/bugs/1178514.

Approved by Sam Spilsbury, PS Jenkins bot, MC Return.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: