diff --git a/libs/sofia-sip/.update b/libs/sofia-sip/.update index 012d445ced..7118290703 100644 --- a/libs/sofia-sip/.update +++ b/libs/sofia-sip/.update @@ -1 +1 @@ -Tue Mar 24 10:31:53 CDT 2009 +Tue Mar 24 10:32:33 CDT 2009 diff --git a/libs/sofia-sip/s2check/s2base.c b/libs/sofia-sip/s2check/s2base.c index df77763dcd..a67ae127f8 100644 --- a/libs/sofia-sip/s2check/s2base.c +++ b/libs/sofia-sip/s2check/s2base.c @@ -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) diff --git a/libs/sofia-sip/s2check/s2base.h b/libs/sofia-sip/s2check/s2base.h index 598954747d..0e602836fc 100644 --- a/libs/sofia-sip/s2check/s2base.h +++ b/libs/sofia-sip/s2check/s2base.h @@ -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);