TESTS: WRITE16 is optional so update the tests to allow WRITE16 to be missing and just make the test be [SKIPPED]

This commit is contained in:
Ronnie Sahlberg
2013-04-23 21:15:28 -07:00
parent d280ce8ad7
commit ee666ae451
7 changed files with 67 additions and 0 deletions

View File

@@ -35,6 +35,11 @@ test_write16_0blocks(void)
logging(LOG_VERBOSE, "Test WRITE16 0-blocks at LBA==0");
ret = write16(iscsic, tgt_lun, 0, 0, block_size,
0, 0, 0, 0, 0, NULL);
if (ret == -2) {
logging(LOG_NORMAL, "[SKIPPED] WRITE16 is not implemented.");
CU_PASS("WRITE16 is not implemented.");
return;
}
CU_ASSERT_EQUAL(ret, 0);
logging(LOG_VERBOSE, "Test WRITE16 0-blocks one block past end-of-LUN");