Tests: convert tabs to 8 spaces

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
This commit is contained in:
Ronnie Sahlberg
2016-02-21 16:17:18 -08:00
parent 5a80c7b581
commit b4320bd76c
215 changed files with 13344 additions and 13344 deletions

View File

@@ -30,34 +30,34 @@
void
test_writeatomic16_wrprotect(void)
{
int i, gran;
int i, gran;
CHECK_FOR_DATALOSS;
CHECK_FOR_SBC;
CHECK_FOR_DATALOSS;
CHECK_FOR_SBC;
if (!inq_bl) {
CU_PASS("BlockLimits VPD is not available. Skipping test.\n");
return;
}
if (!inq_bl) {
CU_PASS("BlockLimits VPD is not available. Skipping test.\n");
return;
}
logging(LOG_VERBOSE, LOG_BLANK_LINE);
logging(LOG_VERBOSE, LOG_BLANK_LINE);
gran = inq_bl->atomic_gran ? inq_bl->atomic_gran : 1;
memset(scratch, 0, block_size);
WRITEATOMIC16(sd, 0, block_size * gran, block_size, 0, 0, 0, 0, scratch,
gran = inq_bl->atomic_gran ? inq_bl->atomic_gran : 1;
memset(scratch, 0, block_size);
WRITEATOMIC16(sd, 0, block_size * gran, block_size, 0, 0, 0, 0, scratch,
EXPECT_STATUS_GOOD);
logging(LOG_VERBOSE, "Test WRITEATOMIC16 with non-zero WRPROTECT");
memset(scratch, 0xa6, block_size);
if (!inq->protect || (rc16 != NULL && !rc16->prot_en)) {
logging(LOG_VERBOSE, "Device does not support/use protection information. All commands should fail.");
for (i = 1; i < 8; i++) {
WRITEATOMIC16(sd, 0, gran * block_size, block_size,
logging(LOG_VERBOSE, "Test WRITEATOMIC16 with non-zero WRPROTECT");
memset(scratch, 0xa6, block_size);
if (!inq->protect || (rc16 != NULL && !rc16->prot_en)) {
logging(LOG_VERBOSE, "Device does not support/use protection information. All commands should fail.");
for (i = 1; i < 8; i++) {
WRITEATOMIC16(sd, 0, gran * block_size, block_size,
i, 0, 0, 0, scratch,
EXPECT_INVALID_FIELD_IN_CDB);
}
return;
}
}
return;
}
logging(LOG_NORMAL, "No tests for devices that support protection information yet.");
logging(LOG_NORMAL, "No tests for devices that support protection information yet.");
}