repo.or.cz
/
C-Data-Structures.git
/
commitdiff
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
raw
|
patch
|
inline
|
side by side
(parent:
d6fe235
)
Updated error printing for unit tests.
author
Steven Schronk
<
[email protected]
>
Fri, 31 Dec 2010 23:49:03 +0000
(31 17:49 -0600)
committer
Steven Schronk
<
[email protected]
>
Fri, 31 Dec 2010 23:49:03 +0000
(31 17:49 -0600)
lib_test.c
patch
|
blob
|
blame
|
history
diff --git
a/lib_test.c
b/lib_test.c
index
2839998
..
fb4a708
100644
(file)
--- a/
lib_test.c
+++ b/
lib_test.c
@@
-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
");
}
}