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,45 +30,45 @@
void
test_verify10_mismatch(void)
{
int i;
int i;
logging(LOG_VERBOSE, LOG_BLANK_LINE);
logging(LOG_VERBOSE, "Test VERIFY10 for blocks 1-255");
for (i = 1; i <= 256; i++) {
int offset = random() % (i * block_size);
logging(LOG_VERBOSE, LOG_BLANK_LINE);
logging(LOG_VERBOSE, "Test VERIFY10 for blocks 1-255");
for (i = 1; i <= 256; i++) {
int offset = random() % (i * block_size);
if (maximum_transfer_length && maximum_transfer_length < i) {
break;
}
READ10(sd, NULL, 0, i * block_size,
if (maximum_transfer_length && maximum_transfer_length < i) {
break;
}
READ10(sd, NULL, 0, i * block_size,
block_size, 0, 0, 0, 0, 0, scratch,
EXPECT_STATUS_GOOD);
/* flip a random byte in the data */
scratch[offset] ^= 'X';
logging(LOG_VERBOSE, "Flip some bits in the data");
/* flip a random byte in the data */
scratch[offset] ^= 'X';
logging(LOG_VERBOSE, "Flip some bits in the data");
VERIFY10(sd, 0, i * block_size, block_size, 0, 0, 1, scratch,
VERIFY10(sd, 0, i * block_size, block_size, 0, 0, 1, scratch,
EXPECT_MISCOMPARE);
}
}
logging(LOG_VERBOSE, "Test VERIFY10 of 1-256 blocks at the end of the LUN");
for (i = 1; i <= 256; i++) {
int offset = random() % (i * block_size);
logging(LOG_VERBOSE, "Test VERIFY10 of 1-256 blocks at the end of the LUN");
for (i = 1; i <= 256; i++) {
int offset = random() % (i * block_size);
if (maximum_transfer_length && maximum_transfer_length < i) {
break;
}
READ10(sd, NULL, num_blocks - i,
if (maximum_transfer_length && maximum_transfer_length < i) {
break;
}
READ10(sd, NULL, num_blocks - i,
i * block_size, block_size, 0, 0, 0, 0, 0, scratch,
EXPECT_STATUS_GOOD);
/* flip a random byte in the data */
scratch[offset] ^= 'X';
logging(LOG_VERBOSE, "Flip some bits in the data");
/* flip a random byte in the data */
scratch[offset] ^= 'X';
logging(LOG_VERBOSE, "Flip some bits in the data");
VERIFY10(sd, num_blocks - i,
VERIFY10(sd, num_blocks - i,
i * block_size, block_size, 0, 0, 1, scratch,
EXPECT_MISCOMPARE);
}
}
}