Fix a bunch of typos
This commit is contained in:
@@ -33,10 +33,6 @@ static int my_iscsi_queue_pdu(struct iscsi_context *iscsi, struct iscsi_pdu *pdu
|
||||
/* change the cmdsn so it becomes too big */
|
||||
*(uint32_t *)&pdu->outdata.data[24] = htonl(iscsi->maxcmdsn + 1);
|
||||
break;
|
||||
case 2:
|
||||
/* change the cmdsn so it becomes too small */
|
||||
*(uint32_t *)&pdu->outdata.data[24] = 0;
|
||||
break;
|
||||
}
|
||||
|
||||
change_cmdsn = 0;
|
||||
@@ -59,7 +55,7 @@ void test_iscsi_cmdsn_invalid(void)
|
||||
local_iscsi_queue_pdu = my_iscsi_queue_pdu;
|
||||
change_cmdsn = 1;
|
||||
/* we dont want autoreconnect since some targets will drop the
|
||||
* on this condition.
|
||||
* connection on this condition.
|
||||
*/
|
||||
iscsi_set_noautoreconnect(iscsic, 1);
|
||||
iscsi_set_timeout(iscsic, 3);
|
||||
|
||||
@@ -301,7 +301,7 @@ test_write10_residuals(void)
|
||||
for (i = block_size; i < 2 * block_size; i++) {
|
||||
if (buf[i] != 'a') {
|
||||
logging(LOG_NORMAL, "Second block was overwritten and no longer contain 'a'");
|
||||
CU_FAIL("Second block was incorrectly overwritten correctly");
|
||||
CU_FAIL("Second block was incorrectly overwritten");
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -375,7 +375,7 @@ test_write10_residuals(void)
|
||||
for (i = block_size; i < 2 * block_size; i++) {
|
||||
if (buf[i] != 'a') {
|
||||
logging(LOG_NORMAL, "Second block was overwritten and no longer contain 'a'");
|
||||
CU_FAIL("Second block was incorrectly overwritten correctly");
|
||||
CU_FAIL("Second block was incorrectly overwritten");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -300,7 +300,7 @@ test_write12_residuals(void)
|
||||
for (i = block_size; i < 2 * block_size; i++) {
|
||||
if (buf[i] != 'a') {
|
||||
logging(LOG_NORMAL, "Second block was overwritten and no longer contain 'a'");
|
||||
CU_FAIL("Second block was incorrectly overwritten correctly");
|
||||
CU_FAIL("Second block was incorrectly overwritten");
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -374,7 +374,7 @@ test_write12_residuals(void)
|
||||
for (i = block_size; i < 2 * block_size; i++) {
|
||||
if (buf[i] != 'a') {
|
||||
logging(LOG_NORMAL, "Second block was overwritten and no longer contain 'a'");
|
||||
CU_FAIL("Second block was incorrectly overwritten correctly");
|
||||
CU_FAIL("Second block was incorrectly overwritten");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -300,7 +300,7 @@ test_write16_residuals(void)
|
||||
for (i = block_size; i < 2 * block_size; i++) {
|
||||
if (buf[i] != 'a') {
|
||||
logging(LOG_NORMAL, "Second block was overwritten and no longer contain 'a'");
|
||||
CU_FAIL("Second block was incorrectly overwritten correctly");
|
||||
CU_FAIL("Second block was incorrectly overwritten");
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -374,7 +374,7 @@ test_write16_residuals(void)
|
||||
for (i = block_size; i < 2 * block_size; i++) {
|
||||
if (buf[i] != 'a') {
|
||||
logging(LOG_NORMAL, "Second block was overwritten and no longer contain 'a'");
|
||||
CU_FAIL("Second block was incorrectly overwritten correctly");
|
||||
CU_FAIL("Second block was incorrectly overwritten");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -309,7 +309,7 @@ test_writeverify10_residuals(void)
|
||||
for (i = block_size; i < 2 * block_size; i++) {
|
||||
if (buf[i] != 'a') {
|
||||
logging(LOG_NORMAL, "Second block was overwritten and no longer contain 'a'");
|
||||
CU_FAIL("Second block was incorrectly overwritten correctly");
|
||||
CU_FAIL("Second block was incorrectly overwritten");
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -383,7 +383,7 @@ test_writeverify10_residuals(void)
|
||||
for (i = block_size; i < 2 * block_size; i++) {
|
||||
if (buf[i] != 'a') {
|
||||
logging(LOG_NORMAL, "Second block was overwritten and no longer contain 'a'");
|
||||
CU_FAIL("Second block was incorrectly overwritten correctly");
|
||||
CU_FAIL("Second block was incorrectly overwritten");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -309,7 +309,7 @@ test_writeverify12_residuals(void)
|
||||
for (i = block_size; i < 2 * block_size; i++) {
|
||||
if (buf[i] != 'a') {
|
||||
logging(LOG_NORMAL, "Second block was overwritten and no longer contain 'a'");
|
||||
CU_FAIL("Second block was incorrectly overwritten correctly");
|
||||
CU_FAIL("Second block was incorrectly overwritten");
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -383,7 +383,7 @@ test_writeverify12_residuals(void)
|
||||
for (i = block_size; i < 2 * block_size; i++) {
|
||||
if (buf[i] != 'a') {
|
||||
logging(LOG_NORMAL, "Second block was overwritten and no longer contain 'a'");
|
||||
CU_FAIL("Second block was incorrectly overwritten correctly");
|
||||
CU_FAIL("Second block was incorrectly overwritten");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -310,7 +310,7 @@ test_writeverify16_residuals(void)
|
||||
for (i = block_size; i < 2 * block_size; i++) {
|
||||
if (buf[i] != 'a') {
|
||||
logging(LOG_NORMAL, "Second block was overwritten and no longer contain 'a'");
|
||||
CU_FAIL("Second block was incorrectly overwritten correctly");
|
||||
CU_FAIL("Second block was incorrectly overwritten");
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -384,7 +384,7 @@ test_writeverify16_residuals(void)
|
||||
for (i = block_size; i < 2 * block_size; i++) {
|
||||
if (buf[i] != 'a') {
|
||||
logging(LOG_NORMAL, "Second block was overwritten and no longer contain 'a'");
|
||||
CU_FAIL("Second block was incorrectly overwritten correctly");
|
||||
CU_FAIL("Second block was incorrectly overwritten");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user