Skip to content
Snippets Groups Projects
Verified Commit 4f74ceb9 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Testsuite: fix issue with Octave in a Wayland desktop session

If under a Wayland desktop session, some graphics would be displayed on the
screen, despite Octave being run in the virtual X11 frame buffer (xvfb).
Moreover, some unexplained random crashes would occur.

This commit ensures that Wayland is never used when running the testsuite.

By the way, add a command to explain why xvfb-run is needed and the
--no-window-system option cannot be run (see commit
96346b77).
parent cc7c0243
No related branches found
No related tags found
No related merge requests found
......@@ -99,6 +99,10 @@ for test_file in "${test_files[@]}"; do
if [[ $build_for == matlab ]]; then
"$matlab_octave_exe" "${matlab_batch_flags[@]}" "$test_arg"
else
unset XDG_SESSION_TYPE # Ensure that Wayland will not be used if in a desktop session
# We cannot use the --no-window-system option, and we have to use xvfb
# See the following Octave bug: https://savannah.gnu.org/bugs/?62101
# (this affects at least tests/shock_decomposition/ls2003_plot.mod)
xvfb-run -a "$matlab_octave_exe" --no-init-file --silent --no-history "$test_arg"
fi
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment