OSDN Git Service
(root)
/
ccunit
/
ccunit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7a06ab
)
A function related to TestFunc is added.
author
tsntsumi
<tsntsumi@users.sourceforge.jp>
Wed, 1 Oct 2003 20:46:03 +0000
(20:46 +0000)
committer
tsntsumi
<tsntsumi@users.sourceforge.jp>
Wed, 1 Oct 2003 20:46:03 +0000
(20:46 +0000)
src/ccunit/CCUnitTestCase.c
patch
|
blob
|
history
diff --git
a/src/ccunit/CCUnitTestCase.c
b/src/ccunit/CCUnitTestCase.c
index
d645b6a
..
155cbb1
100755
(executable)
--- a/
src/ccunit/CCUnitTestCase.c
+++ b/
src/ccunit/CCUnitTestCase.c
@@
-44,6
+44,13
@@
CCUnitTestCase* ccunit_newTestCase (const char* name,
return testCase;
}
+inline CCUnitTestFunc* ccunit_newTestFunc (const char* name,
+ const char* desc,
+ void (*func)())
+{
+ return (CCUnitTestFunc*) ccunit_newTestCase (name, desc, func);
+}
+
void ccunit_deleteTestCase (CCUnitTestCase* testCase)
{
if (!testCase)
@@
-53,4
+60,9
@@
void ccunit_deleteTestCase (CCUnitTestCase* testCase)
free (testCase);
}
+inline void ccunit_deleteTestFunc (CCUnitTestFunc* testFunc)
+{
+ ccunit_deleteTestCase ((CCUnitTestCase*)testFunc);
+}
+
/** @} */