Small work on metadata_checker tests.
This commit is contained in:
11
unit-tests/test_utils.cc
Normal file
11
unit-tests/test_utils.cc
Normal file
@ -0,0 +1,11 @@
|
||||
#include "test_utils.h"
|
||||
|
||||
//----------------------------------------------------------------
|
||||
|
||||
void test::zero_block(block_manager<>::ptr bm, block_address b)
|
||||
{
|
||||
block_manager<>::write_ref wr = bm->write_lock(b);
|
||||
memset(&wr.data(), 0, sizeof(wr.data()));
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------
|
Reference in New Issue
Block a user