From: Calin Juravle Date: Thu, 13 Apr 2017 01:20:44 +0000 (-0700) Subject: Fix installd test X-Git-Tag: android-x86-9.0-r1~523^2~111^2 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=a40b6e3f5229ccc98660b1bee3461b523d91f0ea;p=android-x86%2Fframeworks-native.git Fix installd test CreatePrimaryCurrentProfile was using the wrong userid for the expected value. Test: adb shell /data/nativetest/installd_utils_test/installd_utils_test Bug: 36101738 Change-Id: I80b8212d09a0e4b600c00f85ac604a0e5fa1cc11 --- diff --git a/cmds/installd/tests/installd_utils_test.cpp b/cmds/installd/tests/installd_utils_test.cpp index 49605bee43..dab32363c7 100644 --- a/cmds/installd/tests/installd_utils_test.cpp +++ b/cmds/installd/tests/installd_utils_test.cpp @@ -547,7 +547,7 @@ TEST_F(UtilsTest, CreateDataRefProfilePackagePath) { TEST_F(UtilsTest, CreatePrimaryCurrentProfile) { std::string expected = - create_primary_current_profile_package_dir_path(1, "com.example") + "/primary.prof"; + create_primary_current_profile_package_dir_path(0, "com.example") + "/primary.prof"; EXPECT_EQ(expected, create_current_profile_path(/*user*/0, "com.example", /*is_secondary*/false)); }