From 42d779838ec17d968251f735a1cca0e45bcd7db4 Mon Sep 17 00:00:00 2001 From: Sears Russell Date: Sat, 4 Oct 2008 07:01:38 +0000 Subject: [PATCH] Check TarrayListLength() --- test/stasis/check_operations.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/test/stasis/check_operations.c b/test/stasis/check_operations.c index be5dc6a..f73eab4 100644 --- a/test/stasis/check_operations.c +++ b/test/stasis/check_operations.c @@ -495,7 +495,9 @@ START_TEST(operation_array_list) { int xid = Tbegin(); recordid rid = TarrayListAlloc(xid, 4, 2, sizeof(int)); + assert(0 == TarrayListLength(xid, rid)); TarrayListExtend(xid, rid, ARRAY_LIST_CHECK_ITER); + assert(ARRAY_LIST_CHECK_ITER == TarrayListLength(xid, rid)); Tcommit(xid); xid = Tbegin(); @@ -560,13 +562,6 @@ Suite * check_suite(void) { tcase_set_timeout(tc, 0); // disable timeouts /* Sub tests are added, one per line, here */ - /*(void)operation_physical_do_undo; - (void)operation_nestedTopAction; - (void)operation_set_range; - (void)operation_prepare; - (void)operation_alloc_test; - (void)operation_array_list;*/ - tcase_add_test(tc, operation_physical_do_undo); tcase_add_test(tc, operation_nestedTopAction); tcase_add_test(tc, operation_set_range);