test-tool: Change command_is_implemented from a global variable into an argument
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
This commit is contained in:
@@ -90,7 +90,10 @@ test_write16_residuals(void)
|
||||
iscsi_set_noautoreconnect(sd->iscsi_ctx, 1);
|
||||
|
||||
for (i = 0; i < ARRAY_SIZE(write16_residuals); i++) {
|
||||
write_residuals_test(&write16_residuals[i]);
|
||||
bool command_is_implemented;
|
||||
|
||||
write_residuals_test(&write16_residuals[i],
|
||||
&command_is_implemented);
|
||||
|
||||
if (!command_is_implemented) {
|
||||
CU_PASS("WRITE16 is not implemented.");
|
||||
|
||||
Reference in New Issue
Block a user