glib/tests/enviroment.c: Fix running on Windows
authorChun-wei Fan <fanchunwei@src.gnome.org>
Tue, 26 Nov 2013 10:57:04 +0000 (18:57 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Wed, 27 Nov 2013 00:01:46 +0000 (08:01 +0800)
commit29b66e1458113e1786209f5784f919082d22c618
treee2c833225677b0230600e938556a90f08e551658
parent32cfcc87400af61261ecdac29b38962c1de876f1
glib/tests/enviroment.c: Fix running on Windows

Don't attempt to insert environmental variables in the hash table during
the test listenv that is an empty string, as GetEnvironmentStringsW() also
returns special enviroment variables which have empty strings as their
variable names, at least on Windows 7 and 8.

https://bugzilla.gnome.org/show_bug.cgi?id=711047
glib/tests/environment.c