Skip to content

Commit

Permalink
Merge pull request #427 from folkertvanheusden/detail
Browse files Browse the repository at this point in the history
For failing writes, show what is in the block instead
  • Loading branch information
sahlberg authored Nov 1, 2024
2 parents 758e09e + aed7faf commit 551d907
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test-tool/test_write_residuals.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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;
}
Expand Down

0 comments on commit 551d907

Please sign in to comment.