Re: [Qemu-devel] [PATCH 3/3] ide-test: Add FLUSH CACHE test case

2013-05-30 Thread Stefan Hajnoczi
On Wed, May 29, 2013 at 01:34:06PM +0200, Kevin Wolf wrote: +/* Check registers */ +data = inb(IDE_BASE + reg_device); +g_assert_cmpint(data 0x10, ==, 0); assert_bit_clear() with a constant instead of the 0x10 magic number?

[Qemu-devel] [PATCH 3/3] ide-test: Add FLUSH CACHE test case

2013-05-29 Thread Kevin Wolf
This checks in particular that BSY is set while the flush request is in flight. Signed-off-by: Kevin Wolf kw...@redhat.com --- tests/ide-test.c | 40 1 file changed, 40 insertions(+) diff --git a/tests/ide-test.c b/tests/ide-test.c index 365e995..5744462