diff --git a/test-tool/test_preventallow_eject.c b/test-tool/test_preventallow_eject.c index 0f50357..2fc168c 100644 --- a/test-tool/test_preventallow_eject.c +++ b/test-tool/test_preventallow_eject.c @@ -37,6 +37,11 @@ test_preventallow_eject(void) logging(LOG_VERBOSE, "Set the PREVENT flag"); ret = preventallow(sd, 1); + if (ret == -2) { + logging(LOG_NORMAL, "[SKIPPED] PREVENTALLOW is not implemented"); + CU_PASS("PREVENTALLOW is not implemented"); + return; + } CU_ASSERT_EQUAL(ret, 0); logging(LOG_VERBOSE, "Try to eject the medium"); diff --git a/test-tool/test_preventallow_itnexus_loss.c b/test-tool/test_preventallow_itnexus_loss.c index 38b8d0f..6573902 100644 --- a/test-tool/test_preventallow_itnexus_loss.c +++ b/test-tool/test_preventallow_itnexus_loss.c @@ -44,7 +44,6 @@ test_preventallow_itnexus_loss(void) } logging(LOG_VERBOSE, "Set the PREVENT flag"); - ret = preventallow(sd, 1); CU_ASSERT_EQUAL(ret, 0); logging(LOG_VERBOSE, "Try to eject the medium"); diff --git a/test-tool/test_preventallow_simple.c b/test-tool/test_preventallow_simple.c index a76fbdb..089abce 100644 --- a/test-tool/test_preventallow_simple.c +++ b/test-tool/test_preventallow_simple.c @@ -37,6 +37,11 @@ test_preventallow_simple(void) logging(LOG_VERBOSE, "Test we can set PREVENT flag"); ret = preventallow(sd, 1); + if (ret == -2) { + logging(LOG_NORMAL, "[SKIPPED] PREVENTALLOW is not implemented"); + CU_PASS("PREVENTALLOW is not implemented"); + return; + } CU_ASSERT_EQUAL(ret, 0); logging(LOG_VERBOSE, "Test we can clear PREVENT flag");