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: https://github.com/Michal123456747/Smart-Home-MGM/actions/runs/2602492049

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?

@ivankravets any updates on this? I encounter the same error. The wierd thing is sometimes it’s working sometimes not. Would you recommend to use Unity instead of Googletest for now?

I could fix this with:

Solution was to add C:\msys64\mingw64\bin;C:\msys64\usr\bin at the front of the PATH variable. In powershell:
$env:PATH = "C:\msys64\mingw64\bin;C:\msys64\usr\bin;" + $env:PATH

I also had Matlab installed as in the Stackoverflow replies.

1 Like