lib: resource-monitor: Fix return value of pass_resource_monitor_is_resource_attr_sup... 67/277567/3
authorChanwoo Choi <cw00.choi@samsung.com>
Fri, 8 Jul 2022 07:49:57 +0000 (16:49 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Fri, 8 Jul 2022 09:03:24 +0000 (18:03 +0900)
commit992b6df22b83f005be20d857c0fa1ab8b7b7e71e
tree1fe6d333f04dae7864465d280287199e6b0ec352
parentaf1f87f100cfafb316285c5a8349530fe379ed62
lib: resource-monitor: Fix return value of pass_resource_monitor_is_resource_attr_supported

When return minus error value, it is converted to 1. It means that
return 'true' when error happen. So that change the return value
from minus integer value to false.

Fix following issue by this patch:
[  FAILED  ] ResourceMonitorTest.pass_resource_monitor_is_resource_attr_supported_invalid

Change-Id: I437644ffbc6b55f9ff0e539ab3af1ceda6878872
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
lib/resource-monitor/resource-monitor.c