Create test for thread creation on Windows
completed by: Skriptkid
mentors: Sean
This is a follow-on of a previous GCI task:
- http://www.google-melange.com/gci/task/view/google/gci2012/8030203
Your task is to test whether that thread creation actually works correctly. Write a small test program that calls bu_parallel() and calls a function N times.
You can submit this as a partial unit test for parallel.c by adding a new test file similar to several other existing files. You can write the test on any platform, but ideally you'll have access to a clean Windows build so that you can specifically test the new Windows thread creation.
Code:
- src/libbu/tests/CMakeLists.txt
- src/libbu/tests/test_parallel.c <-- you write this, test bu_parallel()