Free memory used in tests to enable use of valgrind
Summary: Its very usefull to be able to run valgrind on the tests and benchmarks. We were previously not freeing test memory so valgrind output was very messy. Reviewed By: javache Differential Revision: D3937493 fbshipit-source-id: 23c6970d7769b081575d39de583ba954fc65a397
This commit is contained in:
committed by
Facebook Github Bot
parent
dbf3b11946
commit
1f300a58fb
@@ -109,6 +109,8 @@ TEST(CSSLayoutTest, flex_direction_column_no_height) {
|
||||
ASSERT_EQ(20, CSSNodeLayoutGetTop(root_child2));
|
||||
ASSERT_EQ(100, CSSNodeLayoutGetWidth(root_child2));
|
||||
ASSERT_EQ(10, CSSNodeLayoutGetHeight(root_child2));
|
||||
|
||||
CSSNodeFreeRecursive(root);
|
||||
}
|
||||
|
||||
TEST(CSSLayoutTest, flex_direction_row_no_width) {
|
||||
@@ -170,6 +172,8 @@ TEST(CSSLayoutTest, flex_direction_row_no_width) {
|
||||
ASSERT_EQ(0, CSSNodeLayoutGetTop(root_child2));
|
||||
ASSERT_EQ(10, CSSNodeLayoutGetWidth(root_child2));
|
||||
ASSERT_EQ(100, CSSNodeLayoutGetHeight(root_child2));
|
||||
|
||||
CSSNodeFreeRecursive(root);
|
||||
}
|
||||
|
||||
TEST(CSSLayoutTest, flex_direction_column) {
|
||||
@@ -231,6 +235,8 @@ TEST(CSSLayoutTest, flex_direction_column) {
|
||||
ASSERT_EQ(20, CSSNodeLayoutGetTop(root_child2));
|
||||
ASSERT_EQ(100, CSSNodeLayoutGetWidth(root_child2));
|
||||
ASSERT_EQ(10, CSSNodeLayoutGetHeight(root_child2));
|
||||
|
||||
CSSNodeFreeRecursive(root);
|
||||
}
|
||||
|
||||
TEST(CSSLayoutTest, flex_direction_row) {
|
||||
@@ -293,6 +299,8 @@ TEST(CSSLayoutTest, flex_direction_row) {
|
||||
ASSERT_EQ(0, CSSNodeLayoutGetTop(root_child2));
|
||||
ASSERT_EQ(10, CSSNodeLayoutGetWidth(root_child2));
|
||||
ASSERT_EQ(100, CSSNodeLayoutGetHeight(root_child2));
|
||||
|
||||
CSSNodeFreeRecursive(root);
|
||||
}
|
||||
|
||||
TEST(CSSLayoutTest, flex_direction_column_reverse) {
|
||||
@@ -355,6 +363,8 @@ TEST(CSSLayoutTest, flex_direction_column_reverse) {
|
||||
ASSERT_EQ(70, CSSNodeLayoutGetTop(root_child2));
|
||||
ASSERT_EQ(100, CSSNodeLayoutGetWidth(root_child2));
|
||||
ASSERT_EQ(10, CSSNodeLayoutGetHeight(root_child2));
|
||||
|
||||
CSSNodeFreeRecursive(root);
|
||||
}
|
||||
|
||||
TEST(CSSLayoutTest, flex_direction_row_reverse) {
|
||||
@@ -417,4 +427,6 @@ TEST(CSSLayoutTest, flex_direction_row_reverse) {
|
||||
ASSERT_EQ(0, CSSNodeLayoutGetTop(root_child2));
|
||||
ASSERT_EQ(10, CSSNodeLayoutGetWidth(root_child2));
|
||||
ASSERT_EQ(100, CSSNodeLayoutGetHeight(root_child2));
|
||||
|
||||
CSSNodeFreeRecursive(root);
|
||||
}
|
||||
|
Reference in New Issue
Block a user