[glib] Don't rely on /bin/sh



commit dbc01d30901204f676ce6225c5f1627a47924c17
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Feb 21 00:25:31 2012 +0100

    Don't rely on /bin/sh
    
    Another Fedora UsrMove victim !

 glib/tests/utils.c |    4 ++--
 1 files 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");



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]