Hello
Since yesterday, I am hitting issues with unit tests on the Respiraworks project I am working on.
Our unit tests run on native and use googletest with lib_compat_mode = off
. It seems something changed yesterday which upgraded googletest to v1.11, and since then unit tests fail to build:
Processing stepper in native environment
Building...
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x24): undefined reference to `main'
collect2: error: ld returned 1 exit status
*** [.pio/build/native/program] Error 1
[FAILED] Took 2.07 seconds
Fixing googletest to previous version (v1.10) in platformio.ini fixes the issue:
lib_deps =
googletest@1.10
I will attempt creating a minimal example for this soon.