Repository: incubator-mynewt-core
Updated Branches:
  refs/heads/develop af36b62b4 -> 9d0b1d490


sys/log - fix failing unit tests.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/853eea75
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/853eea75
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/853eea75

Branch: refs/heads/develop
Commit: 853eea75748018b9d1061aa9e99abb090608645f
Parents: af36b62
Author: Christopher Collins <[email protected]>
Authored: Thu Dec 29 16:56:29 2016 -0800
Committer: Christopher Collins <[email protected]>
Committed: Thu Dec 29 16:56:29 2016 -0800

----------------------------------------------------------------------
 sys/log/test/src/testcases/log_flush_fcb.c | 3 ++-
 sys/log/test/src/testcases/log_walk_fcb.c  | 3 ++-
 test/testutil/include/testutil/testutil.h  | 1 +
 3 files changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/853eea75/sys/log/test/src/testcases/log_flush_fcb.c
----------------------------------------------------------------------
diff --git a/sys/log/test/src/testcases/log_flush_fcb.c 
b/sys/log/test/src/testcases/log_flush_fcb.c
index b177c2c..e799fd2 100644
--- a/sys/log/test/src/testcases/log_flush_fcb.c
+++ b/sys/log/test/src/testcases/log_flush_fcb.c
@@ -20,11 +20,12 @@
 
 TEST_CASE(log_flush_fcb)
 {
+    struct encode_off encode_off = { 0 };
     int rc;
 
     rc = log_flush(&my_log);
     TEST_ASSERT(rc == 0);
 
-    rc = log_walk(&my_log, log_test_walk2, NULL);
+    rc = log_walk(&my_log, log_test_walk2, &encode_off);
     TEST_ASSERT(rc == 0);
 }

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/853eea75/sys/log/test/src/testcases/log_walk_fcb.c
----------------------------------------------------------------------
diff --git a/sys/log/test/src/testcases/log_walk_fcb.c 
b/sys/log/test/src/testcases/log_walk_fcb.c
index 8a49cb0..e8a732c 100644
--- a/sys/log/test/src/testcases/log_walk_fcb.c
+++ b/sys/log/test/src/testcases/log_walk_fcb.c
@@ -20,10 +20,11 @@
 
 TEST_CASE(log_walk_fcb)
 {
+    struct encode_off encode_off = { 0 };
     int rc;
 
     str_idx = 0;
 
-    rc = log_walk(&my_log, log_test_walk1, NULL);
+    rc = log_walk(&my_log, log_test_walk1, &encode_off);
     TEST_ASSERT(rc == 0);
 }

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/853eea75/test/testutil/include/testutil/testutil.h
----------------------------------------------------------------------
diff --git a/test/testutil/include/testutil/testutil.h 
b/test/testutil/include/testutil/testutil.h
index 4749186..3fa5f5f 100644
--- a/test/testutil/include/testutil/testutil.h
+++ b/test/testutil/include/testutil/testutil.h
@@ -20,6 +20,7 @@
 #ifndef H_TESTUTIL_
 #define H_TESTUTIL_
 
+#include <assert.h>
 #include <inttypes.h>
 #include <setjmp.h>
 

Reply via email to