# Running GoogleTest project with threads on FreeRTOS Win32 simulator

**URL:** <https://forums.freertos.org/t/running-googletest-project-with-threads-on-freertos-win32-simulator/8078>\
**Category:** Kernel\
**Created:** [September 24, 2019, 2:30pm UTC](https://forums.freertos.org/t/running-googletest-project-with-threads-on-freertos-win32-simulator/8078 "2019-09-24T14:30:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [September 24, 2019, 2:30pm UTC](https://forums.freertos.org/t/running-googletest-project-with-threads-on-freertos-win32-simulator/8078/1 "2019-09-24T14:30:18Z")

</div>

**[alexkushnir](https://sourceforge.net/u/alexkushnir/)** wrote on [Tuesday, September 24, 2019](https://sourceforge.net/p/freertos/discussion/382005/thread/c89ad1f79f/#7958):

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

---

<div class="post-metadata">

**Author:** ![rtel](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/rtel/32/31_2.png) [@rtel](https://forums.freertos.org/u/rtel)\
**Post date:** [September 24, 2019, 2:34pm UTC](https://forums.freertos.org/t/running-googletest-project-with-threads-on-freertos-win32-simulator/8078/2 "2019-09-24T14:34:30Z")

</div>

**[rtel](https://sourceforge.net/u/rtel/)** wrote on [Tuesday, September 24, 2019](https://sourceforge.net/p/freertos/discussion/382005/thread/c89ad1f79f/#7958/30c7):

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.

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [September 24, 2019, 2:42pm UTC](https://forums.freertos.org/t/running-googletest-project-with-threads-on-freertos-win32-simulator/8078/3 "2019-09-24T14:42:11Z")

</div>

**[alexkushnir](https://sourceforge.net/u/alexkushnir/)** wrote on [Tuesday, September 24, 2019](https://sourceforge.net/p/freertos/discussion/382005/thread/c89ad1f79f/#9ca8):

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