PlatformIO Community

Error code 3221225785 when starting native tests on windows platform on GitHub Actions

Hello, unit tests(based on googletest) doesn’t complete correctly on Windows. I’m so confused, because on linux and Mac them working correctly. Error code: 3221225785
GitHub Actions log: action: Remove "working_directory" in codeql-analdysis.yml · Michal123456747/Smart-Home-MGM@d30d6dc · GitHub

There recently was a change in requirements for the unit test code per Code coverage issue on native - #28 by ivankravets. The updated examples also reflects this.

When I write your test_UnitTests/Setup.cpp to

#include <gmock/gmock.h>

TEST(DummyTest, ShouldPass)
{
    EXPECT_EQ(1, 1);
}

int main(int argc, char **argv)
{
    ::testing::InitGoogleMock(&argc, argv);

    if(RUN_ALL_TESTS());

    return 0;
}

everything passes.

1 Like

Unfortunately changing script didn’t help.

Yes, we also disabled our internal unit testing on Github CI for GoogleTest. See

It looks like an issue with the GCC compiler on Windows. Could anyone help us to investigate this issue?