diff options
| author | Albert Cervin <albert@acervin.com> | 2025-01-13 18:59:41 +0100 |
|---|---|---|
| committer | Albert Cervin <albert@acervin.com> | 2025-01-21 20:07:30 +0100 |
| commit | 186374797aa883de9c4ac49d428af8dca000d2ed (patch) | |
| tree | 48da2530988eb900889d781c5d35c9fedfc5e4f5 /test/main.c | |
| parent | 98b060b8aa93e27908148b145731e3f4b770d1a8 (diff) | |
| download | dged-186374797aa883de9c4ac49d428af8dca000d2ed.tar.gz dged-186374797aa883de9c4ac49d428af8dca000d2ed.tar.xz dged-186374797aa883de9c4ac49d428af8dca000d2ed.zip | |
Fix buffer list not having stable ptrs
Was caused by using a vector that used realloc to grow. That only works
sometimes. Now instead, the buffer list is a chunked linked list, i.e. a
linked list where each element is a fixed size array.
Diffstat (limited to 'test/main.c')
| -rw-r--r-- | test/main.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/test/main.c b/test/main.c index 29e031f..f8e1eca 100644 --- a/test/main.c +++ b/test/main.c @@ -29,9 +29,12 @@ int main(void) { printf("\nāŖ \x1b[1;36mRunning undo tests...\x1b[0m\n"); run_undo_tests(); - printf("\nš“ļø \x1b[1;36mRunning buffer tests...\x1b[0m\n"); + printf("\nš“ļø \x1b[1;36mRunning buffer tests...\x1b[0m\n"); run_buffer_tests(); + printf("\nš \x1b[1;36mRunning buffer list tests...\x1b[0m\n"); + run_buflist_tests(); + printf("\nš \x1b[1;36mRunning command tests...\x1b[0m\n"); run_command_tests(); @@ -44,14 +47,14 @@ int main(void) { printf("\nš \x1b[1;36mRunning minibuffer tests...\x1b[0m\n"); run_minibuffer_tests(); - printf("\n š \x1b[1;36mRunning settings tests...\x1b[0m\n"); + printf("\nš \x1b[1;36mRunning settings tests...\x1b[0m\n"); run_settings_tests(); - printf("\n š \x1b[1;36mRunning container tests...\x1b[0m\n"); + printf("\nš \x1b[1;36mRunning container tests...\x1b[0m\n"); run_container_tests(); #if defined(LSP_ENABLED) - printf("\n š \x1b[1;36mRunning JSON tests...\x1b[0m\n"); + printf("\nš \x1b[1;36mRunning JSON tests...\x1b[0m\n"); run_json_tests(); #endif |
