cunit: fix test_read_fast_index_order()
authorAnthony Tong <atong@trustedcs.com>
Sat, 14 Jan 2012 16:43:40 +0000 (10:43 -0600)
committerAnthony Tong <atong@trustedcs.com>
Sat, 14 Jan 2012 16:43:40 +0000 (10:43 -0600)
cunit/test_orders.c

index ae689ad..6ae8bfd 100644 (file)
@@ -431,6 +431,7 @@ void test_read_fast_index_order(void)
        memset(orderInfo, 0, sizeof(ORDER_INFO));
        orderInfo->fieldFlags = 0x70FF;
 
+       memset(&fast_index, 0, sizeof(FAST_INDEX_ORDER));
        update_read_fast_index_order(s, orderInfo, &fast_index);
 
        CU_ASSERT(fast_index.cacheId == 7);
@@ -445,7 +446,7 @@ void test_read_fast_index_order(void)
        CU_ASSERT(fast_index.opLeft == 0);
        CU_ASSERT(fast_index.opTop == 0);
        CU_ASSERT(fast_index.opRight == 0);
-       CU_ASSERT(fast_index.opBottom == 524);
+       CU_ASSERT(fast_index.opBottom == 0);
        CU_ASSERT(fast_index.x == -32768);
        CU_ASSERT(fast_index.y == 124);