summaryrefslogtreecommitdiffstatsci
path: root/tests/context.c
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2024-10-27 20:03:31 +0000
committerj-p <jp_bruyere@hotmail.com>2025-03-24 19:12:00 +0100
commit15ecf40ff47bfbdedddd3161b7d6d9d1418e64bb (patch)
tree49001433bd5b102118593642bf1a749494e7ea54 /tests/context.c
parent7b2f17b8d8f3763d974c52bfbe9a429779aa6f7b (diff)
clang format
Diffstat (limited to 'tests/context.c')
-rw-r--r--tests/context.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/tests/context.c b/tests/context.c
index b22da8a..caf0a26 100644
--- a/tests/context.c
+++ b/tests/context.c
@@ -1,22 +1,22 @@
#include "test.h"
-void create_destroy_multi(){
- VkvgContext* ctxs = (VkvgContext*)malloc(sizeof(VkvgContext)*test_size);
- for (uint32_t i = 0; i < test_size; i++)
- ctxs[i] = vkvg_create(surf);
- for (uint32_t i = 0; i < test_size; i++)
- vkvg_destroy(ctxs[i]);
- free(ctxs);
+void create_destroy_multi() {
+ VkvgContext *ctxs = (VkvgContext *)malloc(sizeof(VkvgContext) * test_size);
+ for (uint32_t i = 0; i < test_size; i++)
+ ctxs[i] = vkvg_create(surf);
+ for (uint32_t i = 0; i < test_size; i++)
+ vkvg_destroy(ctxs[i]);
+ free(ctxs);
}
-void create_destroy_single(){
- VkvgContext ctx = vkvg_create(surf);
- vkvg_destroy(ctx);
+void create_destroy_single() {
+ VkvgContext ctx = vkvg_create(surf);
+ vkvg_destroy(ctx);
}
int main(int argc, char *argv[]) {
- PERFORM_TEST (create_destroy_multi, argc, argv);
- no_test_size = true;
- PERFORM_TEST (create_destroy_single, argc, argv);
- return 0;
+ PERFORM_TEST(create_destroy_multi, argc, argv);
+ no_test_size = true;
+ PERFORM_TEST(create_destroy_single, argc, argv);
+ return 0;
}