TESTS: ORWRITE is optional, lack os support should skip the test not fail it

This commit is contained in:
Ronnie Sahlberg
2013-04-26 17:52:55 -07:00
parent 78e02737c6
commit 1331656f85
7 changed files with 51 additions and 17 deletions

View File

@@ -46,10 +46,11 @@ test_orwrite_wrprotect(void)
block_size, block_size,
i, 0, 0, 0, 0, buf);
if (ret == -2) {
CU_PASS("[SKIPPED] Target does not support ORWRITE. Skipping test");
free(buf);
logging(LOG_NORMAL, "[SKIPPED] ORWRITE is not implemented.");
CU_PASS("ORWRITE is not implemented.");
return;
}
}
CU_ASSERT_EQUAL(ret, 0);
}
free(buf);