TESTS: replace read* flags tests with dedicated dpo/fua tests

Remove the flags tests for READ* and replace them with a test for the DPO
and FUA bits.
IF the device claims DPOFUA support in modesense then the READ* CDBs
MUST allow these two flags. IF the device does NOT claim DPOFUA then any
READ* CDB with these flags must fail with invalod field in cdb.

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
This commit is contained in:
Ronnie Sahlberg
2014-12-22 07:52:51 -08:00
parent 3aef8a0d4f
commit d33a0438a4
27 changed files with 1794 additions and 373 deletions

View File

@@ -41,9 +41,9 @@ test_verify12_flags(void)
CU_ASSERT_EQUAL(ret, 0);
logging(LOG_VERBOSE, "Test VERIFY12 with DPO==1");
logging(LOG_VERBOSE, "Test VERIFY12 with BYTCHK==1");
ret = verify12(sd, 0, block_size,
block_size, 0, 1, 0, buf,
block_size, 0, 0, 1, buf,
EXPECT_STATUS_GOOD);
if (ret == -2) {
logging(LOG_NORMAL, "[SKIPPED] VERIFY12 is not implemented.");
@@ -51,11 +51,4 @@ test_verify12_flags(void)
return;
}
CU_ASSERT_EQUAL(ret, 0);
logging(LOG_VERBOSE, "Test VERIFY12 with BYTCHK==1");
ret = verify12(sd, 0, block_size,
block_size, 0, 0, 1, buf,
EXPECT_STATUS_GOOD);
CU_ASSERT_EQUAL(ret, 0);
}