test-ovsdb: Fix setvbuf incompatibility on Windows.
authorGurucharan Shetty <gshetty@nicira.com>
Mon, 12 May 2014 16:38:48 +0000 (09:38 -0700)
committerGurucharan Shetty <gshetty@nicira.com>
Wed, 14 May 2014 21:48:34 +0000 (14:48 -0700)
commit76a6e6309c2d8a7d3df16b531a584598c0bc3b04
tree768812db61cca68e78fcb0ee42a75f56c392854e
parentcf1e5c18c50c7c5cb7c50b2ad839e39865daf206
test-ovsdb: Fix setvbuf incompatibility on Windows.

setvbuf() in Windows treats _IOLBF to be the same as _IOFBF. So
we cannot have size as zero (otherwise, there is a crash).

Workaround is to set _IONBF. I don't see unit test failures
because of the change.

Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
tests/test-ovsdb.c