GNOME Bugzilla – Bug 750688
tests: Run under Xvfb
Last modified: 2015-06-10 16:17:02 UTC
With no display server running, the Gtk test fails (/build/gjs-YHnosX/gjs-1.43.3/.libs/lt-jsunit:17796): Gtk-WARNING **: cannot open display: Terminated I cribbed these rules from gtk3 to run the testsuite under Xvfb.
Created attachment 304923 [details] [review] tests: Run under Xvfb To isolate from the user's X session, and also so that we work properly in chroots or other minimal environments.
Review of attachment 304923 [details] [review]: At some point it'd be good to have this be an explicitly shared/shareable includeable Makefile-xfvb-utils.am or so, but for now, fine by me. Note also https://wiki.gnome.org/Initiatives/GnomeGoals/InstalledTests
Went ahead and pushed it. I think we hit the same issue at Endless. It's disappointing that our test suite now relies on GTK+ and X11, but c'est la vie I suppose.
Thanks. It'd be good to have some kind of get-me-a-display-server thing that abstracts over X/Wayland(/Mir), I guess. And indeed, I think it's only the "Gtk" test that requires this - so that could be split out into its own binary.