|
gimme-alpha 0.1
|
00001 /* 00002 ** cunit-local.h 00003 ** 00004 ** Made by Johnny Q. Hacker 00005 ** Login <solarion@borkborkbork> 00006 ** 00007 Copyright (C) 2009 Joseph Pingenot 00008 00009 This program is free software: you can redistribute it and/or modify 00010 it under the terms of the GNU Affero General Public License as published by 00011 the Free Software Foundation, either version 3 of the License, or 00012 (at your option) any later version. 00013 00014 This program is distributed in the hope that it will be useful, 00015 but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00017 GNU Affero General Public License for more details. 00018 00019 You should have received a copy of the GNU Affero General Public License 00020 along with this program. If not, see <http://www.gnu.org/licenses/>. 00021 ** Started on Fri Apr 3 15:34:06 2009 Johnny Q. Hacker 00022 ** Last update Fri Apr 3 15:34:06 2009 Johnny Q. Hacker 00023 */ 00024 00025 #ifndef CUNIT_LOCAL_H_ 00026 # define CUNIT_LOCAL_H_ 00027 00028 #include <CUnit/CUnit.h> 00029 00030 /*Same as CU_Pass(message), but doesn't stringify the message.*/ 00031 #define CU_PASS_STRING(str) \ 00032 { CU_assertImplementation(CU_TRUE, __LINE__, (str), __FILE__, "", CU_FALSE); } 00033 00034 #define CU_FAIL_STRING(str) \ 00035 { CU_assertImplementation(CU_FALSE, __LINE__, (str), __FILE__, "", CU_FALSE); } 00036 00037 /** Record a failure without performing a logical test, and abort test. */ 00038 #define CU_FAIL_FATAL_STRING(str) \ 00039 { CU_assertImplementation(CU_FALSE, __LINE__, (str), __FILE__, "", CU_TRUE); } 00040 00041 00042 00043 #endif /* !CUNIT-LOCAL_H_ */