T0105_read10_invalid: suppress signed/unsigned comparison warnings
Signed-off-by: Arne Redlich <arne.redlich@googlemail.com>
This commit is contained in:
@@ -120,7 +120,8 @@ int T0105_read10_invalid(const char *initiator, const char *url, int data_loss _
|
|||||||
scsi_free_scsi_task(task);
|
scsi_free_scsi_task(task);
|
||||||
goto test2;
|
goto test2;
|
||||||
}
|
}
|
||||||
if (task->residual_status != SCSI_RESIDUAL_OVERFLOW || task->residual != block_size) {
|
if (task->residual_status != SCSI_RESIDUAL_OVERFLOW ||
|
||||||
|
task->residual != (int64_t)block_size) {
|
||||||
printf("[FAILED]\n");
|
printf("[FAILED]\n");
|
||||||
printf("Read10 returned incorrect residual overflow.\n");
|
printf("Read10 returned incorrect residual overflow.\n");
|
||||||
ret = -1;
|
ret = -1;
|
||||||
@@ -166,7 +167,8 @@ test2:
|
|||||||
scsi_free_scsi_task(task);
|
scsi_free_scsi_task(task);
|
||||||
goto test3;
|
goto test3;
|
||||||
}
|
}
|
||||||
if (task->residual_status != SCSI_RESIDUAL_UNDERFLOW || task->residual != block_size) {
|
if (task->residual_status != SCSI_RESIDUAL_UNDERFLOW ||
|
||||||
|
task->residual != (int64_t)block_size) {
|
||||||
printf("[FAILED]\n");
|
printf("[FAILED]\n");
|
||||||
printf("Read10 returned incorrect residual underflow.\n");
|
printf("Read10 returned incorrect residual underflow.\n");
|
||||||
ret = -1;
|
ret = -1;
|
||||||
@@ -209,7 +211,8 @@ test3:
|
|||||||
scsi_free_scsi_task(task);
|
scsi_free_scsi_task(task);
|
||||||
goto test4;
|
goto test4;
|
||||||
}
|
}
|
||||||
if (task->residual_status != SCSI_RESIDUAL_OVERFLOW || task->residual != block_size - 200) {
|
if (task->residual_status != SCSI_RESIDUAL_OVERFLOW ||
|
||||||
|
task->residual != (int64_t)(block_size - 200)) {
|
||||||
printf("[FAILED]\n");
|
printf("[FAILED]\n");
|
||||||
printf("Read10 returned incorrect residual overflow.\n");
|
printf("Read10 returned incorrect residual overflow.\n");
|
||||||
ret = -1;
|
ret = -1;
|
||||||
@@ -251,7 +254,8 @@ test4:
|
|||||||
scsi_free_scsi_task(task);
|
scsi_free_scsi_task(task);
|
||||||
goto test5;
|
goto test5;
|
||||||
}
|
}
|
||||||
if (task->residual_status != SCSI_RESIDUAL_OVERFLOW || task->residual != block_size) {
|
if (task->residual_status != SCSI_RESIDUAL_OVERFLOW ||
|
||||||
|
task->residual != (int64_t)block_size) {
|
||||||
printf("[FAILED]\n");
|
printf("[FAILED]\n");
|
||||||
printf("Read10 returned incorrect residual overflow.\n");
|
printf("Read10 returned incorrect residual overflow.\n");
|
||||||
ret = -1;
|
ret = -1;
|
||||||
|
|||||||
Reference in New Issue
Block a user