summaryrefslogtreecommitdiff
path: root/devel/c-unit/files/patch-c-unit-Sources-Automated-Automated.c
diff options
context:
space:
mode:
authorDaichi GOTO <daichi@FreeBSD.org>2012-04-25 03:21:24 +0000
committerDaichi GOTO <daichi@FreeBSD.org>2012-04-25 03:21:24 +0000
commite7ee17a49352c80291065bee82fea7db2a5c5c04 (patch)
tree400680fb4f06feb5679e17ca006dd6ad1112e1ba /devel/c-unit/files/patch-c-unit-Sources-Automated-Automated.c
parentAdd entry about recent Postfix upgrade; make (diff)
Add a new port deve/c-unit, A unit testing framework for C
Submitted by: Takanori Sawada <tak.swd@gmail.com>
Notes
Notes: svn path=/head/; revision=295443
Diffstat (limited to 'devel/c-unit/files/patch-c-unit-Sources-Automated-Automated.c')
-rw-r--r--devel/c-unit/files/patch-c-unit-Sources-Automated-Automated.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/devel/c-unit/files/patch-c-unit-Sources-Automated-Automated.c b/devel/c-unit/files/patch-c-unit-Sources-Automated-Automated.c
new file mode 100644
index 000000000000..bac82171db8c
--- /dev/null
+++ b/devel/c-unit/files/patch-c-unit-Sources-Automated-Automated.c
@@ -0,0 +1,30 @@
+--- CUnit/Sources/Automated/Automated.c.orig 2009-06-11 03:50:52.000000000 +0900
++++ CUnit/Sources/Automated/Automated.c 2012-04-14 02:08:39.000000000 +0900
+@@ -227,13 +227,13 @@
+ if (bJUnitXmlOutput == CU_TRUE) {
+ fprintf(f_pTestResultFile,
+ "<?xml version=\"1.0\" ?> \n"
+- "<?xml-stylesheet type=\"text/xsl\" href=\"CUnit-Run.xsl\" ?> \n"
++ "<?xml-stylesheet type=\"text/xsl\" href=\"/usr/local/share/CUnit/CUnit-Run.xsl\" ?> \n"
+ " <cunit_testsuites> \n");
+ } else {
+ 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");
+ }
+@@ -616,8 +616,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");