Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-04-17 09:24:14 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-04-17 09:24:14 +0300
commit41d4a1986548e66a652221e4a68c52900474eeff (patch)
tree26acf937ea0b762977f89adcc4e74a3ec9ecee62 /tests
parent108045faa01849115c54190ebed788faf36dcb56 (diff)
ClangFormat: format '#if 0' code in source/
Diffstat (limited to 'tests')
-rw-r--r--tests/gtests/blenlib/BLI_array_store_test.cc11
1 files changed, 4 insertions, 7 deletions
diff --git a/tests/gtests/blenlib/BLI_array_store_test.cc b/tests/gtests/blenlib/BLI_array_store_test.cc
index c2fb16d12da..632107c69df 100644
--- a/tests/gtests/blenlib/BLI_array_store_test.cc
+++ b/tests/gtests/blenlib/BLI_array_store_test.cc
@@ -70,9 +70,7 @@ static void testchunk_list_free(ListBase *lb)
}
#if 0
-static char *testchunk_as_data(
- ListBase *lb,
- size_t *r_data_len)
+static char *testchunk_as_data(ListBase *lb, size_t *r_data_len)
{
size_t data_len = 0;
for (TestChunk *tc = (TestChunk *)lb->first; tc; tc = tc->next) {
@@ -838,16 +836,16 @@ void *file_read_binary_as_mem(const char *filepath, size_t pad_bytes, size_t *r_
*r_size = filelen_read;
-finally:
+ finally:
fclose(fp);
}
return mem;
}
-
TEST(array_store, PlainTextFiles)
-{ ListBase lb;
+{
+ ListBase lb;
BLI_listbase_clear(&lb);
BArrayStore *bs = BLI_array_store_create(1, 128);
@@ -882,7 +880,6 @@ TEST(array_store, PlainTextFiles)
print_mem_saved("source code backwards", bs);
# endif
-
testbuffer_list_free(&lb);
BLI_array_store_destroy(bs);
}