Chun-wei Fan ccba409d34 tests/: Avoid closing invalid fd's
...and only include unistd.h when we are on *NIX.

Newer Visual C++ runtimes (8.0/2005 and later) will cause the program to
crash with an internal abort() call when they detect instances of close()
being called on an invalid fd, such as when the fd is -1, and these should
be purged anyways.

https://bugzilla.gnome.org/show_bug.cgi?id=711047
2013-11-11 22:36:32 +08:00
..
2005-10-05 17:37:46 +00:00
2013-11-11 07:27:22 +01:00
2013-01-26 10:09:33 -05:00
2013-01-14 17:35:47 -05:00
2007-01-05 03:31:54 +00:00
2013-11-10 22:41:16 +01:00
2013-11-10 22:42:57 +01:00
2013-11-11 22:36:32 +08:00
2012-10-16 09:39:24 -04:00
2013-11-10 22:41:44 +01:00
2009-05-30 15:29:23 +02:00
2013-11-10 22:53:42 +01:00
2012-11-15 14:19:06 -05:00
2011-05-01 17:10:04 -04:00
2012-08-21 21:15:45 +02:00
2013-11-11 22:36:32 +08:00
2013-11-10 22:44:12 +01:00
2013-11-11 08:14:45 +01:00