From: <ik...@us...> - 2007-10-31 11:12:21
|
Revision: 40 http://cutter.svn.sourceforge.net/cutter/?rev=40&view=rev Author: ikezoe Date: 2007-10-31 04:12:20 -0700 (Wed, 31 Oct 2007) Log Message: ----------- 2007-10-31 Hiroyuki Ikezoe <poi...@ik...> * cutter/cut-test.c: (cut_test_run): Invoke test_function(). Modified Paths: -------------- trunk/ChangeLog trunk/cutter/cut-test.c Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2007-10-31 11:09:42 UTC (rev 39) +++ trunk/ChangeLog 2007-10-31 11:12:20 UTC (rev 40) @@ -1,5 +1,9 @@ 2007-10-31 Hiroyuki Ikezoe <poi...@ik...> + * cutter/cut-test.c: (cut_test_run): Invoke test_function(). + +2007-10-31 Hiroyuki Ikezoe <poi...@ik...> + * cutter/cut-test.[c|h]: Added cut_test_new(). 2007-10-31 Hiroyuki Ikezoe <poi...@ik...> Modified: trunk/cutter/cut-test.c =================================================================== --- trunk/cutter/cut-test.c 2007-10-31 11:09:42 UTC (rev 39) +++ trunk/cutter/cut-test.c 2007-10-31 11:12:20 UTC (rev 40) @@ -34,7 +34,7 @@ typedef struct _CutTestPrivate CutTestPrivate; struct _CutTestPrivate { - CutTestFunction *test_function; + CutTestFunction test_function; }; enum @@ -123,7 +123,12 @@ gboolean cut_test_run (CutTest *test) { - return FALSE; + CutTestPrivate *priv = CUT_TEST_GET_PRIVATE(test); + + if (!priv->test_function) + return FALSE; + + return priv->test_function(); } /* This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |