tests: white space / indentation fixes

Fixes problems with GCC 6

Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=811583
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=94149
This commit is contained in:
Michael Biebl
2016-01-22 23:40:10 +01:00
committed by Aleksander Morgado
parent a08708c10d
commit c533e56e1e
2 changed files with 13 additions and 13 deletions

View File

@@ -43,13 +43,13 @@ typedef struct {
gpointer
test_com_setup (const char *port, wmcbool uml290, wmcbool debug)
{
TestComData *d;
int ret;
TestComData *d;
int ret;
d = g_malloc0 (sizeof (TestComData));
g_assert (d);
d = g_malloc0 (sizeof (TestComData));
g_assert (d);
d->uml290 = uml290;
d->debug = debug;
d->debug = debug;
if (getenv ("SERIAL_DEBUG"))
d->debug = TRUE;

View File

@@ -34,15 +34,15 @@ typedef GTestFixtureFunc TCFunc;
static TestData *
test_data_new (const char *port, gboolean uml290, gboolean debug)
{
TestData *d;
TestData *d;
d = g_malloc0 (sizeof (TestData));
g_assert (d);
d = g_malloc0 (sizeof (TestData));
g_assert (d);
if (port)
d->com_data = test_com_setup (port, uml290, debug);
return d;
return d;
}
static void
@@ -51,7 +51,7 @@ test_data_free (TestData *d)
if (d->com_data)
test_com_teardown (d->com_data);
g_free (d);
g_free (d);
}
int main (int argc, char **argv)
@@ -102,9 +102,9 @@ int main (int argc, char **argv)
g_test_suite_add (suite, TESTCASE (test_com_get_global_mode, data->com_data));
}
result = g_test_run ();
result = g_test_run ();
test_data_free (data);
test_data_free (data);
return result;
return result;
}