[glib/glib-2-30] Don't rely on /bin/sh
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/glib-2-30] Don't rely on /bin/sh
- Date: Sun, 11 Mar 2012 22:23:54 +0000 (UTC)
commit 2fec30b2033ccf91654eb8c451c875d9bd959afc
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 81f2706..965ba9f 100644
--- a/glib/tests/utils.c
+++ b/glib/tests/utils.c
@@ -211,11 +211,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]