From: Dongwoo Lee Date: Tue, 30 Aug 2022 06:57:18 +0000 (-0700) Subject: tests: resource-monitor: Consider failure of monitor_init as fatal X-Git-Tag: submit/tizen/20220830.081307^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f0776917d1f484d19ef5a31b1431613a0a0d6668;p=platform%2Fcore%2Fsystem%2Fpass.git tests: resource-monitor: Consider failure of monitor_init as fatal Change-Id: Ifd7c90e2e92e7623d01928d933ed3ce7165a567c Signed-off-by: Dongwoo Lee --- diff --git a/tests/integration-test/resource-monitor-tests.cpp b/tests/integration-test/resource-monitor-tests.cpp index a17cb3d..62f465f 100644 --- a/tests/integration-test/resource-monitor-tests.cpp +++ b/tests/integration-test/resource-monitor-tests.cpp @@ -71,7 +71,7 @@ TEST_F(ResourceMonitorTest, pass_resource_monitor_get_resource_count_valid) }; int id = pass_resource_monitor_init(); - EXPECT_TRUE(id > 0); + ASSERT_TRUE(id > 0); for (i = 0; i < (int)ARRAY_SIZE(res_types); i++) { int count; @@ -94,7 +94,7 @@ TEST_F(ResourceMonitorTest, pass_resource_monitor_get_resource_count_invalid) }; int id = pass_resource_monitor_init(); - EXPECT_TRUE(id > 0); + ASSERT_TRUE(id > 0); for (i = 0; i < (int)ARRAY_SIZE(res_types); i++) { int count; @@ -118,7 +118,7 @@ TEST_F(ResourceMonitorTest, }; int id = pass_resource_monitor_init(); - EXPECT_TRUE(id > 0); + ASSERT_TRUE(id > 0); int count; int ret = pass_resource_monitor_get_resource_count(id, res_type, &count);