utest: skip sync test if not support 11/193311/3
authorJunkyeong Kim <jk0430.kim@samsung.com>
Mon, 19 Nov 2018 06:59:34 +0000 (15:59 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Thu, 20 Dec 2018 06:07:20 +0000 (06:07 +0000)
Change-Id: Idac5f74d932ea44cc2e32b8f4527b393b80ba663
Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
utests/src/ut_wayland_tbm.cpp

index fb2da49..928a9f1 100644 (file)
@@ -835,7 +835,11 @@ TEST_F(UtWlTbm, SyncCreate)
        struct wl_buffer *wl_buf = nullptr;
 
        td = tbm_sync_timeline_create();
-       FAIL_NE_GOTO(td, -1, fini);
+       if (td == -1) {
+               ASSERT_EQ(td, -1);
+               printf("do not support sync\n");
+               goto fini;
+       }
 
        tbm_surf = tbm_surface_create(100, 200, TBM_FORMAT_ARGB8888);
        FAIL_NE_GOTO(tbm_surf, nullptr, fini);
@@ -865,7 +869,11 @@ TEST_F(UtWlTbm, SyncWait)
        struct wl_buffer *wl_buf = nullptr;
 
        td = tbm_sync_timeline_create();
-       FAIL_NE_GOTO(td, -1, fini);
+       if (td == -1) {
+               ASSERT_EQ(td, -1);
+               printf("do not support sync\n");
+               goto fini;
+       }
 
        tbm_surf = tbm_surface_create(100, 200, TBM_FORMAT_ARGB8888);
        FAIL_NE_GOTO(tbm_surf, nullptr, fini);
@@ -907,7 +915,11 @@ TEST_F(UtWlTbm, SyncWaitByTime)
        int cnt = 0, ret;
 
        td = tbm_sync_timeline_create();
-       FAIL_NE_GOTO(td, -1, fini);
+       if (td == -1) {
+               ASSERT_EQ(td, -1);
+               printf("do not support sync\n");
+               goto fini;
+       }
 
        tbm_surf = tbm_surface_create(100, 200, TBM_FORMAT_ARGB8888);
        FAIL_NE_GOTO(tbm_surf, nullptr, fini);