TESTS: WRITEVERIFY10/12/16 are all optional.
Update the helpers to return -2/not supported on invalid operaction code. Update all tests to accept that the opcode might be missing and abort the test without failing.
This commit is contained in:
@@ -42,9 +42,10 @@ test_writeverify12_simple(void)
|
||||
block_size, 0, 0, 0, 0, buf);
|
||||
free(buf);
|
||||
if (ret == -2) {
|
||||
CU_PASS("[SKIPPED] Target does not support WRITEVERIFY12. Skipping test");
|
||||
logging(LOG_NORMAL, "[SKIPPED] WRITE1VERIFY12 is not implemented.");
|
||||
CU_PASS("WRITEVERIFY12 is not implemented.");
|
||||
return;
|
||||
}
|
||||
}
|
||||
CU_ASSERT_EQUAL(ret, 0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user