tests: resource-monitor: Consider failure of monitor_init as fatal 48/280448/1 accepted/tizen/unified/20220830.133638 submit/tizen/20220830.081307
authorDongwoo Lee <dwlee08@gmail.com>
Tue, 30 Aug 2022 06:57:18 +0000 (23:57 -0700)
committerDongwoo Lee <dwlee08@gmail.com>
Tue, 30 Aug 2022 07:45:43 +0000 (00:45 -0700)
Change-Id: Ifd7c90e2e92e7623d01928d933ed3ce7165a567c
Signed-off-by: Dongwoo Lee <dwlee08@gmail.com>
tests/integration-test/resource-monitor-tests.cpp

index a17cb3d18d59d8b40d82f79a9f992a944ef0841d..62f465ff7ac7e609b3aa8cfbf595080f09ffbee5 100644 (file)
@@ -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);