summaryrefslogtreecommitdiff
path: root/tools/test.h
diff options
context:
space:
mode:
authordeva <deva>2011-02-14 14:09:04 +0000
committerdeva <deva>2011-02-14 14:09:04 +0000
commit04f275fea9186a75836b589022a9fa410aea7b02 (patch)
tree70d5e61af8e2e8319326d3ca8a9f3ea805fe06e8 /tools/test.h
parent95cfffa53760942c3ccf6abc18b81f48d03a3ff6 (diff)
Added gcov (coverage measurement) in unittests.
Diffstat (limited to 'tools/test.h')
-rw-r--r--tools/test.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/tools/test.h b/tools/test.h
index f470162..4770a1e 100644
--- a/tools/test.h
+++ b/tools/test.h
@@ -109,11 +109,11 @@
#define TEST_EQUAL_STR(x, y, fmt...) { \
TEST_BASE(fmt); \
- std::string s1 = x; \
- std::string s2 = y; \
+ std::string __s1 = x; \
+ std::string __s2 = y; \
fprintf(stderr, "Comparing: \"%s\" == \"%s\"\n", \
- s1.c_str(), s2.c_str()); \
- if(s1 == s2) { \
+ __s1.c_str(), __s2.c_str()); \
+ if(__s1 == __s2) { \
TEST_OK(#x" and "#y" are equal."); \
} else { \
TEST_FAIL(#x" and "#y" are not equal."); \
@@ -122,11 +122,11 @@
#define TEST_NOTEQUAL_STR(x, y, fmt...) { \
TEST_BASE(fmt); \
- std::string s1 = x; \
- std::string s2 = y; \
+ std::string __s1 = x; \
+ std::string __s2 = y; \
fprintf(stderr, "Comparing: \"%s\" != \"%s\"\n", \
- s1.c_str(), s2.c_str()); \
- if(s1 != s2) { \
+ __s1.c_str(), __s2.c_str()); \
+ if(__s1 != __s2) { \
TEST_OK(#x" and "#y" not are equal."); \
} else { \
TEST_FAIL(#x" and "#y" are equal."); \