Updated error printing for unit tests.
authorSteven Schronk <[email protected]>
Fri, 31 Dec 2010 23:49:03 +0000 (31 17:49 -0600)
committerSteven Schronk <[email protected]>
Fri, 31 Dec 2010 23:49:03 +0000 (31 17:49 -0600)
lib_test.c

index 2839998..fb4a708 100644 (file)
@@ -11,7 +11,7 @@
 
 void exit_error(const char *err_msg)
 {
-       fprintf(stderr, "ERROR %s\n", err_msg);
+       fprintf(stderr, "ERROR: %s\n", err_msg);
        /*
        if(pInfile != NULL) { fclose(pInfile); }
        if(pOutfile != NULL) { fclose(pOutfile); }
@@ -38,8 +38,8 @@ void test_msg_end(int pass)
        {
                printf("PASSED\n");
        } else {
-               printf("FAILED\n");
-               exit_error("UNIT TESTING FAILED");
+               printf("FAILED\n\n");
+               exit_error("UNIT TESTING FAILED.\n\n");
        }
 }