From dbc01d30901204f676ce6225c5f1627a47924c17 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 21 Feb 2012 00:25:31 +0100 Subject: [PATCH] Don't rely on /bin/sh Another Fedora UsrMove victim ! --- glib/tests/utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/glib/tests/utils.c b/glib/tests/utils.c index 488d6f2..b2c19b3 100644 --- a/glib/tests/utils.c +++ b/glib/tests/utils.c @@ -213,11 +213,11 @@ test_find_program (void) gchar *res; res = g_find_program_in_path ("sh"); - g_assert_cmpstr (res, ==, "/bin/sh"); + g_assert (res != NULL); g_free (res); res = g_find_program_in_path ("/bin/sh"); - g_assert_cmpstr (res, ==, "/bin/sh"); + g_assert (res != NULL); g_free (res); res = g_find_program_in_path ("this_program_does_not_exit"); -- 2.7.4