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
     1.1 --- a/test/logging_tests.c	Fri Jun 21 10:27:03 2013 +0200
     1.2 +++ b/test/logging_tests.c	Fri Jun 21 10:50:50 2013 +0200
     1.3 @@ -42,10 +42,12 @@
     1.4      fseek(stream, 0, SEEK_SET);
     1.5      size_t r = fread(buffer, 1, 100, stream);
     1.6      
     1.7 +    // TODO: completely rewrite this test
     1.8 +    
     1.9      size_t expected_length = 76;
    1.10      UCX_TEST_ASSERT(r == expected_length && strncmp(buffer,
    1.11 -            "[INFO] logging_tests.c:15 - allright\n"
    1.12 -            "[ERROR] logging_tests.c:17 - error 42!\n", expected_length) == 0, "incorrect logs");
    1.13 +            "[INFO] logging_tests.c:39 - allright\n"
    1.14 +            "[ERROR] logging_tests.c:41 - error 42!\n", expected_length) == 0, "incorrect logs");
    1.15  
    1.16      UCX_TEST_END
    1.17  

mercurial