Logo Search packages:      
Sourcecode: sofia-sip version File versions  Download package

s2check.h
Go to the documentation of this file.
/*
 * 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. */
00027 #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 */

Generated by  Doxygen 1.6.0   Back to index