Page MenuHomePhabricator

Graphical unit tests fail on some linux setups
Closed, ResolvedPublic

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.

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.May 5 2020, 4:10 PM
nolden added a revision: Restricted Differential Revision.May 7 2020, 1:26 PM