diff options
| author | nodist <kevin.comas.git@gmail.com> | 2026-09-24 14:36:15 -0400 |
|---|---|---|
| committer | nodist <kevin.comas.git@gmail.com> | 2026-09-24 14:36:15 -0400 |
| commit | 9a82127c476bf99556bbc69e181025afcba19d26 (patch) | |
| tree | 62b9d7023a83506ae4069ac0feb11784a2f6114e /test/config.c | |
| parent | fc9f60972bc30634180b1da32d680768c51844d2 (diff) | |
ring buffer tests
Diffstat (limited to 'test/config.c')
| -rw-r--r-- | test/config.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/config.c b/test/config.c index a871243..978e003 100644 --- a/test/config.c +++ b/test/config.c @@ -1,7 +1,7 @@ #include "kpl_test.h" -KPL_TEST(config_show_help) { +KPL_TEST(show_help) { kpl_config config; const int32_t argc = 2; const char *argv[] = { "./kpl", "--help", "not_used" }; @@ -10,7 +10,7 @@ KPL_TEST(config_show_help) { KPL_ASSERT(code == KPL_EXIT_CODE_HELP, "Invalid help exit code"); } -KPL_TEST(config_change_module_extension) { +KPL_TEST(change_module_extension) { kpl_config config; const int32_t argc = 3; const char *argv[] = { "./kpl", "--module-extension=.l", "./file.l" }; @@ -20,7 +20,7 @@ KPL_TEST(config_change_module_extension) { KPL_ASSERT(strcmp(config.module_extension, ".l") == 0, "Invalid new module extension"); } -KPL_TEST(config_io_queue_pow2) { +KPL_TEST(io_queue_pow2) { kpl_config config; const int32_t argc = 3; const char *argv[] = { "./kpl", "--io-queue-pow2=14", "./file.kpl" }; @@ -30,7 +30,7 @@ KPL_TEST(config_io_queue_pow2) { KPL_ASSERT(config.io.queue_pow2 == 14, "Invalid io queue power of two"); } -KPL_TEST(config_thread_count) { +KPL_TEST(thread_count) { kpl_config config; const int32_t argc = 3; const char *argv[] = { "./kpl", "--thread-count=1", "./file.kpl" }; @@ -40,7 +40,7 @@ KPL_TEST(config_thread_count) { KPL_ASSERT(config.thread.count == 1, "Invalid thread count"); } -KPL_TEST(config_memory_pool_pow2) { +KPL_TEST(memory_pool_pow2) { kpl_config config; const int32_t argc = 3; const char *argv[] = { "./kpl", "--memory-pool-pow2=6,7", "./file.kpl" }; |
