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

@@ -35,6 +35,11 @@ test_writeatomic16_beyond_eol(void)
CHECK_FOR_DATALOSS;
CHECK_FOR_SBC;
if (!inq_bl) {
CU_PASS("BlockLimits VPD is not available. Skipping test.\n");
return;
}
logging(LOG_VERBOSE, LOG_BLANK_LINE);
align = inq_bl->atomic_align ? inq_bl->atomic_align : 1;