CCUnit  2.1
A C Unit Testing Library
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
CCUnitTestFailure.h
Go to the documentation of this file.
1 /* -*- C -*- */
2 /* Copyright (C) 2003, 2010 TSUTSUMI Kikuo.
3  This file is part of the CCUnit Library.
4 
5  The CCUnit Library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Lesser General Public License
7  as published by the Free Software Foundation; either version 2.1 of
8  the License, or (at your option) any later version.
9 
10  The CCUnit Library is distributed in the hope that it will be
11  useful, but WITHOUT ANY WARRANTY; without even the implied warranty
12  of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public
16  License along with the CCUnit Library; see the file COPYING.LESSER.
17  If not, write to the Free Software Foundation, Inc., 59 Temple
18  Place - Suite 330, Boston, MA 02111-1307, USA.
19 */
20 
21 /*
22  * $Id$
23  */
28 #ifndef CCUNITTESTFAILURE_H
29 #define CCUNITTESTFAILURE_H
30 
31 #include <ccunit/CCUnitConfig.h>
32 #include <ccunit/CCUnitTestFunc.h>
33 
48 typedef struct CCUnitTestFailure
49 {
50  const char* file;
51  unsigned int line;
52  const char* condstr;
53  const char* expect;
54  const char* actual;
57 
69 extern CCUnitTestFailure* ccunit_newTestFailure (const char* file,
70  unsigned int line,
71  const char* condstr,
72  const char* expect,
73  const char* actual);
74 
81 extern void ccunit_deleteTestFailure (CCUnitTestFailure* failure);
82 
85 #endif
SourceForge.jp hosts this site. Send comments to: CCUnit Developer