Merge "Catch Throwable instead of Exception." into oc-dev
am: fff08f9ad3 Change-Id: I399e9224f3c0db1b2c30218d04f21789cc53fad9
This commit is contained in:
@@ -812,7 +812,7 @@ abstract class AbstractRestrictBackgroundNetworkTestCase extends Instrumentation
|
|||||||
executeSilentShellCommand("am set-inactive " + TEST_APP2_PKG + " " + enabled );
|
executeSilentShellCommand("am set-inactive " + TEST_APP2_PKG + " " + enabled );
|
||||||
try {
|
try {
|
||||||
assertAppIdle(enabled); // Sanity check
|
assertAppIdle(enabled); // Sanity check
|
||||||
} catch (Exception e) {
|
} catch (Throwable e) {
|
||||||
final String afterStats = getUsageStatsDump();
|
final String afterStats = getUsageStatsDump();
|
||||||
Log.d(TAG, "UsageStats before:\n" + beforeStats);
|
Log.d(TAG, "UsageStats before:\n" + beforeStats);
|
||||||
Log.d(TAG, "UsageStats after:\n" + afterStats);
|
Log.d(TAG, "UsageStats after:\n" + afterStats);
|
||||||
|
|||||||
Reference in New Issue
Block a user