Test: Use a xvfb wrapper for x11 test
authorPierre Le Marre <dev@wismill.eu>
Mon, 18 Sep 2023 11:17:17 +0000 (13:17 +0200)
committerWismill <dev@wismill.eu>
Mon, 18 Sep 2023 14:07:09 +0000 (16:07 +0200)
commit26b1a07659f4fb8081190a24d9774fd74dcb1e95
treec616d246191a33cd5520d9784416a0402167e57f
parentc1b6c79abab77185fe52f4117c18377fe0e72a5d
Test: Use a xvfb wrapper for x11 test

The x11 test is currently silently skipped in CI, because it requires a
running X server.

Create a xvfb wrapper to run the test. We do not use `xvfb-run`, because
it is a shell script and it causes valgrind to detect unrelated memory
issues in the shell (dash, bash).

Improve wrapper using a special ELF section

TODO: The wrapper is intended to be used with the x11comp test as well.
meson.build
test/x11.c
test/xvfb-wrapper.c [new file with mode: 0644]
test/xvfb-wrapper.h [new file with mode: 0644]