gtestutils: Use stdio rather than write() to be Windows-friendly
authorDan Winship <danw@gnome.org>
Wed, 22 May 2013 17:20:08 +0000 (14:20 -0300)
committerDan Winship <danw@gnome.org>
Wed, 22 May 2013 17:25:50 +0000 (14:25 -0300)
commit9115dd0a7ce31f69f78aca0b0b32d7d2e4670be3
tree62b6717d5a5cb0a8518e808b2f5b7e96e39c3e78
parentc9cc0beb3a8c298b843efdb71822a71cc078a8ac
gtestutils: Use stdio rather than write() to be Windows-friendly

Windows doesn't define STDOUT_FILENO and STDERR_FILENO, and they're
not even guaranteed to be 1 and 2. So just use stdio instead. Also fix
a counting error. Pointed out on gtk-devel-list.
glib/gtestutils.c