From d51ce704d96819c8de315b3a94cd4db504f001e2 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Sun, 26 Dec 2021 09:16:22 -0700 Subject: [PATCH] gui: don't use win32 gui subsystem in test configuration We won't see test output in that case, because the tests won't be able to write to the console! --- wezterm-gui/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wezterm-gui/src/main.rs b/wezterm-gui/src/main.rs index 5276d7ebc..ee62cfbb6 100644 --- a/wezterm-gui/src/main.rs +++ b/wezterm-gui/src/main.rs @@ -1,5 +1,5 @@ // Don't create a new standard console window when launched from the windows GUI. -#![windows_subsystem = "windows"] +#![cfg_attr(not(test), windows_subsystem = "windows")] use crate::frontend::front_end; use ::window::*;