diff --git a/test-tool/test_preventallow_cold_reset.c b/test-tool/test_preventallow_cold_reset.c index a604b2e..3f8da1e 100644 --- a/test-tool/test_preventallow_cold_reset.c +++ b/test-tool/test_preventallow_cold_reset.c @@ -61,7 +61,8 @@ test_preventallow_cold_reset(void) logging(LOG_VERBOSE, "Perform cold reset on target"); ret = iscsi_task_mgmt_target_cold_reset_sync(sd->iscsi_ctx); logging(LOG_VERBOSE, "Wait until all unit attentions clear"); - while (testunitready(sd, EXPECT_STATUS_GOOD) != 0); + while (testunitready(sd, EXPECT_STATUS_GOOD) != 0) + ; CU_ASSERT_EQUAL(ret, 0); diff --git a/test-tool/test_preventallow_lun_reset.c b/test-tool/test_preventallow_lun_reset.c index f7c0502..ae5c3db 100644 --- a/test-tool/test_preventallow_lun_reset.c +++ b/test-tool/test_preventallow_lun_reset.c @@ -62,7 +62,8 @@ test_preventallow_lun_reset(void) ret = iscsi_task_mgmt_lun_reset_sync(sd->iscsi_ctx, sd->iscsi_lun); CU_ASSERT_EQUAL(ret, 0); logging(LOG_VERBOSE, "Wait until all unit attentions clear"); - while (testunitready(sd, EXPECT_STATUS_GOOD) != 0); + while (testunitready(sd, EXPECT_STATUS_GOOD) != 0) + ; logging(LOG_VERBOSE, "Try to eject the medium"); diff --git a/test-tool/test_preventallow_warm_reset.c b/test-tool/test_preventallow_warm_reset.c index 42604d1..cb0970a 100644 --- a/test-tool/test_preventallow_warm_reset.c +++ b/test-tool/test_preventallow_warm_reset.c @@ -62,7 +62,8 @@ test_preventallow_warm_reset(void) ret = iscsi_task_mgmt_target_warm_reset_sync(sd->iscsi_ctx); CU_ASSERT_EQUAL(ret, 0); logging(LOG_VERBOSE, "Wait until all unit attentions clear"); - while (testunitready(sd, EXPECT_STATUS_GOOD) != 0); + while (testunitready(sd, EXPECT_STATUS_GOOD) != 0) + ; logging(LOG_VERBOSE, "Try to eject the medium");