aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libwmc/tests/test-wmc-com.c10
-rw-r--r--libwmc/tests/test-wmc.c16
2 files changed, 13 insertions, 13 deletions
diff --git a/libwmc/tests/test-wmc-com.c b/libwmc/tests/test-wmc-com.c
index 8b4b01d6..4ffc338d 100644
--- a/libwmc/tests/test-wmc-com.c
+++ b/libwmc/tests/test-wmc-com.c
@@ -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;
diff --git a/libwmc/tests/test-wmc.c b/libwmc/tests/test-wmc.c
index e1027b2e..1fc13ab1 100644
--- a/libwmc/tests/test-wmc.c
+++ b/libwmc/tests/test-wmc.c
@@ -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;
}