[seed: 3/4] Fix indentation on C tests



commit e9d05b86c052703b97748cd244696eb9da1cc774
Author: Robert Carr <racarr mireia (none)>
Date:   Sun Mar 15 09:52:18 2009 -0400

    Fix indentation on C tests
---
 tests/c/main.c |   58 ++++++++++++++++++++++++++++----------------------------
 1 files changed, 29 insertions(+), 29 deletions(-)

diff --git a/tests/c/main.c b/tests/c/main.c
index 228323e..6fd20f0 100644
--- a/tests/c/main.c
+++ b/tests/c/main.c
@@ -4,50 +4,50 @@
 
 // Test stuff stolen from Clutter
 
-#define TEST_SIMPLE(NAMESPACE, FUNC)									\
-	extern void FUNC (TestSimpleFixture *fixture, gconstpointer data);	\
-	g_test_add (NAMESPACE "/" #FUNC,									\
-				TestSimpleFixture,										\
-				shared_state,											\
-				test_simple_fixture_setup,								\
-				FUNC,													\
-				test_simple_fixture_teardown);
+#define TEST_SIMPLE(NAMESPACE, FUNC)					\
+  extern void FUNC (TestSimpleFixture *fixture, gconstpointer data);	\
+  g_test_add (NAMESPACE "/" #FUNC,					\
+	      TestSimpleFixture,					\
+	      shared_state,						\
+	      test_simple_fixture_setup,				\
+	      FUNC,							\
+	      test_simple_fixture_teardown);
 
 void test_simple_fixture_setup(TestSimpleFixture * fixture, gconstpointer data)
 {
-	TestSharedState *state = (TestSharedState *) data;
-	fixture->context = seed_context_create(state->eng->group, NULL);
+  TestSharedState *state = (TestSharedState *) data;
+  fixture->context = seed_context_create(state->eng->group, NULL);
 }
 
 void test_simple_fixture_teardown(TestSimpleFixture * fixture,
-								  gconstpointer data)
+				  gconstpointer data)
 {
-	seed_context_unref(fixture->context);
+  seed_context_unref(fixture->context);
 }
 
 int main(int argc, char **argv)
 {
-	TestSharedState *shared_state = g_new0(TestSharedState, 1);
-	const gchar *display = g_getenv("DISPLAY");
+  TestSharedState *shared_state = g_new0(TestSharedState, 1);
+  const gchar *display = g_getenv("DISPLAY");
 
-	if (!display || *display == '\0')
-	{
-		g_print("No DISPLAY found. Unable to run the test suite without X11.");
-		return EXIT_SUCCESS;
-	}
+  if (!display || *display == '\0')
+    {
+      g_print("No DISPLAY found. Unable to run the test suite without X11.");
+      return EXIT_SUCCESS;
+    }
 
-	g_test_init(&argc, &argv, NULL);
+  g_test_init(&argc, &argv, NULL);
 
-	SeedEngine *eng = seed_init(NULL, NULL);
+  SeedEngine *eng = seed_init(NULL, NULL);
 
-	shared_state->argc_addr = &argc;
-	shared_state->argv_addr = &argv;
-	shared_state->eng = eng;
+  shared_state->argc_addr = &argc;
+  shared_state->argv_addr = &argv;
+  shared_state->eng = eng;
 
-	TEST_SIMPLE("/", basic);
-	TEST_SIMPLE("/", closures);
-	TEST_SIMPLE("/types/", basic_types);
-	TEST_SIMPLE("/js-signal-from-c/", js_signal_from_c);
+  TEST_SIMPLE("/", basic);
+  TEST_SIMPLE("/", closures);
+  TEST_SIMPLE("/types/", basic_types);
+  TEST_SIMPLE("/js-signal-from-c/", js_signal_from_c);
 
-	return g_test_run();
+  return g_test_run();
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]