diff options
author | Suchi Amalapurapu <asuchitra@google.com> | 2010-05-18 13:16:13 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2010-05-18 13:16:13 -0700 |
commit | aa4db173a2465d74ea35cc7f736f6b2a5b01f72c (patch) | |
tree | bfe0eea8ac30d0eb21b3dfd121b30a521d99a5d3 /core | |
parent | 3aecdb9d7e92b1a91860600feefb5c0062b652cf (diff) | |
parent | 9a212adcffbc4b32d51f512889b33ba584647aa9 (diff) | |
download | frameworks_base-aa4db173a2465d74ea35cc7f736f6b2a5b01f72c.zip frameworks_base-aa4db173a2465d74ea35cc7f736f6b2a5b01f72c.tar.gz frameworks_base-aa4db173a2465d74ea35cc7f736f6b2a5b01f72c.tar.bz2 |
am 9a212adc: Fix 2641875 Initialize the cache path only if the container exists. This did exist before but was somehow removed. Fix a known test failure as well.
Merge commit '9a212adcffbc4b32d51f512889b33ba584647aa9' into froyo-plus-aosp
* commit '9a212adcffbc4b32d51f512889b33ba584647aa9':
Fix 2641875
Diffstat (limited to 'core')
-rwxr-xr-x | core/tests/coretests/src/android/content/pm/PackageManagerTests.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/tests/coretests/src/android/content/pm/PackageManagerTests.java b/core/tests/coretests/src/android/content/pm/PackageManagerTests.java index 5571341..c1e4d72 100755 --- a/core/tests/coretests/src/android/content/pm/PackageManagerTests.java +++ b/core/tests/coretests/src/android/content/pm/PackageManagerTests.java @@ -1444,7 +1444,7 @@ public class PackageManagerTests extends AndroidTestCase { int result = PackageManager.MOVE_FAILED_FORWARD_LOCKED; sampleMoveFromRawResource(installFlags, moveFlags, fail, result); } - //TODO: To be reenabled after investigation + @MediumTest public void testMoveAppFailInternalToExternalDelete() { int installFlags = 0; int moveFlags = PackageManager.MOVE_EXTERNAL_MEDIA; @@ -1461,7 +1461,8 @@ public class PackageManagerTests extends AndroidTestCase { ip = installFromRawResource("install.apk", R.raw.install, installFlags, false, false, -1, PackageInfo.INSTALL_LOCATION_UNSPECIFIED); // Delete the package now retaining data. - pm.deletePackage(ip.pkg.packageName, null, PackageManager.DONT_DELETE_DATA); + GenericReceiver receiver = new DeleteReceiver(ip.pkg.packageName); + invokeDeletePackage(ip.pkg.packageName, PackageManager.DONT_DELETE_DATA, receiver); assertTrue(invokeMovePackageFail(ip.pkg.packageName, moveFlags, result)); } catch (Exception e) { failStr(e); |