From 5483fc2223a9c46eafe501dd6b69d58ecd45c879 Mon Sep 17 00:00:00 2001 From: Chanwoo Choi Date: Thu, 1 Sep 2022 17:32:01 +0900 Subject: [PATCH] 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 --- tests/integration-test/resource-monitor-tests.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.7.4