From: Chanwoo Choi Date: Thu, 1 Sep 2022 08:32:01 +0000 (+0900) Subject: tests: resource-monitor-tests: Fix test fail by changing the return value X-Git-Tag: accepted/tizen/unified/20220902.020129^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5483fc2223a9c46eafe501dd6b69d58ecd45c879;p=platform%2Fcore%2Fsystem%2Fpass.git tests: resource-monitor-tests: Fix test fail by changing the return value commit b5d308519f73("util: resource: Change error code from -EPERM to -EACCES") changed the return value from -EPERM to -EACCESS. In order to pass the test, change the return value according to commit b5d308519f73. Change-Id: I2e3261fe80ceea0fd70645484778916a928e8872 Signed-off-by: Chanwoo Choi --- diff --git a/tests/integration-test/resource-monitor-tests.cpp b/tests/integration-test/resource-monitor-tests.cpp index 8d62db8..f588989 100644 --- a/tests/integration-test/resource-monitor-tests.cpp +++ b/tests/integration-test/resource-monitor-tests.cpp @@ -184,7 +184,7 @@ TEST_F(ResourceMonitorTest, EXPECT_EQ(ret, 0); ret = pass_resource_monitor_set_resource_attr(id, res_id, res_attr_id); - EXPECT_EQ(ret, -EPERM); + EXPECT_EQ(ret, -EACCES); ret = pass_resource_monitor_delete_resource(id, res_id); EXPECT_EQ(ret, 0);