mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-08 18:36:17 +01:00
Merge branch 'wip/pwithnall/fix-environment-tests' into 'main'
tests: Fix environment test on FreeBSD See merge request GNOME/glib!2407
This commit is contained in:
commit
8ca2a7d7c8
@ -113,7 +113,10 @@ test_getenv (void)
|
|||||||
|
|
||||||
g_assert_true (g_setenv ("foo", "bar=baz", TRUE));
|
g_assert_true (g_setenv ("foo", "bar=baz", TRUE));
|
||||||
|
|
||||||
|
/* Different OSs return different values; some return NULL because the key
|
||||||
|
* is invalid, but some are happy to return what we set above. */
|
||||||
data = g_getenv ("foo=bar");
|
data = g_getenv ("foo=bar");
|
||||||
|
if (data != NULL)
|
||||||
g_assert_cmpstr (data, ==, "baz");
|
g_assert_cmpstr (data, ==, "baz");
|
||||||
|
|
||||||
data = g_getenv ("foo");
|
data = g_getenv ("foo");
|
||||||
|
Loading…
Reference in New Issue
Block a user