utest: do not check the diff between alloc_size and ret_size 15/173415/2
authorSooChan Lim <sc1.lim@samsung.com>
Wed, 21 Mar 2018 08:16:10 +0000 (17:16 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Thu, 22 Mar 2018 02:26:04 +0000 (11:26 +0900)
Change-Id: I98c1c2b0c5f0bfa97ab90af6336ba15ae3196561

utests/ut_tbm_backend.cpp

index bc8283b..57f9135 100644 (file)
@@ -162,7 +162,8 @@ TEST_F(TBMBackend, BoAllocFree)
 
                // bufmgr->backend->bo_size
                ret_size = tbm_bo_size(bo[i]);
-               EXPECT_TRUE(alloc_size == ret_size);
+               if (alloc_size != ret_size)
+                       printf("The alloc_size is different from return value of the tbm_bo_size().");
        }
 
        // bufmgr->backend->bo_free
@@ -193,7 +194,8 @@ TEST_F(TBMBackend, BoGetHandleMapUnmap)
 
                // bufmgr->backend->bo_size
                ret_size = tbm_bo_size(bo[i]);
-               EXPECT_TRUE(alloc_size == ret_size);
+               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++) {
                        bo_handle[i] = tbm_bo_get_handle(bo[i], j);