TESTS: WRITESAME1* with 0 DataOut should fail if WSNZ is set

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
This commit is contained in:
Ronnie Sahlberg
2016-09-22 18:44:44 -07:00
parent 875c0222f2
commit 2e947cc1de
2 changed files with 12 additions and 6 deletions

View File

@@ -37,9 +37,12 @@ test_writesame10_unmap_until_end(void)
CHECK_FOR_SBC;
if (inq_bl->wsnz) {
logging(LOG_NORMAL, "[SKIPPED] WRITESAME10 does not support 0-blocks.");
CU_PASS("[SKIPPED] WRITESAME10 does not support 0-blocks.");
return;
logging(LOG_NORMAL, "WRITESAME10 does not support 0-blocks."
"WSNZ == 1");
WRITESAME10(sd, 0,
0, 1, 0, 1, 0, 0, scratch,
EXPECT_INVALID_FIELD_IN_CDB);
return;
}
logging(LOG_VERBOSE, LOG_BLANK_LINE);

View File

@@ -38,9 +38,12 @@ test_writesame16_unmap_until_end(void)
CHECK_FOR_SBC;
if (inq_bl->wsnz) {
logging(LOG_NORMAL, "[SKIPPED] WRITESAME10 does not support 0-blocks.");
CU_PASS("[SKIPPED] WRITESAME10 does not support 0-blocks.");
return;
logging(LOG_NORMAL, "WRITESAME16 does not support 0-blocks."
"WSNZ == 1");
WRITESAME16(sd, 0,
0, 1, 0, 1, 0, 0, scratch,
EXPECT_INVALID_FIELD_IN_CDB);
return;
}
logging(LOG_VERBOSE, LOG_BLANK_LINE);