Index: trunk/psLib/test/psTest.c
===================================================================
--- trunk/psLib/test/psTest.c	(revision 509)
+++ trunk/psLib/test/psTest.c	(revision 526)
@@ -18,5 +18,5 @@
 #define HEADER_BOTTOM "\\------------------------------------------------------------------------/\n\n"
 
-void p_printPositiveTestHeader(const char* testPointFile, const char* packageName, const char* testPointName)
+void p_printPositiveTestHeader(FILE *fp, const char* testPointFile, const char* packageName, const char* testPointName)
 {
     char TP[80];
@@ -24,12 +24,12 @@
     snprintf(TP,80,"%s{%s}",packageName,testPointName);
 
-    printf(HEADER_TOP);
-    printf(HEADER_LINE_STRING, "TestFile", testPointFile);
-    printf(HEADER_LINE_STRING, "TestPoint", TP);
-    printf(HEADER_LINE_STRING, "TestType","Positive");
-    printf(HEADER_BOTTOM);
+    fprintf(fp, HEADER_TOP);
+    fprintf(fp, HEADER_LINE_STRING, "TestFile", testPointFile);
+    fprintf(fp, HEADER_LINE_STRING, "TestPoint", TP);
+    fprintf(fp, HEADER_LINE_STRING, "TestType","Positive");
+    fprintf(fp, HEADER_BOTTOM);
 }
 
-void p_printNegativeTestHeader(const char* testPointFile, const char* packageName,
+void p_printNegativeTestHeader(FILE *fp, const char* testPointFile, const char* packageName,
                                const char* testPointName,const char* expectedError, int exitValue)
 {
@@ -38,20 +38,20 @@
     snprintf(TP,80,"%s{%s}",packageName,testPointName);
 
-    printf(HEADER_TOP);
-    printf(HEADER_LINE_STRING, "TestFile", testPointFile);
-    printf(HEADER_LINE_STRING, "TestPoint", TP);
-    printf(HEADER_LINE_STRING,"TestType","Negative");
-    printf(HEADER_LINE_STRING,"ExpectedErrorText",expectedError);
-    printf(HEADER_LINE_INT,"ExpectedStatusValue",exitValue);
-    printf(HEADER_BOTTOM);
+    fprintf(fp, HEADER_TOP);
+    fprintf(fp, HEADER_LINE_STRING, "TestFile", testPointFile);
+    fprintf(fp, HEADER_LINE_STRING, "TestPoint", TP);
+    fprintf(fp, HEADER_LINE_STRING,"TestType","Negative");
+    fprintf(fp, HEADER_LINE_STRING,"ExpectedErrorText",expectedError);
+    fprintf(fp, HEADER_LINE_INT,"ExpectedStatusValue",exitValue);
+    fprintf(fp, HEADER_BOTTOM);
 }
 
 
-void p_printFooter(const char* testPointFile, const char* packageName,const char* testPointName, bool success)
+void p_printFooter(FILE *fp, const char* testPointFile, const char* packageName,const char* testPointName, bool success)
 {
     if (success) {
-        printf("\n---> TESTPOINT PASSED (%s{%s} | %s)\n\n", packageName,testPointName, testPointFile);
+        fprintf(fp, "\n---> TESTPOINT PASSED (%s{%s} | %s)\n\n", packageName,testPointName, testPointFile);
     } else {
-        printf("\n---> TESTPOINT FAILED (%s{%s} | %s)\n\n", packageName,testPointName,testPointFile);
+        fprintf(fp, "\n---> TESTPOINT FAILED (%s{%s} | %s)\n\n", packageName,testPointName,testPointFile);
     }
 }
