utest: do not check the TBM_DEVICE_MM 16/173416/2
authorSooChan Lim <sc1.lim@samsung.com>
Wed, 21 Mar 2018 08:42:23 +0000 (17:42 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Thu, 22 Mar 2018 02:26:29 +0000 (02:26 +0000)
Change-Id: I4ae6893bb9e1f168a5046afa375bb7cac103c7dd

utests/ut_tbm_backend.cpp
utests/ut_tbm_bo.cpp

index 57f9135..7f830b9 100644 (file)
@@ -197,7 +197,7 @@ TEST_F(TBMBackend, BoGetHandleMapUnmap)
                if (alloc_size != ret_size)
                        printf("The alloc_size is different from return value of the tbm_bo_size().");
 
-               for (j = TBM_DEVICE_DEFAULT; j <= TBM_DEVICE_MM; j++) {
+               for (j = TBM_DEVICE_DEFAULT; j <= TBM_DEVICE_3D; j++) {
                        bo_handle[i] = tbm_bo_get_handle(bo[i], j);
                        EXPECT_TRUE(bo_handle[i].ptr != NULL);
                        bo_handle[i] = tbm_bo_map(bo[i], j, TBM_OPTION_READ|TBM_OPTION_WRITE);
index 2e176f8..41a5352 100644 (file)
@@ -223,10 +223,13 @@ TEST_P(TBMBo, BoMapWithDeviceParamTest)
        ret = tbm_bo_unmap(bo);
        ASSERT_TRUE(ret != 0);
 
+#if 0
        bo_handle = tbm_bo_map(bo, TBM_DEVICE_MM, TBM_OPTION_READ);
+       if (!bo_handle.ptr)
        ASSERT_TRUE(bo_handle.ptr != NULL);
        ret = tbm_bo_unmap(bo);
        ASSERT_TRUE(ret != 0);
+#endif
 
        tbm_bo_unref(bo);
 }
@@ -329,8 +332,10 @@ TEST_P(TBMBo, BoGetHandleWithDeviceParamTest)
        bo_handle = tbm_bo_get_handle(bo, TBM_DEVICE_3D);
        ASSERT_TRUE(bo_handle.ptr != NULL);
 
+#if 0
        bo_handle = tbm_bo_get_handle(bo, TBM_DEVICE_MM);
        ASSERT_TRUE(bo_handle.ptr != NULL);
+#endif
 
        tbm_bo_unref(bo);
 }