Tests: Add a helper for the all_zero checker
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
This commit is contained in:
@@ -207,7 +207,7 @@ check_lun_is_wiped(unsigned char *buf, uint64_t lba)
|
||||
if (rc16->lbprz) {
|
||||
logging(LOG_VERBOSE, "LBPRZ==1 All blocks "
|
||||
"should read back as 0");
|
||||
if (all_zeroes(rbuf, 256 * block_size) == 0) {
|
||||
if (all_zero(rbuf, 256 * block_size) == 0) {
|
||||
logging(LOG_NORMAL, "[FAILED] Blocks did not "
|
||||
"read back as zero");
|
||||
CU_FAIL("[FAILED] Blocks did not read back "
|
||||
|
||||
Reference in New Issue
Block a user