Merge pull request #427 from folkertvanheusden/detail

For failing writes, show what is in the block instead
This commit is contained in:
Ronnie Sahlberg
2024-11-01 15:49:40 -04:00
committed by GitHub

View File

@@ -229,7 +229,7 @@ write_residuals_test(const struct residuals_test_data *tdata,
for (i = 0; i < expected_write_size; i++) {
if (scratch[i] != 'a') {
logging(LOG_NORMAL, "Blocks were overwritten "
"and no longer contain 'a'");
"and no longer contain 'a': %c", scratch[i]);
CU_FAIL("Blocks were incorrectly overwritten");
break;
}
@@ -250,7 +250,7 @@ write_residuals_test(const struct residuals_test_data *tdata,
for (i = expected_write_size; i < max_len; i++) {
if (scratch[i] != 'a') {
logging(LOG_NORMAL, "Data was overwritten "
"and no longer contain 'a'");
"and no longer contain 'a': %c", scratch[i]);
CU_FAIL("Data was incorrectly overwritten");
break;
}