fixed logging tests for mingw

Mon, 28 Jul 2014 14:44:06 +0200

author
Mike Becker <universe@uap-core.de>
date
Mon, 28 Jul 2014 14:44:06 +0200
changeset 186
05559c99010d
parent 185
a48428642b4e
child 187
7d49f179cc25

fixed logging tests for mingw

test/logging_tests.c file | annotate | diff | comparison | revisions
--- a/test/logging_tests.c	Mon Jul 28 14:36:25 2014 +0200
+++ b/test/logging_tests.c	Mon Jul 28 14:44:06 2014 +0200
@@ -85,8 +85,9 @@
     logger->mask |= UCX_LOGGER_TIMESTAMP;
     time_t now = time(NULL);
     char timestr[13];
-    strftime(timestr, 12, "%F:", localtime(&now));
-    const uint line2 = __LINE__; ucx_logger_error(logger, "error %d!", 42);
+    strftime(timestr, 12, "%Y-%m-%d:", localtime(&now));
+    const unsigned int line2 = __LINE__;
+    ucx_logger_error(logger, "error %d!", 42);
     
     fseek(stream, 0, SEEK_SET);
     size_t r = fread(buffer, 1, 100, stream);

mercurial