TEST: Add test for the protection information setting in READCAPACITY16

If the device does not support PI (INQ->PROTECT) then
verify that PROT_EN, P_TYPE and P_I_EXP are all zero.

If the device does support PI and IF PROT_EN is clear
then verify that both P_TYPE and P_I_EXP are zero.

If the device does support PI and IF PROT_EN is set
then verify that P_TYPE is 0, 1 or 2
This commit is contained in:
Ronnie Sahlberg
2013-05-13 20:03:56 -07:00
parent f9fb1e0ee3
commit f49a1beb16
4 changed files with 117 additions and 2 deletions
+2 -1
View File
@@ -132,8 +132,9 @@ void test_read16_residuals(void);
void test_readcapacity10_simple(void);
void test_readcapacity16_simple(void);
void test_readcapacity16_alloclen(void);
void test_readcapacity16_protection(void);
void test_readcapacity16_simple(void);
void test_readonly_sbc(void);