seed r685 - trunk/tests/c



Author: hortont
Date: Thu Jan  8 09:15:48 2009
New Revision: 685
URL: http://svn.gnome.org/viewvc/seed?rev=685&view=rev

Log:
Rename C tests, cleanup. Done for now.


Modified:
   trunk/tests/c/basic.c
   trunk/tests/c/main.c

Modified: trunk/tests/c/basic.c
==============================================================================
--- trunk/tests/c/basic.c	(original)
+++ trunk/tests/c/basic.c	Thu Jan  8 09:15:48 2009
@@ -1,12 +1,8 @@
 #include "../../libseed/seed.h"
 #include "test-common.h"
 
-void basica(TestSimpleFixture * fixture, gconstpointer _data)
+void basic(TestSimpleFixture * fixture, gconstpointer _data)
 {
 	g_assert(1);
 }
 
-void basicb(TestSimpleFixture * fixture, gconstpointer _data)
-{
-	g_assert(1);
-}

Modified: trunk/tests/c/main.c
==============================================================================
--- trunk/tests/c/main.c	(original)
+++ trunk/tests/c/main.c	Thu Jan  8 09:15:48 2009
@@ -2,16 +2,8 @@
 #include <stdlib.h>
 #include "test-common.h"
 
-/* This is a bit of sugar for adding new conformance tests:
- *
- * - It adds an extern function definition just to save maintaining a header
- *   that lists test entry points.
- * - It sets up callbacks for a fixture, which lets us share initialization
- *   *code* between tests. (see test-conform-common.c)
- * - It passes in a shared *data* pointer that is initialised once in main(),
- *   that gets passed to the fixture setup and test functions. (See the
- *   definition in test-conform-common.h)
- */
+// Test stuff stolen from Clutter
+
 #define TEST_SIMPLE(NAMESPACE, FUNC)									\
 	extern void FUNC (TestSimpleFixture *fixture, gconstpointer data);	\
 	g_test_add (NAMESPACE "/" #FUNC,									\
@@ -42,15 +34,12 @@
 
 	g_test_init (&argc, &argv, NULL);
 
-	//g_test_bug_base ("http://bugzilla.openedhand.com/show_bug.cgi?id=%s";);
-
 	SeedEngine * eng = seed_init(NULL, NULL);
 
 	shared_state->argc_addr = &argc;
 	shared_state->argv_addr = &argv;
 
-	TEST_SIMPLE ("/tests", basica);
-	TEST_SIMPLE ("/tests", basicb);
+	TEST_SIMPLE ("/", basic);
 
 	return g_test_run ();
 }



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