You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ma...@apache.org on 2016/01/15 00:00:25 UTC

incubator-mynewt-larva git commit: Update config test with the new location.

Repository: incubator-mynewt-larva
Updated Branches:
  refs/heads/master 4ab72bbad -> b946a1d8e


Update config test with the new location.


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

Branch: refs/heads/master
Commit: b946a1d8ec84258a4db2166e5b634988037d97a6
Parents: 4ab72bb
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Thu Jan 14 14:59:51 2016 -0800
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Thu Jan 14 14:59:51 2016 -0800

----------------------------------------------------------------------
 libs/sys/config/src/test/conf_test.c | 21 ++++++++++++++++++---
 1 file changed, 18 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/blob/b946a1d8/libs/sys/config/src/test/conf_test.c
----------------------------------------------------------------------
diff --git a/libs/sys/config/src/test/conf_test.c b/libs/sys/config/src/test/conf_test.c
index 8aa3712..5d0a4a0 100644
--- a/libs/sys/config/src/test/conf_test.c
+++ b/libs/sys/config/src/test/conf_test.c
@@ -16,9 +16,9 @@
 #include <stdio.h>
 #include <string.h>
 
-#include "os/os.h"
-#include "testutil/testutil.h"
-#include "util/config.h"
+#include <os/os.h>
+#include <testutil/testutil.h>
+#include <config/config.h>
 
 uint8_t val8;
 
@@ -227,3 +227,18 @@ TEST_SUITE(config_test_suite)
     config_test_lookup();
     config_test_dir();
 }
+
+#ifdef PKG_TEST
+
+int
+main(int argc, char **argv)
+{
+    tu_config.tc_print_results = 1;
+    tu_init();
+
+    config_test_suite();
+
+    return tu_any_failed;
+}
+
+#endif