diff options
author | Stef Walter <stefw@collabora.co.uk> | 2011-10-27 20:32:40 +0200 |
---|---|---|
committer | Stef Walter <stefw@collabora.co.uk> | 2011-10-27 20:32:40 +0200 |
commit | 969bcab592878322e410f4342a61fccc06b9addd (patch) | |
tree | 62a18b1a542c459f7fd9ba49f5a308eed6458d0c /tests/cutest | |
parent | 77bab108dd2a7d1c55468cc991c22397fb5f8ba5 (diff) |
Fix build with clang
* Just removed some unused functions that used GNUC extensions
Diffstat (limited to 'tests/cutest')
-rw-r--r-- | tests/cutest/CuTest.c | 10 | ||||
-rw-r--r-- | tests/cutest/CuTest.h | 5 |
2 files changed, 0 insertions, 15 deletions
diff --git a/tests/cutest/CuTest.c b/tests/cutest/CuTest.c index dc7ebd9..b033483 100644 --- a/tests/cutest/CuTest.c +++ b/tests/cutest/CuTest.c @@ -211,16 +211,6 @@ void CuAssertIntEquals_LineMsg(CuTest* tc, const char* file, int line, const cha CuFail_Line(tc, file, line, message, buf); } -void CuAssertDblEquals_LineMsg(CuTest* tc, const char* file, int line, const char* message, - double expected, double actual, double delta) -{ - char buf[STRING_MAX]; - if (fabs(expected - actual) <= delta) return; - sprintf(buf, "expected <%f> but was <%f>", expected, actual); - - CuFail_Line(tc, file, line, message, buf); -} - void CuAssertPtrEquals_LineMsg(CuTest* tc, const char* file, int line, const char* message, void* expected, void* actual) { diff --git a/tests/cutest/CuTest.h b/tests/cutest/CuTest.h index 6246eee..b82d05b 100644 --- a/tests/cutest/CuTest.h +++ b/tests/cutest/CuTest.h @@ -64,9 +64,6 @@ void CuAssertStrEquals_LineMsg(CuTest* tc, void CuAssertIntEquals_LineMsg(CuTest* tc, const char* file, int line, const char* message, int expected, int actual); -void CuAssertDblEquals_LineMsg(CuTest* tc, - const char* file, int line, const char* message, - double expected, double actual, double delta); void CuAssertPtrEquals_LineMsg(CuTest* tc, const char* file, int line, const char* message, void* expected, void* actual); @@ -81,8 +78,6 @@ void CuAssertPtrEquals_LineMsg(CuTest* tc, #define CuAssertStrEquals_Msg(tc,ms,ex,ac) CuAssertStrEquals_LineMsg((tc),__FILE__,__LINE__,(ms),(ex),(ac)) #define CuAssertIntEquals(tc,ex,ac) CuAssertIntEquals_LineMsg((tc),__FILE__,__LINE__,NULL,(ex),(ac)) #define CuAssertIntEquals_Msg(tc,ms,ex,ac) CuAssertIntEquals_LineMsg((tc),__FILE__,__LINE__,(ms),(ex),(ac)) -#define CuAssertDblEquals(tc,ex,ac,dl) CuAssertDblEquals_LineMsg((tc),__FILE__,__LINE__,NULL,(ex),(ac),(dl)) -#define CuAssertDblEquals_Msg(tc,ms,ex,ac,dl) CuAssertDblEquals_LineMsg((tc),__FILE__,__LINE__,(ms),(ex),(ac),(dl)) #define CuAssertPtrEquals(tc,ex,ac) CuAssertPtrEquals_LineMsg((tc),__FILE__,__LINE__,NULL,(ex),(ac)) #define CuAssertPtrEquals_Msg(tc,ms,ex,ac) CuAssertPtrEquals_LineMsg((tc),__FILE__,__LINE__,(ms),(ex),(ac)) |