[Aceunit-commit] SF.net SVN: aceunit:[566] trunk/src/native/AceUnitMain.c
Status: Beta
Brought to you by:
christianhujer
|
From: <chr...@us...> - 2011-02-15 00:11:58
|
Revision: 566
http://aceunit.svn.sourceforge.net/aceunit/?rev=566&view=rev
Author: christianhujer
Date: 2011-02-15 00:11:52 +0000 (Tue, 15 Feb 2011)
Log Message:
-----------
Allow AceUnitMain.c to be used w/o ACEUNIT_SUITES. In that case, it will be simply be empty.
Modified Paths:
--------------
trunk/src/native/AceUnitMain.c
Modified: trunk/src/native/AceUnitMain.c
===================================================================
--- trunk/src/native/AceUnitMain.c 2011-02-15 00:02:45 UTC (rev 565)
+++ trunk/src/native/AceUnitMain.c 2011-02-15 00:11:52 UTC (rev 566)
@@ -29,12 +29,10 @@
#include "AceUnit.h"
#include "AceUnitData.h"
-#ifndef ACEUNIT_SUITES
-#error Requires ACEUNIT_SUITES
-#endif
-
/** Main program for running AceUnit tests.
* Invokes the runner.
+ * It will only properly work if #ACEUNIT_SUITES is defined.
+ * If #ACEUNIT_SUITES is not defined, this file will effectively be empty.
*
* It supports two configuration parameters:
* <dl>
@@ -48,6 +46,8 @@
* @file AceUnitMain.c
*/
+#ifdef ACEUNIT_SUITES
+
#ifndef TEST_FAILURES_FOR_VERIFICATION
/** The number of test cases expected to fail.
* Defaults to 0.
@@ -76,3 +76,4 @@
#endif
return retVal;
}
+#endif
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|