Add Workaround #if to GC test

Summary: Closes https://github.com/facebook/yoga/pull/474

Reviewed By: emilsjolander

Differential Revision: D4687978

Pulled By: splhack

fbshipit-source-id: 5b411e94f76c9846eadd2f01f0c8fd511fd6cdbf
This commit is contained in:
Kazuki Sakamoto
2017-03-10 09:32:48 -08:00
committed by Facebook Github Bot
parent 061981fb23
commit 7e2ef926ea

View File

@@ -365,9 +365,8 @@ namespace Facebook.Yoga
child = null;
}
#if !__UNIFIED__
#if YOGA_ENABLE_GC_TEST
[Test]
#endif
public void TestParentDestructor()
{
ForceGC();
@@ -388,6 +387,7 @@ namespace Facebook.Yoga
Assert.AreEqual(instanceCount + 1, YogaNode.GetInstanceCount());
parent.Insert(0, child);
}
#endif
[Test]
public void TestClearWithChildDestructor()