Thu Mar 5 12:29:30 CST 2009 Pekka Pessi <first.last@nokia.com>

* s2base.h: added S2_CASE(), added test function name to s2_case() parameters
  Ignore-this: c9ceff2812044e2643c21548be29233e


git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12734 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2009-03-24 15:33:33 +00:00
parent 840735200e
commit 113da462f1
3 changed files with 15 additions and 4 deletions

View File

@ -1 +1 @@
Tue Mar 24 10:31:53 CDT 2009
Tue Mar 24 10:32:33 CDT 2009

View File

@ -126,13 +126,15 @@ void s2_setup(char const *label)
void s2_case(char const *number,
char const *title,
char const *description)
char const *description,
char const *function)
{
stamps.start = now();
_s2_case = number;
if (s2_start_stop)
printf("%s - starting %s/%s-%s\n", s2_tester, _s2_suite, _s2_case, title);
printf("%s - starting %s (%s/%s %s)\n", s2_tester, function,
_s2_suite, _s2_case, title);
}
void s2_step(void)

View File

@ -44,7 +44,16 @@ void s2_step(void);
void s2_case(char const *tag,
char const *title,
char const *description);
char const *description,
char const *function);
#if HAVE_FUNC
#define S2_CASE(n, t, d) s2_case((n),(t),(d), __func__)
#elif HAVE_FUNCTION
#define S2_CASE(n, t, d) s2_case((n),(t),(d), __FUNCTION__)
#else
#define S2_CASE(n, t, d) s2_case((n),(t),(d), "")
#endif
void s2_teardown_started(char const *label);
void s2_teardown(void);