1 /* Copyright (C) 2003 TSUTSUMI Kikuo.
2 This file is part of the CCUnit Library.
4 The CCUnit Library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public License
6 as published by the Free Software Foundation; either version 2.1 of
7 the License, or (at your option) any later version.
9 The CCUnit Library is distributed in the hope that it will be
10 useful, but WITHOUT ANY WARRANTY; without even the implied warranty
11 of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU Lesser General Public License for more details.
14 You should have received a copy of the GNU Lesser General Public
15 License along with the CCUnit Library; see the file COPYING.LESSER.
16 If not, write to the Free Software Foundation, Inc., 59 Temple
17 Place - Suite 330, Boston, MA 02111-1307, USA.
24 * TestFailure module implementation.
28 #include <ccunit/CCUnitTestFailure.h>
30 /** @addtogroup CCUnitTestFailure TestFailure
34 CCUnitTestFailure* ccunit_newTestFailure (const char* file,
40 CCUnitTestFailure* f = calloc (1, sizeof (*f));
44 f->expect = safe_strdup (expect);
45 f->actual = safe_strdup (actual);
49 void ccunit_deleteTestFailure (CCUnitTestFailure* failure)
51 safe_free ((char*)failure->expect);
52 safe_free ((char*)failure->actual);