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
@@ -125,6 +125,8 @@ TEST(CSSLayoutTest, wrap_column) {
|
||||
ASSERT_EQ(0, CSSNodeLayoutGetTop(root_child3));
|
||||
ASSERT_EQ(30, CSSNodeLayoutGetWidth(root_child3));
|
||||
ASSERT_EQ(30, CSSNodeLayoutGetHeight(root_child3));
|
||||
|
||||
CSSNodeFreeRecursive(root);
|
||||
}
|
||||
|
||||
TEST(CSSLayoutTest, wrap_row) {
|
||||
@@ -205,6 +207,8 @@ TEST(CSSLayoutTest, wrap_row) {
|
||||
ASSERT_EQ(30, CSSNodeLayoutGetTop(root_child3));
|
||||
ASSERT_EQ(30, CSSNodeLayoutGetWidth(root_child3));
|
||||
ASSERT_EQ(30, CSSNodeLayoutGetHeight(root_child3));
|
||||
|
||||
CSSNodeFreeRecursive(root);
|
||||
}
|
||||
|
||||
TEST(CSSLayoutTest, wrap_row_align_items_flex_end) {
|
||||
@@ -286,6 +290,8 @@ TEST(CSSLayoutTest, wrap_row_align_items_flex_end) {
|
||||
ASSERT_EQ(30, CSSNodeLayoutGetTop(root_child3));
|
||||
ASSERT_EQ(30, CSSNodeLayoutGetWidth(root_child3));
|
||||
ASSERT_EQ(30, CSSNodeLayoutGetHeight(root_child3));
|
||||
|
||||
CSSNodeFreeRecursive(root);
|
||||
}
|
||||
|
||||
TEST(CSSLayoutTest, wrap_row_align_items_center) {
|
||||
@@ -367,4 +373,6 @@ TEST(CSSLayoutTest, wrap_row_align_items_center) {
|
||||
ASSERT_EQ(30, CSSNodeLayoutGetTop(root_child3));
|
||||
ASSERT_EQ(30, CSSNodeLayoutGetWidth(root_child3));
|
||||
ASSERT_EQ(30, CSSNodeLayoutGetHeight(root_child3));
|
||||
|
||||
CSSNodeFreeRecursive(root);
|
||||
}
|
||||
|
Reference in New Issue
Block a user