tc: fix the failed testcase on TDMHwc 88/256788/2
authorSooChan Lim <sc1.lim@samsung.com>
Tue, 13 Apr 2021 05:26:31 +0000 (14:26 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Tue, 13 Apr 2021 09:06:14 +0000 (09:06 +0000)
The GetClientTargetBufferQueueFailNoHwc test is executed when there is
no hwc on a output.

Change-Id: I8409dffce126f5398abb447c0d4e8c06a84ce431

haltests/src/tc_tdm_hwc.cpp

index 5a7f960..c8b3210 100644 (file)
@@ -313,14 +313,12 @@ TEST_P(TDMHwc, GetClientTargetBufferQueueFailNoHwc)
 
        for (int o = 0; o < output_count; o++) {
                hwc = tdm_output_get_hwc(outputs[o], &error);
-               if (hwc) {
+               if (!hwc) {
                        queue = tdm_hwc_get_client_target_buffer_queue(hwc, &error);
                        EXPECT_NE(TDM_ERROR_NONE, error);
                        EXPECT_EQ(NULL, queue);
                } else {
-                       queue = tdm_hwc_get_client_target_buffer_queue(hwc, &error);
-                       EXPECT_NE(TDM_ERROR_NONE, error);
-                       EXPECT_EQ(NULL, queue);
+                       EXPECT_TRUE(true);
                }
        }
 }