[Freeswitch-svn] [commit] r11876 - freeswitch/trunk/libs/sofia-sip/s2check
FreeSWITCH SVN
mikej at freeswitch.org
Wed Feb 11 09:39:29 PST 2009
Author: mikej
Date: Wed Feb 11 11:39:29 2009
New Revision: 11876
Log:
Tue Feb 10 07:18:22 CST 2009 Pekka Pessi <first.last at nokia.com>
* s2check: fixed s2_tcase_add_test()
Modified:
freeswitch/trunk/libs/sofia-sip/s2check/s2check.h
freeswitch/trunk/libs/sofia-sip/s2check/s2tcase.c
Modified: freeswitch/trunk/libs/sofia-sip/s2check/s2check.h
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/s2check/s2check.h (original)
+++ freeswitch/trunk/libs/sofia-sip/s2check/s2check.h Wed Feb 11 11:39:29 2009
@@ -33,6 +33,10 @@
* @author Pekka Pessi <Pekka.Pessi at nokia.com>
*/
+#ifndef SU_CONFIG_H
+#include <sofia-sip/su_config.h>
+#endif
+
#include <check.h>
SOFIA_BEGIN_DECLS
@@ -43,8 +47,6 @@
void s2_tcase_add_test(TCase *, TFun, char const *name);
-
-
SOFIA_END_DECLS
#endif /* S2CHECK_H */
Modified: freeswitch/trunk/libs/sofia-sip/s2check/s2tcase.c
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/s2check/s2tcase.c (original)
+++ freeswitch/trunk/libs/sofia-sip/s2check/s2tcase.c Wed Feb 11 11:39:29 2009
@@ -26,6 +26,13 @@
#if HAVE_CHECK
+#include <stddef.h>
+#include <stdlib.h>
+#include <string.h>
+#include <stdio.h>
+
+#include <check.h>
+
#if HAVE_FNMATCH_H
#include <fnmatch.h>
#endif
@@ -33,8 +40,6 @@
static char const * const default_patterns[] = { "*", NULL };
static char const * const *test_patterns = default_patterns;
-#undef tcase_add_test
-
/** tcase_add_test() replacement.
*
* A special version of tcase_add_test() that inserts test function into
@@ -50,7 +55,7 @@
if (strcmp(*patterns, "*")) {
printf("%s: running\n", name);
}
- tcase_add_test(tc, tf, name, 0, 0, 1);
+ _tcase_add_test(tc, tf, name, 0, 0, 1);
return;
}
}
@@ -60,7 +65,7 @@
if (strcmp(*patterns, "*")) {
printf("%s: running\n", name);
}
- tcase_add_test(tc, tf, name, 0, 0, 1);
+ _tcase_add_test(tc, tf, name, 0, 0, 1);
return;
}
}
More information about the Freeswitch-svn
mailing list