Issue reported by @TheBlueMatt in #10110
Fix test_bitcoin-qt when DISPLAY is unset #10113
pull ryanofsky wants to merge 1 commits into bitcoin:master from ryanofsky:pr/nodisp changing 2 files +28 −2-
ryanofsky commented at 9:16 PM on March 28, 2017: member
-
ebbce1268c
Fix test_bitcoin-qt when DISPLAY is unset
Issue reported by Matt Corallo <git@bluematt.me> in https://github.com/bitcoin/bitcoin/issues/10110 Fixes #10110
-
in src/qt/test/test_main.cpp:47 in ebbce1268c
42 | @@ -41,6 +43,15 @@ Q_IMPORT_PLUGIN(QCocoaIntegrationPlugin); 43 | #endif 44 | #endif 45 | 46 | +static bool UsesXcb() { 47 | + for (QObject* plugin: QPluginLoader::staticInstances()) {
theuni commented at 12:32 AM on March 29, 2017:How does this react if xcb is available but not default? For ex, if egl or wayland would otherwise be used?
ryanofsky commented at 7:02 PM on March 29, 2017:How does this react if xcb is available but not default? For ex, if egl or wayland would otherwise be used?
This is a good point, I suspect the check is broken in this case.
fanquake added the label Tests on Mar 29, 2017laanwj commented at 7:30 AM on March 29, 2017: memberI think the
make checktests should never try to use the DISPLAY (or the computer's GUI otherwise, e.g. through egl/wayland/win32/quartz/...). There's a place for tests that require rendering (usually combined with a "monkey" to mimic user interaction) but these should IMO be separate when we have them.ryanofsky commented at 7:12 PM on March 29, 2017: memberI think the make check tests should never try to use the DISPLAY (or the computer's GUI otherwise, e.g. through egl/wayland/win32/quartz/...). There's a place for tests that require rendering (usually combined with a "monkey" to mimic user interaction) but these should IMO be separate when we have them.
The test doesn't actually require any rendering, it's just failing to initialize QApplication (which must be calling some libxcb functions) and crashing on startup.
I'm closing this in favor of an alternative fix in #10117 though, which modifies "make check" to run the test under xvfb if it's available.
ryanofsky closed this on Mar 29, 2017MarcoFalke locked this on Sep 8, 2021
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-22 00:15 UTC
More mirrored repositories can be found on mirror.b10c.me