Let slic3rutils tests pass when they all run in one process (#17871)

This commit is contained in:
Kris Austin authored and GitHub committed 2026-11-26 21:01:05 -06:00
1 parent 2b15a60dce
commit f829169077
9 files changed
+113 -43

No files matched your search

@@ -12,6 +12,7 @@
#include <cstdlib>
#include <thread>
#include <vector>
#include <wx/app.h>
#include <wx/bitmap.h>
#include <wx/gdicmn.h>
#include <wx/image.h>
@@ -24,6 +25,9 @@ TEST_CASE("JPEG texture decoding coexists with thumbnails and video frames", "[T
if (!std::getenv("DISPLAY") && !std::getenv("WAYLAND_DISPLAY"))
SKIP("This integration test needs a display (for example, xvfb-run).");
#endif
// Without an app object, wx creates the GUI_App this binary links, whose destructor shuts down
// plugins and Python for every later test case.
wxApp::SetInstance(new wxApp);
wxInitializer init;
REQUIRE(init.IsOk());
wxInitAllImageHandlers();