mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-09 18:54:04 +02:00
Fix bad indenting. I figured I should fix this since I just pointed Alex
* tests/shell-test.c: (check_string_result): Fix bad indenting. I figured I should fix this since I just pointed Alex here to look at this as an example.
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
2001-08-24 Darin Adler <darin@bentspoon.com>
|
||||||
|
|
||||||
|
* tests/shell-test.c: (check_string_result): Fix bad indenting.
|
||||||
|
I figured I should fix this since I just pointed Alex here to
|
||||||
|
look at this as an example.
|
||||||
|
|
||||||
2001-08-24 Ron Steinke <rsteinke@w-link.net>
|
2001-08-24 Ron Steinke <rsteinke@w-link.net>
|
||||||
|
|
||||||
* glib/giochannel.c: Matthias Clasen's fix for
|
* glib/giochannel.c: Matthias Clasen's fix for
|
||||||
|
@@ -1,3 +1,9 @@
|
|||||||
|
2001-08-24 Darin Adler <darin@bentspoon.com>
|
||||||
|
|
||||||
|
* tests/shell-test.c: (check_string_result): Fix bad indenting.
|
||||||
|
I figured I should fix this since I just pointed Alex here to
|
||||||
|
look at this as an example.
|
||||||
|
|
||||||
2001-08-24 Ron Steinke <rsteinke@w-link.net>
|
2001-08-24 Ron Steinke <rsteinke@w-link.net>
|
||||||
|
|
||||||
* glib/giochannel.c: Matthias Clasen's fix for
|
* glib/giochannel.c: Matthias Clasen's fix for
|
||||||
|
@@ -1,3 +1,9 @@
|
|||||||
|
2001-08-24 Darin Adler <darin@bentspoon.com>
|
||||||
|
|
||||||
|
* tests/shell-test.c: (check_string_result): Fix bad indenting.
|
||||||
|
I figured I should fix this since I just pointed Alex here to
|
||||||
|
look at this as an example.
|
||||||
|
|
||||||
2001-08-24 Ron Steinke <rsteinke@w-link.net>
|
2001-08-24 Ron Steinke <rsteinke@w-link.net>
|
||||||
|
|
||||||
* glib/giochannel.c: Matthias Clasen's fix for
|
* glib/giochannel.c: Matthias Clasen's fix for
|
||||||
|
@@ -1,3 +1,9 @@
|
|||||||
|
2001-08-24 Darin Adler <darin@bentspoon.com>
|
||||||
|
|
||||||
|
* tests/shell-test.c: (check_string_result): Fix bad indenting.
|
||||||
|
I figured I should fix this since I just pointed Alex here to
|
||||||
|
look at this as an example.
|
||||||
|
|
||||||
2001-08-24 Ron Steinke <rsteinke@w-link.net>
|
2001-08-24 Ron Steinke <rsteinke@w-link.net>
|
||||||
|
|
||||||
* glib/giochannel.c: Matthias Clasen's fix for
|
* glib/giochannel.c: Matthias Clasen's fix for
|
||||||
|
@@ -1,3 +1,9 @@
|
|||||||
|
2001-08-24 Darin Adler <darin@bentspoon.com>
|
||||||
|
|
||||||
|
* tests/shell-test.c: (check_string_result): Fix bad indenting.
|
||||||
|
I figured I should fix this since I just pointed Alex here to
|
||||||
|
look at this as an example.
|
||||||
|
|
||||||
2001-08-24 Ron Steinke <rsteinke@w-link.net>
|
2001-08-24 Ron Steinke <rsteinke@w-link.net>
|
||||||
|
|
||||||
* glib/giochannel.c: Matthias Clasen's fix for
|
* glib/giochannel.c: Matthias Clasen's fix for
|
||||||
|
@@ -1,3 +1,9 @@
|
|||||||
|
2001-08-24 Darin Adler <darin@bentspoon.com>
|
||||||
|
|
||||||
|
* tests/shell-test.c: (check_string_result): Fix bad indenting.
|
||||||
|
I figured I should fix this since I just pointed Alex here to
|
||||||
|
look at this as an example.
|
||||||
|
|
||||||
2001-08-24 Ron Steinke <rsteinke@w-link.net>
|
2001-08-24 Ron Steinke <rsteinke@w-link.net>
|
||||||
|
|
||||||
* glib/giochannel.c: Matthias Clasen's fix for
|
* glib/giochannel.c: Matthias Clasen's fix for
|
||||||
|
@@ -1,3 +1,9 @@
|
|||||||
|
2001-08-24 Darin Adler <darin@bentspoon.com>
|
||||||
|
|
||||||
|
* tests/shell-test.c: (check_string_result): Fix bad indenting.
|
||||||
|
I figured I should fix this since I just pointed Alex here to
|
||||||
|
look at this as an example.
|
||||||
|
|
||||||
2001-08-24 Ron Steinke <rsteinke@w-link.net>
|
2001-08-24 Ron Steinke <rsteinke@w-link.net>
|
||||||
|
|
||||||
* glib/giochannel.c: Matthias Clasen's fix for
|
* glib/giochannel.c: Matthias Clasen's fix for
|
||||||
|
@@ -1,3 +1,9 @@
|
|||||||
|
2001-08-24 Darin Adler <darin@bentspoon.com>
|
||||||
|
|
||||||
|
* tests/shell-test.c: (check_string_result): Fix bad indenting.
|
||||||
|
I figured I should fix this since I just pointed Alex here to
|
||||||
|
look at this as an example.
|
||||||
|
|
||||||
2001-08-24 Ron Steinke <rsteinke@w-link.net>
|
2001-08-24 Ron Steinke <rsteinke@w-link.net>
|
||||||
|
|
||||||
* glib/giochannel.c: Matthias Clasen's fix for
|
* glib/giochannel.c: Matthias Clasen's fix for
|
||||||
|
@@ -190,27 +190,27 @@ check_string_result (const char *expression,
|
|||||||
char *result,
|
char *result,
|
||||||
const char *expected)
|
const char *expected)
|
||||||
{
|
{
|
||||||
gboolean match;
|
gboolean match;
|
||||||
|
|
||||||
if (expected == NULL)
|
if (expected == NULL)
|
||||||
match = result == NULL;
|
match = result == NULL;
|
||||||
else
|
else
|
||||||
match = result != NULL && strcmp (result, expected) == 0;
|
match = result != NULL && strcmp (result, expected) == 0;
|
||||||
|
|
||||||
if (!match)
|
if (!match)
|
||||||
{
|
{
|
||||||
if (!any_test_failed)
|
if (!any_test_failed)
|
||||||
fprintf (stderr, "\n");
|
fprintf (stderr, "\n");
|
||||||
|
|
||||||
fprintf (stderr, "FAIL: check failed in %s, line %d\n", file_name, line_number);
|
fprintf (stderr, "FAIL: check failed in %s, line %d\n", file_name, line_number);
|
||||||
fprintf (stderr, " evaluated: %s\n", expression);
|
fprintf (stderr, " evaluated: %s\n", expression);
|
||||||
fprintf (stderr, " expected: %s\n", expected == NULL ? "NULL" : expected);
|
fprintf (stderr, " expected: %s\n", expected == NULL ? "NULL" : expected);
|
||||||
fprintf (stderr, " got: %s\n", result == NULL ? "NULL" : result);
|
fprintf (stderr, " got: %s\n", result == NULL ? "NULL" : result);
|
||||||
|
|
||||||
any_test_failed = TRUE;
|
any_test_failed = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
g_free (result);
|
g_free (result);
|
||||||
}
|
}
|
||||||
|
|
||||||
static char *
|
static char *
|
||||||
@@ -224,7 +224,9 @@ test_shell_unquote (const char *str)
|
|||||||
if (error == NULL)
|
if (error == NULL)
|
||||||
return result;
|
return result;
|
||||||
|
|
||||||
/* Leaks the error, which is no big deal. */
|
/* Leaks the error, which is no big deal and easy to fix if we
|
||||||
|
* decide it matters.
|
||||||
|
*/
|
||||||
|
|
||||||
if (error->domain != G_SHELL_ERROR)
|
if (error->domain != G_SHELL_ERROR)
|
||||||
return g_strdup ("error in domain other than G_SHELL_ERROR");
|
return g_strdup ("error in domain other than G_SHELL_ERROR");
|
||||||
|
Reference in New Issue
Block a user