Page MenuHomePhabricator

Graphical unit tests fail on some linux setups
Open, HighPublic

Description

On some setups the xvfb based unit testing fails with this line at the end of the test outout:

/usr/bin/xvfb-run: line 186: kill: (3923210) - No such process

one example:

http://cdash.mitk.org/testDetails.php?test=13813420&build=726603

Revisions and Commits

rMITK MITK
Restricted Differential Revision
Restricted Differential Revision
Restricted Differential Revision
Restricted Differential Revision
Restricted Differential Revision

Event Timeline

nolden triaged this task as High priority.Apr 30 2020, 10:29 PM
nolden created this task.
nolden edited projects, added MITK (2020); removed MITK.Mon, May 4, 2:46 PM

Ok, on fedora there is a newer xvfb version which includes a new option for a more robust choice of a suitable display number which seems to fix the issue for me.

Unfortunately this option is not available on ubuntu 18.04.. To be a bit more future proof I would suggest to make the actual call to xvfb-run configurable via a CMake option and default this to the current value that works on Ubuntu

nolden added a revision: Restricted Differential Revision.Tue, May 5, 4:10 PM
nolden added a revision: Restricted Differential Revision.Thu, May 7, 1:26 PM