Can't use stderr as a field name

This commit is contained in:
Tor Lillqvist 2010-04-25 17:26:41 +03:00
parent 93d300742d
commit da306296cf

View File

@ -8,7 +8,7 @@
typedef struct {
const gchar *name;
const gchar *opt;
const gchar *stderr;
const gchar *err;
} SchemaTest;
static void
@ -32,10 +32,10 @@ test_schema (gpointer data)
g_free (filename);
g_free (path);
}
if (test->stderr)
if (test->err)
{
g_test_trap_assert_failed ();
g_test_trap_assert_stderr (test->stderr);
g_test_trap_assert_stderr (test->err);
}
else
g_test_trap_assert_passed();