tlwg / libdatrie

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Parallel test suite execution causes tests to fail

enter-github-username opened this issue · comments

Running the test suite in parallel via the -j<number of tests to run in parallel> flag of make currently leads to test failures. This is caused by two tests (test_file and test_serialization) operating on the same file (test.tri). If both tests are run at the same time, they interfere with each other, causing one of them to fail.

A solution might be to rename the test file in the define of TRIE_FILENAME in tests/test_file.c and tests/test_serialization.c to something specific / unique for each tests.