summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@src.gnome.org>2002-02-21 03:54:34 +0000
committerOwen Taylor <otaylor@src.gnome.org>2002-02-21 03:54:34 +0000
commit88cec4d1358b874a96035e8b4a38a0b57c84c496 (patch)
tree4e97c90300a4592d61be41c9d4c048b1427d28a0 /tests
parent9d3f6abacb11b9c5ac646b1bb8de8b3031e4e46e (diff)
ed Feb 20 22:35:42 2002 Owen Taylor <otaylor@redhat.com>
Fixes from Miroslaw Dobrzanski-Neumann (#71963) * glib/giounix.c (g_io_channel_new_file): Fix trailing comma in enum. * configure.in: Check for unsetenv. * test/uri-test.c: Fall back to trying putenv(VARNAME) if unsetenv isn't present.
Diffstat (limited to 'tests')
-rw-r--r--tests/uri-test.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/uri-test.c b/tests/uri-test.c
index f16d26552..000917656 100644
--- a/tests/uri-test.c
+++ b/tests/uri-test.c
@@ -316,7 +316,14 @@ main (int argc,
char *argv[])
{
#ifdef G_OS_UNIX
+# ifdef HAVE_UNSETENV
unsetenv ("G_BROKEN_FILENAMES");
+# else
+ /* putenv with no = isn't standard, but works to unset the variable
+ * on some systems
+ */
+ putenv ("G_BROKEN_FILENAMES");
+# endif
#endif
run_to_uri_tests ();