freebsd-ports/devel/cunit/files/patch-CUnit-Sources-Automated-Automated.c
Edwin Groothuis c208287457 [NEW PORT] devel/cunit: An automated unit testing framework for C
CUnit is a lightweight system for writing, administering,
	and running unit tests in C. It provides C programmers a
	basic testing functionality with a flexible variety of user
	interfaces. CUnit is built as a static library which is
	linked with the user's testing code. It uses a simple
	framework for building test structures, and provides a rich
	set of assertions for testing common data types. In addition,
	several different interfaces are provided for running tests
	and reporting results.

	WWW: http://cunit.sourceforge.net/

PR:		ports/114934
Submitted by:	Stefan Pauly <stefan@fh-mainz.de>
2007-09-09 05:55:50 +00:00

24 lines
1.2 KiB
C

--- CUnit/Sources/Automated/Automated.c.orig Wed Jul 25 09:07:09 2007
+++ CUnit/Sources/Automated/Automated.c Wed Jul 25 16:45:43 2007
@@ -222,8 +222,8 @@
fprintf(f_pTestResultFile,
"<?xml version=\"1.0\" ?> \n"
- "<?xml-stylesheet type=\"text/xsl\" href=\"CUnit-Run.xsl\" ?> \n"
- "<!DOCTYPE CUNIT_TEST_RUN_REPORT SYSTEM \"CUnit-Run.dtd\"> \n"
+ "<?xml-stylesheet type=\"text/xsl\" href=\"/usr/local/share/CUnit/CUnit-Run.xsl\" ?> \n"
+ "<!DOCTYPE CUNIT_TEST_RUN_REPORT SYSTEM \"/usr/local/share/CUnit/CUnit-Run.dtd\"> \n"
"<CUNIT_TEST_RUN_REPORT> \n"
" <CUNIT_HEADER/> \n");
}
@@ -509,8 +509,8 @@
fprintf(pTestListFile,
"<?xml version=\"1.0\" ?> \n"
- "<?xml-stylesheet type=\"text/xsl\" href=\"CUnit-List.xsl\" ?> \n"
- "<!DOCTYPE CUNIT_TEST_LIST_REPORT SYSTEM \"CUnit-List.dtd\"> \n"
+ "<?xml-stylesheet type=\"text/xsl\" href=\"/usr/local/share/CUnit/CUnit-List.xsl\" ?> \n"
+ "<!DOCTYPE CUNIT_TEST_LIST_REPORT SYSTEM \"/usr/local/share/CUnit/CUnit-List.dtd\"> \n"
"<CUNIT_TEST_LIST_REPORT> \n"
" <CUNIT_HEADER/> \n"
" <CUNIT_LIST_TOTAL_SUMMARY> \n");