freeswitch/libs/sofia-sip/s2check/s2check.h
Michael Jerris 840735200e Thu Mar 5 11:44:15 CST 2009 Pekka Pessi <first.last@nokia.com>
* s2check.h: redefine tcase_add_loop_test, too
  Ignore-this: 149c19e8d089b60e8ddcb98da54c9d88



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12733 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-24 15:32:49 +00:00

61 lines
1.6 KiB
C

/*
* This file is part of the Sofia-SIP package
*
* Copyright (C) 2009 Nokia Corporation.
*
* Contact: Pekka Pessi <pekka.pessi@nokia.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA
*
*/
#ifndef S2CHECK_H
/** Defined when <s2check.h> has been included. */
#define S2CHECK_H
/**@internal @file s2check.h
*
* @brief Check-based testing
*
* @author Pekka Pessi <Pekka.Pessi@nokia.com>
*/
#ifndef SU_CONFIG_H
#include <sofia-sip/su_config.h>
#endif
#include <check.h>
SOFIA_BEGIN_DECLS
#undef tcase_add_test
#undef tcase_add_loop_test
/* Redirect tcase_add_test() to our function */
#define tcase_add_test(tc, tf) s2_tcase_add_test(tc, tf, "" #tf "", 0, 0, 1)
void s2_tcase_add_test(TCase *, TFun, char const *name,
int signo, int start, int end);
#define tcase_add_loop_test(tc, tf, s, e) \
s2_tcase_add_test(tc, tf, "" #tf "", 0, (s), (e))
void s2_select_tests(char const *pattern);
SOFIA_END_DECLS
#endif /* S2CHECK_H */