mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Fix unit test compilation on Android
Summary: Before, compilation fails with P130281113. After fixing BUCK target, fails with P130281201. After all changes, the tests succeed. Changelog: [Internal] Reviewed By: mdvacca Differential Revision: D21390996 fbshipit-source-id: c85aa43b3ef7fc9642d226ae706c937b2a5a408d
This commit is contained in:
committed by
Facebook GitHub Bot
parent
30a89f30c6
commit
ca144fca3f
@@ -76,6 +76,7 @@ fb_xplat_cxx_test(
|
||||
"-Wall",
|
||||
],
|
||||
contacts = ["oncall+react_native@xmail.facebook.com"],
|
||||
fbandroid_use_instrumentation_test = True,
|
||||
platforms = (ANDROID, APPLE, CXX),
|
||||
deps = [
|
||||
":mounting",
|
||||
|
||||
@@ -114,6 +114,9 @@ static void testShadowNodeTreeLifeCycle(
|
||||
|
||||
LOG(ERROR) << "Entropy seed: " << entropy.getSeed() << "\n";
|
||||
|
||||
// There are some issues getting `getDebugDescription` to compile
|
||||
// under test on Android for now.
|
||||
#ifndef ANDROID
|
||||
LOG(ERROR) << "Shadow Tree before: \n"
|
||||
<< currentRootNode->getDebugDescription();
|
||||
LOG(ERROR) << "Shadow Tree after: \n"
|
||||
@@ -128,6 +131,7 @@ static void testShadowNodeTreeLifeCycle(
|
||||
LOG(ERROR) << "Mutations:"
|
||||
<< "\n"
|
||||
<< getDebugDescription(mutations, {});
|
||||
#endif
|
||||
|
||||
FAIL();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user