Closed Raffaello closed 4 months ago
Hi, could you provide (step-by-step) the command-line you're using to generate & build the CMake projects, along with any relevant environment variables etc.
MSYS2 isn't officially supported, but if you can provide easy repro instructions I can see if there's a quick fix.
Hi, could you provide (step-by-step) the command-line you're using to generate & build the CMake projects, along with any relevant environment variables etc.
MSYS2 isn't officially supported, but if you can provide easy repro instructions I can see if there's a quick fix.
Hi @higher-performance,
I have moved on using a work-around and installing a signal handler for those specific tests so i can test that they return that specific exit code from the signal handler, basically redesigned a little the test.
Besides,
No real special environment vairables, nor either fancy CMAKE settings. If asking about googletest
itself, i just downloaded&instaled from MSYS2
package manager.
Ah okay thanks, in that case I'll close this then since you moved on. Thanks for the update.
Describe the issue
compiling is causing member not found.
looking at the source code here: https://github.com/google/googletest/blob/v1.14.0/googletest/src/gtest-death-test.cc#L187-L203
it looks like is missing a define if
(OS_WINDOWS && !MINGW)
or maybe!defined(__GCC)
as mingw has signal handlers like unix/linuSteps to reproduce the problem
for e.g. just use an
ASSERT_EXIT
on a windows (using GCC through MinGW)What version of GoogleTest are you using?
1.13
but just checked on 1.14 and it looks like similar
What operating system and version are you using?
Windows 11,
What compiler and version are you using?
What build system are you using?
Additional context
i think it is only a matter of considering mingw when OS_WINDOWS macro is defined, mostly. at least as a shallow overview.