cfs/test/fsproc/testBlockBuffer_utest2.cc
// cannot reclaim numSlots > current capacity
cannot reclaim numSlots > current capacity
cannot reclaim numSlots > current capacity
TEST(ReclaimBufferItem, T2) {
  uint32_t blockNum = 4;
  int blockSize = 32;
  char *memPtr = (char *)malloc(blockNum * blockSize);
  BlockBuffer buffer(blockNum, blockSize, memPtr);
  std::list<BlockBufferItem *> itemList;
  int rt = buffer.reclaimBufferItemSlots(blockNum + 1, itemList);
  EXPECT_TRUE(rt < 0);
  free(memPtr);
}
TEST ( ReclaimBufferItem , T2 ) { uint32_t blockNum = 4 ; int blockSize = 32 ; char * memPtr = ( char * ) malloc ( blockNum * blockSize ) ; BlockBuffer buffer ( blockNum , blockSize , memPtr ) ; std :: list < BlockBufferItem * > itemList ; int rt = buffer . reclaimBufferItemSlots ( blockNum + 1 , itemList ) ; EXPECT_TRUE ( rt < 0 ) ; free ( memPtr ) ; }
cannot reclaim numSlots > current capacity
cannot reclaim numSlots > current capacity