1
0

chore: fix github action build issue

This commit is contained in:
2026-01-22 16:35:49 +08:00
parent 6449ae1977
commit aecf9bb8cc
7 changed files with 49 additions and 19 deletions

View File

@@ -8,9 +8,10 @@ namespace yycctest::windows::console {
#if defined(YYCC_OS_WINDOWS) && defined(YYCC_STL_MSSTL)
TEST(WindowsConsole, ColorfulConsole) {
// Set colorful console should always be success.
auto rv = CONSOLE::colorful_console();
EXPECT_TRUE(rv.has_value());
// Set colorful console should always be success.
// Unless it is not a TTY.
EXPECT_TRUE(rv.has_value() || rv.error() == CONSOLE::ExecError::NotTty);
}
#endif