From 8b8e10d54f06221c3d80ff12241f265daf8aa8d2 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Fri, 31 Jan 2025 23:30:33 -0500 Subject: [PATCH] update regex for Windows --- unittest/commands/test_simple_commands.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unittest/commands/test_simple_commands.cpp b/unittest/commands/test_simple_commands.cpp index e65390da56..e93c9183f0 100644 --- a/unittest/commands/test_simple_commands.cpp +++ b/unittest/commands/test_simple_commands.cpp @@ -418,7 +418,7 @@ TEST_F(SimpleCommandsTest, Plugin) lmp->input->one(fmt::format(loadfmt, bindir, "hello")); auto text = ::testing::internal::GetCapturedStdout(); if (verbose) std::cout << text; - ASSERT_THAT(text, ContainsRegex(".*Loading plugin: Hello world command.*")); + ASSERT_THAT(text, ContainsRegex(".*\n.*Loading plugin: Hello world command.*")); ::testing::internal::CaptureStdout(); lmp->input->one(fmt::format(loadfmt, bindir, "xxx"));