Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Unit Tests

To build the unit tests, execute:

cd unittest
gcc -O unittest.c -lm -lpthread -o unittest

(Or to compile and run with additional checks, when using clang:)

gcc -Wall -O unittest.c -lm -lpthread -fsanitize=address -o unittest 

To execute the tests, simply execute:

./unittest

If you use Microsoft Visual C++, you may need to add the following defines to your preprocessor settings:

NO_POSIX_THREADS
_CRT_SECURE_NO_WARNINGS
_CRT_NONSTDC_NO_DEPRECATE