fixed logging test

Fri, 21 Jun 2013 10:50:50 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Fri, 21 Jun 2013 10:50:50 +0200
changeset 105
f08fa6308d1f
parent 104
9d3dea320d8e
child 106
a54115d554f7

fixed logging test

test/logging_tests.c file | annotate | diff | comparison | revisions
--- a/test/logging_tests.c	Fri Jun 21 10:27:03 2013 +0200
+++ b/test/logging_tests.c	Fri Jun 21 10:50:50 2013 +0200
@@ -42,10 +42,12 @@
     fseek(stream, 0, SEEK_SET);
     size_t r = fread(buffer, 1, 100, stream);
     
+    // TODO: completely rewrite this test
+    
     size_t expected_length = 76;
     UCX_TEST_ASSERT(r == expected_length && strncmp(buffer,
-            "[INFO] logging_tests.c:15 - allright\n"
-            "[ERROR] logging_tests.c:17 - error 42!\n", expected_length) == 0, "incorrect logs");
+            "[INFO] logging_tests.c:39 - allright\n"
+            "[ERROR] logging_tests.c:41 - error 42!\n", expected_length) == 0, "incorrect logs");
 
     UCX_TEST_END
 

mercurial