mirror of
https://github.com/Pithikos/C-Thread-Pool
synced 2024-11-21 21:21:23 +03:00
Small stilistic changes
This commit is contained in:
parent
ea938fcc9e
commit
bc95c0ed47
4
tests/README.md
Normal file → Executable file
4
tests/README.md
Normal file → Executable file
@ -1,13 +1,13 @@
|
||||
Tests
|
||||
------------------------------------------------------------------------
|
||||
|
||||
**Case tests**
|
||||
**Test cases**
|
||||
````
|
||||
memleaks - Will run tests for memory leaks. valgrind is being used for this.
|
||||
Notice that valgrind requires one second to init each thread.
|
||||
threadpool - Will run general functional tests for the threadpool.
|
||||
pause_resume - Will test the synchronisation of the threadpool from the user.
|
||||
wait - Will run tests to assuse that the wait() function works correctly.
|
||||
wait - Will run tests to ensure that the wait() function works correctly.
|
||||
heap_stack_garbage - Will test if previous garbage affects new threapools created.
|
||||
````
|
||||
Any test can be run with extra flags by exporting the variable COMPILATION_FLAGS. That's
|
||||
|
@ -9,7 +9,7 @@ int main(int argc, char *argv[]){
|
||||
|
||||
char* p;
|
||||
if (argc != 2){
|
||||
puts("This testfile needs excactly one arguments");
|
||||
puts("This testfile needs exactly one arguments");
|
||||
exit(1);
|
||||
}
|
||||
int num_threads = strtol(argv[1], &p, 10);
|
||||
|
Loading…
Reference in New Issue
Block a user