aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLee Chou <leechou@google.com>2020-03-05 17:46:30 +0800
committerLee Chou <leechou@google.com>2020-03-05 17:46:30 +0800
commit91ec756306014ea0aeccc850a1796c3b796f6b24 (patch)
treecb543db88c4c17bf9390f114d3159a2207bbf0f9
parentda28d7d0585aa9f25a02b24671e73398f4e4ebd7 (diff)
downloadplatform_external_robolectric-shadows-91ec756306014ea0aeccc850a1796c3b796f6b24.tar.gz
platform_external_robolectric-shadows-91ec756306014ea0aeccc850a1796c3b796f6b24.tar.bz2
platform_external_robolectric-shadows-91ec756306014ea0aeccc850a1796c3b796f6b24.zip
Disable new WM feature for robolectric
A new window manager feature (b/118118435) caused robolectric tests to freeze. This sets the System Property persist.debug.new_insets=0 to turn off the feature for robolectric tests. Bug: 150011638 Test: m RunStorageManagerRoboTests Change-Id: I0e906b5c9ee86dac195b9d5ba5815bd0c2b01db3
-rw-r--r--soong/robolectric.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/soong/robolectric.go b/soong/robolectric.go
index 836cd158f..0ef5bd29e 100644
--- a/soong/robolectric.go
+++ b/soong/robolectric.go
@@ -77,6 +77,9 @@ func (b *buildProps) GenerateAndroidBuildActions(ctx android.ModuleContext) {
"ro.product.cpu.abilist=armeabi-v7a",
"ro.product.cpu.abilist32=armeabi-v7a,armeabi",
"ro.product.cpu.abilist64=armeabi-v7a,armeabi",
+ "",
+ "# temp fix for robolectric freezing issue b/150011638",
+ "persist.debug.new_insets=0",
}
b.output = android.PathForModuleGen(ctx, "build.prop")