Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Schuetz2012-01-16 08:54:12 +0000
committerThomas Schuetz2012-01-16 08:54:12 +0000
commit4602c8edc1bcf24873d6dda813dee5874cb9b70c (patch)
tree3a3a533ec00934e5fddf9be75201250cbf50edbd /runtime
parentd0af1f77c1bda1530b1fba283c420e6267035ca4 (diff)
downloadorg.eclipse.etrice-4602c8edc1bcf24873d6dda813dee5874cb9b70c.tar.gz
org.eclipse.etrice-4602c8edc1bcf24873d6dda813dee5874cb9b70c.tar.xz
org.eclipse.etrice-4602c8edc1bcf24873d6dda813dee5874cb9b70c.zip
[runtime.c] added macro ADD_TESTCASE for more convenience
Diffstat (limited to 'runtime')
-rw-r--r--runtime/org.eclipse.etrice.runtime.c/Debug/liborg.eclipse.etrice.runtime.c.abin61110 -> 61202 bytes
-rw-r--r--runtime/org.eclipse.etrice.runtime.c/src/RUnit.h8
2 files changed, 8 insertions, 0 deletions
diff --git a/runtime/org.eclipse.etrice.runtime.c/Debug/liborg.eclipse.etrice.runtime.c.a b/runtime/org.eclipse.etrice.runtime.c/Debug/liborg.eclipse.etrice.runtime.c.a
index e1cd290a4..94a54ec43 100644
--- a/runtime/org.eclipse.etrice.runtime.c/Debug/liborg.eclipse.etrice.runtime.c.a
+++ b/runtime/org.eclipse.etrice.runtime.c/Debug/liborg.eclipse.etrice.runtime.c.a
Binary files differ
diff --git a/runtime/org.eclipse.etrice.runtime.c/src/RUnit.h b/runtime/org.eclipse.etrice.runtime.c/src/RUnit.h
index a3badcc7e..c29b8809d 100644
--- a/runtime/org.eclipse.etrice.runtime.c/src/RUnit.h
+++ b/runtime/org.eclipse.etrice.runtime.c/src/RUnit.h
@@ -50,4 +50,12 @@ void EXPECT_EQUAL_FLOAT64(const char* testcase, etFloat64 expected, etFloat64 ac
void expect_equal_void_ptr(const char* testcase, const void* expected, const void* actual);
+/* Helpers for adding testcases */
+
+#define ADD_TESTCASE(testcase) \
+ RUnit_openTestCase(#testcase); \
+ testcase(); \
+ RUnit_closeTestCase();
+
+
#endif /* _RUNIT_H_ */

Back to the top