mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-26 22:16:16 +01: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:
parent
7a90af4d33
commit
ed49b882bd
@ -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>
|
||||
|
||||
* 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>
|
||||
|
||||
* 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>
|
||||
|
||||
* 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>
|
||||
|
||||
* 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>
|
||||
|
||||
* 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>
|
||||
|
||||
* 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>
|
||||
|
||||
* 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>
|
||||
|
||||
* glib/giochannel.c: Matthias Clasen's fix for
|
||||
|
@ -190,27 +190,27 @@ check_string_result (const char *expression,
|
||||
char *result,
|
||||
const char *expected)
|
||||
{
|
||||
gboolean match;
|
||||
|
||||
if (expected == NULL)
|
||||
match = result == NULL;
|
||||
else
|
||||
match = result != NULL && strcmp (result, expected) == 0;
|
||||
|
||||
if (!match)
|
||||
{
|
||||
if (!any_test_failed)
|
||||
fprintf (stderr, "\n");
|
||||
|
||||
fprintf (stderr, "FAIL: check failed in %s, line %d\n", file_name, line_number);
|
||||
fprintf (stderr, " evaluated: %s\n", expression);
|
||||
fprintf (stderr, " expected: %s\n", expected == NULL ? "NULL" : expected);
|
||||
fprintf (stderr, " got: %s\n", result == NULL ? "NULL" : result);
|
||||
|
||||
any_test_failed = TRUE;
|
||||
}
|
||||
|
||||
g_free (result);
|
||||
gboolean match;
|
||||
|
||||
if (expected == NULL)
|
||||
match = result == NULL;
|
||||
else
|
||||
match = result != NULL && strcmp (result, expected) == 0;
|
||||
|
||||
if (!match)
|
||||
{
|
||||
if (!any_test_failed)
|
||||
fprintf (stderr, "\n");
|
||||
|
||||
fprintf (stderr, "FAIL: check failed in %s, line %d\n", file_name, line_number);
|
||||
fprintf (stderr, " evaluated: %s\n", expression);
|
||||
fprintf (stderr, " expected: %s\n", expected == NULL ? "NULL" : expected);
|
||||
fprintf (stderr, " got: %s\n", result == NULL ? "NULL" : result);
|
||||
|
||||
any_test_failed = TRUE;
|
||||
}
|
||||
|
||||
g_free (result);
|
||||
}
|
||||
|
||||
static char *
|
||||
@ -224,7 +224,9 @@ test_shell_unquote (const char *str)
|
||||
if (error == NULL)
|
||||
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)
|
||||
return g_strdup ("error in domain other than G_SHELL_ERROR");
|
||||
|
Loading…
Reference in New Issue
Block a user