mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-17 20:17:37 -04:00
Test more possible alignments in the Write & Verify test. Some ata drivers apply optimisations up to line size alignment.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25787 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
e891e90883
commit
9a74223f7d
1 changed files with 4 additions and 4 deletions
|
@ -134,9 +134,9 @@ static bool test_fs(void)
|
||||||
total = TEST_SIZE;
|
total = TEST_SIZE;
|
||||||
while (total > 0)
|
while (total > 0)
|
||||||
{
|
{
|
||||||
current = rb->rand() % (audiobuflen - 4);
|
align = rb->rand() & 0xf;
|
||||||
|
current = rb->rand() % (audiobuflen - align);
|
||||||
current = MIN(current, total);
|
current = MIN(current, total);
|
||||||
align = rb->rand() & 3;
|
|
||||||
rb->snprintf(text_buf, sizeof text_buf, "Wrt %dKB, %dKB left",
|
rb->snprintf(text_buf, sizeof text_buf, "Wrt %dKB, %dKB left",
|
||||||
current >> 10, total >> 10);
|
current >> 10, total >> 10);
|
||||||
log_text(text_buf, false);
|
log_text(text_buf, false);
|
||||||
|
@ -163,9 +163,9 @@ static bool test_fs(void)
|
||||||
total = TEST_SIZE;
|
total = TEST_SIZE;
|
||||||
while (total > 0)
|
while (total > 0)
|
||||||
{
|
{
|
||||||
current = rb->rand() % (audiobuflen - 4);
|
align = rb->rand() & 0xf;
|
||||||
|
current = rb->rand() % (audiobuflen - align);
|
||||||
current = MIN(current, total);
|
current = MIN(current, total);
|
||||||
align = rb->rand() & 3;
|
|
||||||
rb->snprintf(text_buf, sizeof text_buf, "Cmp %dKB, %dKB left",
|
rb->snprintf(text_buf, sizeof text_buf, "Cmp %dKB, %dKB left",
|
||||||
current >> 10, total >> 10);
|
current >> 10, total >> 10);
|
||||||
log_text(text_buf, false);
|
log_text(text_buf, false);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue