Running GoogleTest project with threads on FreeRTOS Win32 simulator

alexkushnir wrote on Tuesday, September 24, 2019:

Hello.
We are trying to setup a test framework for our project that is intended to run on FreeRTOS10.0.0 on Xilinx Z7020 chip
We are planning to setup the test framework on Windows using the Win32 simulator.
However, when I am trying to run the vStopScheduler function, the process exits.
Browsing the code, I found that in Windows port, TerminateProcess function is called from the vStopScheduler.
This does not suitbour needs, as we need to return to the calling thread.
Did anyone experience such a behavior and is able to help?
Thanks,
Alex

rtel wrote on Tuesday, September 24, 2019:

This is not something I’ve ever done on the Windows port, but if you
provide a suitable update that does what you need then we can
incorporate it into the code. Note that the Windows port does not
recover all memory when a task is deleted - not sure if that impacts
your use case or not - you would have to create and delete many
thousands of tasks before you saw any impact.

alexkushnir wrote on Tuesday, September 24, 2019:

Thank you for your reply.
I am not familiar with Windows API, but I wonder if it is possible at all