tests: resource-monitor-tests: Fix test fail by changing the return value 22/280622/3 accepted/tizen/unified/20220902.020129 submit/tizen/20220901.084153
authorChanwoo Choi <cw00.choi@samsung.com>
Thu, 1 Sep 2022 08:32:01 +0000 (17:32 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Thu, 1 Sep 2022 08:37:54 +0000 (17:37 +0900)
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 <cw00.choi@samsung.com>
tests/integration-test/resource-monitor-tests.cpp

index 8d62db8..f588989 100644 (file)
@@ -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);