From: Ilho Kim Date: Tue, 9 Apr 2024 15:47:59 +0000 (+0900) Subject: Fix error values checked in unit test X-Git-Tag: accepted/tizen/unified/20240410.084254^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F23%2F309423%2F1;p=platform%2Fcore%2Fappfw%2Fapp2sd.git Fix error values checked in unit test Change-Id: Id783da87fdde2ae909d7f556a666c80248e94723 Signed-off-by: Ilho Kim --- diff --git a/unit-tests/server/test_server.cc b/unit-tests/server/test_server.cc index 0c470ac..2a70481 100644 --- a/unit-tests/server/test_server.cc +++ b/unit-tests/server/test_server.cc @@ -235,7 +235,7 @@ TEST_F(App2sdServerTest, Migrate) { EXPECT_THAT(app2sd::App2sdEnvironment::GetLastResult(), testing::Eq(APP2EXT_ERROR_FIND_ASSOCIATED_DMCRYPT_DEVICE_NODE)); g_variant_unref(body); app2sd::App2sdEnvironment::TriggerMethod("MigrateLegacyAll", nullptr); - EXPECT_THAT(app2sd::App2sdEnvironment::GetLastResult(), testing::Eq(APP2EXT_ERROR_PKGMGR_ERROR)); + EXPECT_THAT(app2sd::App2sdEnvironment::GetLastResult(), testing::Ne(0)); } TEST_F(App2sdServerTest, ForceClean) {