tests: add file-write-read test
commit4eaab85cb1c1ba9c575d29921df81d63c7aa35df
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Wed, 25 Nov 2015 12:59:12 +0000 (25 13:59 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 25 Nov 2015 23:56:45 +0000 (25 17:56 -0600)
treeb36d8d90c4e2fbbf1b5454af287c67447aa5ec7f
parent895b00f62a7e86724dc7352d67c7808d37366130
tests: add file-write-read test

This test exhibits a POSIX behaviour regarding switching between write
and read. It's undefined result if the application doesn't ensure a
flush between the two operations (with glibc, the flush can be implicit
when the buffer size is relatively small). The previous commit fixes
this test.

Related to:
https://bugzilla.redhat.com/show_bug.cgi?id=1210246

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
tests/test-qga.c