From 85cf995af7442d3280f0dbb3b634a8d7b18d68de Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Mon, 26 Feb 2024 13:12:12 +0000 Subject: [PATCH] testsuite: Force Mesa to use software GL when asserting about stderr In an autobuilder environment, there will typically be no hardware GPU available, so Mesa will fall back from hardware to Zink to software rendering. Unfortunately, Zink logs to stderr during loading if no hardware GPUs are available. This particular test asserts that stderr has desired contents, which means Zink's extra output causes the test to fail. We can bypass this by disabling use of Zink. Resolves: https://gitlab.gnome.org/GNOME/gtk/-/issues/6478 Signed-off-by: Simon McVittie --- testsuite/tools/validate | 3 +++ 1 file changed, 3 insertions(+) diff --git a/testsuite/tools/validate b/testsuite/tools/validate index 414a5053b3..35e3489f1e 100755 --- a/testsuite/tools/validate +++ b/testsuite/tools/validate @@ -4,6 +4,9 @@ GTK_BUILDER_TOOL=${GTK_BUILDER_TOOL:-gtk4-builder-tool} TEST_DATA_DIR=${G_TEST_SRCDIR:-.}/validate-data TEST_RESULT_DIR=${TEST_RESULT_DIR:-/tmp}/validate +# https://gitlab.freedesktop.org/mesa/mesa/-/issues/10293 +export LIBGL_ALWAYS_SOFTWARE=true + mkdir -p "$TEST_RESULT_DIR" shopt -s nullglob