Don't rely on /bin/sh
authorMatthias Clasen <mclasen@redhat.com>
Mon, 20 Feb 2012 23:25:31 +0000 (00:25 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 20 Feb 2012 23:26:19 +0000 (00:26 +0100)
Another Fedora UsrMove victim !

glib/tests/utils.c

index 488d6f2..b2c19b3 100644 (file)
@@ -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");