-
/*
* CUnit - A Unit testing framework library for C.
* Copyright (C) 2001 Anil Kumar
*
- * This library is free software; you can redistribute it and/or
+ * This library is open source software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
- *
- * You should have received a copy of the GNU Library General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include <stdio.h>
CU_ASSERT(strlen(ch) == i);
free(ch);
FreeStrBuf(&Buf2);
+ FreeStrBuf(&Buf3);
}
static void TestStrBufPeek(void)
CU_ASSERT(StrBufPeek(Buf, NULL, 5, 'A') == 5);
CU_ASSERT_STRING_EQUAL(ChrPtr(Buf), "0123AA6");
+ FreeStrBuf(&Buf);
}
static void TestBufStringManipulation(void)
int main(int argc, char* argv[])
{
+ ///int i;
setvbuf(stdout, NULL, _IONBF, 0);
StartLibCitadel(8);
if (argc > 0)
Quiet = 1; // todo: -q ;-)
-
+// for (i=0; i< 100000; i++) {
CU_set_output_filename("TestAutomated");
if (CU_initialize_registry()) {
printf("\nInitialize of test Registry failed.");
- }
+// }
Run = CU_TRUE ;
AddStrBufSimpleTests();
}
CU_cleanup_registry();
-
+ }
return 0;
}