Reduce unit test runtimes dramatically for debug builds

This commit is contained in:
Konstantinos Margaritis
2023-10-04 19:20:45 +03:00
committed by Konstantinos Margaritis
parent 0c51d60392
commit 71374eea1d
5 changed files with 25 additions and 4 deletions

View File

@@ -235,7 +235,11 @@ static const unsigned test_modes[] = {HS_MODE_BLOCK, HS_MODE_STREAM,
static const unsigned test_flags[] = {0, HS_FLAG_SINGLEMATCH,
HS_FLAG_SOM_LEFTMOST};
#ifdef NDEBUG
static const unsigned test_sizes[] = {1, 10, 100, 500, 10000};
#else
static const unsigned test_sizes[] = {1, 10, 100, 500};
#endif
static const pair<unsigned, unsigned> test_bounds[] = {{3u, 10u}, {10u, 100u}};