From: Dan Winship Date: Fri, 1 Feb 2008 15:28:19 +0000 (+0000) Subject: don't use "stdout" as a variable name; it's allowed to be a macro (and it X-Git-Tag: LIBSOUP_2_3_2~19 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c74e8efcf6e4aa1d3048ec7161bb6d497e463246;p=platform%2Fupstream%2Flibsoup.git don't use "stdout" as a variable name; it's allowed to be a macro (and it * tests/query-test.c (do_test): don't use "stdout" as a variable name; it's allowed to be a macro (and it is one on Solaris). #513602, patch from Jeff Cai. svn path=/trunk/; revision=1064 --- diff --git a/ChangeLog b/ChangeLog index aeb1e0d..e6b78c1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-02-01 Dan Winship + + * tests/query-test.c (do_test): don't use "stdout" as a variable + name; it's allowed to be a macro (and it is one on Solaris). + #513602, patch from Jeff Cai. + 2008-01-31 Dan Winship * libsoup/soup-date.c (soup_date_to_time_t): new diff --git a/tests/query-test.c b/tests/query-test.c index 46be99e..255cd4d 100644 --- a/tests/query-test.c +++ b/tests/query-test.c @@ -61,7 +61,7 @@ do_test (int n, gboolean extra, const char *uri) { GPtrArray *args; char *title_arg = NULL, *name_arg = NULL; - char *stdout = NULL; + char *str_stdout = NULL; debug_printf (1, "%2d. '%s' '%s'%s: ", n * 2 + (extra ? 2 : 1), tests[n].title ? tests[n].title : "(null)", @@ -91,17 +91,17 @@ do_test (int n, gboolean extra, const char *uri) if (g_spawn_sync (NULL, (char **)args->pdata, NULL, G_SPAWN_SEARCH_PATH | G_SPAWN_STDERR_TO_DEV_NULL, NULL, NULL, - &stdout, NULL, NULL, NULL)) { - if (stdout && !strcmp (stdout, tests[n].result)) + &str_stdout, NULL, NULL, NULL)) { + if (str_stdout && !strcmp (str_stdout, tests[n].result)) debug_printf (1, "OK!\n"); else { debug_printf (1, "WRONG!\n"); debug_printf (1, " expected '%s', got '%s'\n", tests[n].result, - stdout ? stdout : "(error)"); + str_stdout ? str_stdout : "(error)"); errors++; } - g_free (stdout); + g_free (str_stdout); } else { debug_printf (1, "ERROR!\n"); errors++;