TESTS: read12 is optional, should make test skip, not fail

This commit is contained in:
Ronnie Sahlberg
2013-04-27 07:43:24 -07:00
parent 227489d32b
commit c866787dcb
8 changed files with 61 additions and 2 deletions

View File

@@ -44,6 +44,11 @@ test_read12_flags(void)
ret = read12(iscsic, tgt_lun, 0,
block_size, block_size,
0, 1, 0, 0, 0, NULL);
if (ret == -2) {
logging(LOG_NORMAL, "[SKIPPED] READ12 is not implemented.");
CU_PASS("READ12 is not implemented.");
return;
}
CU_ASSERT_EQUAL(ret, 0);