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
@@ -53,6 +53,8 @@ TEST(CSSLayoutTest, border_no_size) {
|
||||
ASSERT_EQ(0, CSSNodeLayoutGetTop(root));
|
||||
ASSERT_EQ(20, CSSNodeLayoutGetWidth(root));
|
||||
ASSERT_EQ(20, CSSNodeLayoutGetHeight(root));
|
||||
|
||||
CSSNodeFreeRecursive(root);
|
||||
}
|
||||
|
||||
TEST(CSSLayoutTest, border_container_match_child) {
|
||||
@@ -89,6 +91,8 @@ TEST(CSSLayoutTest, border_container_match_child) {
|
||||
ASSERT_EQ(10, CSSNodeLayoutGetTop(root_child0));
|
||||
ASSERT_EQ(10, CSSNodeLayoutGetWidth(root_child0));
|
||||
ASSERT_EQ(10, CSSNodeLayoutGetHeight(root_child0));
|
||||
|
||||
CSSNodeFreeRecursive(root);
|
||||
}
|
||||
|
||||
TEST(CSSLayoutTest, border_flex_child) {
|
||||
@@ -127,6 +131,8 @@ TEST(CSSLayoutTest, border_flex_child) {
|
||||
ASSERT_EQ(10, CSSNodeLayoutGetTop(root_child0));
|
||||
ASSERT_EQ(10, CSSNodeLayoutGetWidth(root_child0));
|
||||
ASSERT_EQ(80, CSSNodeLayoutGetHeight(root_child0));
|
||||
|
||||
CSSNodeFreeRecursive(root);
|
||||
}
|
||||
|
||||
TEST(CSSLayoutTest, border_stretch_child) {
|
||||
@@ -164,6 +170,8 @@ TEST(CSSLayoutTest, border_stretch_child) {
|
||||
ASSERT_EQ(10, CSSNodeLayoutGetTop(root_child0));
|
||||
ASSERT_EQ(80, CSSNodeLayoutGetWidth(root_child0));
|
||||
ASSERT_EQ(10, CSSNodeLayoutGetHeight(root_child0));
|
||||
|
||||
CSSNodeFreeRecursive(root);
|
||||
}
|
||||
|
||||
TEST(CSSLayoutTest, border_center_child) {
|
||||
@@ -204,4 +212,6 @@ TEST(CSSLayoutTest, border_center_child) {
|
||||
ASSERT_EQ(35, CSSNodeLayoutGetTop(root_child0));
|
||||
ASSERT_EQ(10, CSSNodeLayoutGetWidth(root_child0));
|
||||
ASSERT_EQ(10, CSSNodeLayoutGetHeight(root_child0));
|
||||
|
||||
CSSNodeFreeRecursive(root);
|
||||
}
|
||||
|
Reference in New Issue
Block a user