Author :
Pierre Le Marre
Date :
2024-03-14 09:08:55
Hash :0ed9390c Message :test(x11): Do not skip test when setup fails
With the current setup, the tests passes even if there is an issue with
the setup. X11 tests are already guarded with `enable-x11=true`, so
there is no reason to skip these tests if we built the X11 support.
Meson supports the GNU convention for exit code in tests:
- 77: test skipped; already used in xkbcommon: `SKIP_TEST`.
- 99: hard error/setup failure; introduced in this commit:
`TEST_SETUP_FAILURE`.
Meson reports setup failure as `ERROR`, while a test failure is reported
as `FAIL`. In both cases it will make the CI fail, allowing us to
correctly detect any errors.
Fixed:
- Use `TEST_SETUP_FAILURE` instead of `SKIP_TEST` for X11 setup
failures.
- Xvfb wrapper: Add verbosity for debugging.