Don't rely on /bin/sh

Another Fedora UsrMove victim !
This commit is contained in:
Matthias Clasen 2012-02-21 00:25:31 +01:00
parent 3808a181db
commit dbc01d3090

View File

@ -213,11 +213,11 @@ test_find_program (void)
gchar *res; gchar *res;
res = g_find_program_in_path ("sh"); res = g_find_program_in_path ("sh");
g_assert_cmpstr (res, ==, "/bin/sh"); g_assert (res != NULL);
g_free (res); g_free (res);
res = g_find_program_in_path ("/bin/sh"); res = g_find_program_in_path ("/bin/sh");
g_assert_cmpstr (res, ==, "/bin/sh"); g_assert (res != NULL);
g_free (res); g_free (res);
res = g_find_program_in_path ("this_program_does_not_exit"); res = g_find_program_in_path ("this_program_does_not_exit");