diff options
Diffstat (limited to 'tests/ide-test.c')
-rw-r--r-- | tests/ide-test.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/ide-test.c b/tests/ide-test.c index 828e71a38c..7e2eb9455a 100644 --- a/tests/ide-test.c +++ b/tests/ide-test.c @@ -455,7 +455,10 @@ static void test_flush(void) data = inb(IDE_BASE + reg_device); g_assert_cmpint(data & DEV, ==, 0); - data = inb(IDE_BASE + reg_status); + do { + data = inb(IDE_BASE + reg_status); + } while (data & BSY); + assert_bit_set(data, DRDY); assert_bit_clear(data, BSY | DF | ERR | DRQ); |