TESTS: WriteAtomic fixes to handle devices that do not return BlockLimits VPD

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
This commit is contained in:
Ronnie Sahlberg
2015-09-19 16:12:01 -07:00
parent fe1017fe2a
commit e725788eeb
5 changed files with 26 additions and 4 deletions

View File

@@ -36,8 +36,12 @@ test_writeatomic16_simple(void)
CHECK_FOR_DATALOSS;
CHECK_FOR_SBC;
logging(LOG_VERBOSE, LOG_BLANK_LINE);
if (!inq_bl) {
CU_PASS("BlockLimits VPD is not available. Skipping test.\n");
return;
}
logging(LOG_VERBOSE, LOG_BLANK_LINE);
gran = inq_bl->atomic_gran ? inq_bl->atomic_gran : 1;
ret = writeatomic16(sd, 0,