diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2024-10-27 20:03:31 +0000 |
|---|---|---|
| committer | j-p <jp_bruyere@hotmail.com> | 2025-03-24 19:12:00 +0100 |
| commit | 15ecf40ff47bfbdedddd3161b7d6d9d1418e64bb (patch) | |
| tree | 49001433bd5b102118593642bf1a749494e7ea54 /tests/surface.c | |
| parent | 7b2f17b8d8f3763d974c52bfbe9a429779aa6f7b (diff) | |
clang format
Diffstat (limited to 'tests/surface.c')
| -rw-r--r-- | tests/surface.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/tests/surface.c b/tests/surface.c index 2438a44..6aa910c 100644 --- a/tests/surface.c +++ b/tests/surface.c @@ -1,22 +1,22 @@ #include "test.h" -void create_destroy_multi_512(){ - VkvgSurface* surfs = (VkvgSurface*)malloc(sizeof(VkvgSurface)*test_size); - for (uint32_t i = 0; i < test_size; i++) - surfs[i] = vkvg_surface_create (device, 512, 512); - for (uint32_t i = 0; i < test_size; i++) - vkvg_surface_destroy(surfs[i]); - free(surfs); +void create_destroy_multi_512() { + VkvgSurface *surfs = (VkvgSurface *)malloc(sizeof(VkvgSurface) * test_size); + for (uint32_t i = 0; i < test_size; i++) + surfs[i] = vkvg_surface_create(device, 512, 512); + for (uint32_t i = 0; i < test_size; i++) + vkvg_surface_destroy(surfs[i]); + free(surfs); } -void create_destroy_single_512(){ - VkvgSurface s = vkvg_surface_create (device, 512, 512); - vkvg_surface_destroy (s); +void create_destroy_single_512() { + VkvgSurface s = vkvg_surface_create(device, 512, 512); + vkvg_surface_destroy(s); } int main(int argc, char *argv[]) { - PERFORM_TEST (create_destroy_multi_512, argc, argv); - no_test_size = true; - PERFORM_TEST (create_destroy_single_512, argc, argv); - return 0; + PERFORM_TEST(create_destroy_multi_512, argc, argv); + no_test_size = true; + PERFORM_TEST(create_destroy_single_512, argc, argv); + return 0; } |