I don't see any reason for the virtx in CMake tests. I have machines that run the nightly test suite every day, which don't have any X server (a T5120 doesn't even have a monitor plug). When I remove the virtx I can run the testsuite through ebuild also without problems. I don't think there really is any test that requires X, and if it does the virtx usage should probably depend on the "qt5" use flag.
The bug has been closed via the following commit(s):
Author: Michael Palimaka <firstname.lastname@example.org>
AuthorDate: 2017-10-19 10:36:33 +0000
Commit: Michael Palimaka <email@example.com>
CommitDate: 2017-10-19 10:36:47 +0000
dev-util/cmake: virtualx is not required for tests
Package-Manager: Portage-2.3.8, Repoman-2.3.3
dev-util/cmake/cmake-3.9.4.ebuild | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
Author: Lars Wendler <firstname.lastname@example.org>
Date: Thu Oct 19 15:36:17 2017 +0200
Revert "dev-util/cmake: virtualx is not required for tests"
This reverts commit 7b5d2bedf7dee3fd132ea3346bca0cc519d5c368.
virtualx is still required for at least 11 tests.