You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by cc...@apache.org on 2016/09/30 21:28:46 UTC
incubator-mynewt-core git commit: crash_test - Add pkg init function.
Repository: incubator-mynewt-core
Updated Branches:
refs/heads/develop 5215c3ed9 -> e8704def7
crash_test - Add pkg init function.
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/e8704def
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/e8704def
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/e8704def
Branch: refs/heads/develop
Commit: e8704def7af1fb006905b1569e1cf3de57cdd6fb
Parents: 5215c3e
Author: Christopher Collins <cc...@apache.org>
Authored: Fri Sep 30 14:27:55 2016 -0700
Committer: Christopher Collins <cc...@apache.org>
Committed: Fri Sep 30 14:27:55 2016 -0700
----------------------------------------------------------------------
test/crash_test/include/crash_test/crash_test.h | 2 +-
test/crash_test/pkg.yml | 3 +++
test/crash_test/src/crash_test.c | 3 +--
3 files changed, 5 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/e8704def/test/crash_test/include/crash_test/crash_test.h
----------------------------------------------------------------------
diff --git a/test/crash_test/include/crash_test/crash_test.h b/test/crash_test/include/crash_test/crash_test.h
index 73135fd..c96b5ea 100644
--- a/test/crash_test/include/crash_test/crash_test.h
+++ b/test/crash_test/include/crash_test/crash_test.h
@@ -22,6 +22,6 @@
/*
* Adds the crash commands to your shell/newtmgr.
*/
-int crash_test_init(void);
+void crash_test_init(void);
#endif /* __CRASH_TEST_H__ */
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/e8704def/test/crash_test/pkg.yml
----------------------------------------------------------------------
diff --git a/test/crash_test/pkg.yml b/test/crash_test/pkg.yml
index 75afa8c..f26e66d 100644
--- a/test/crash_test/pkg.yml
+++ b/test/crash_test/pkg.yml
@@ -33,6 +33,9 @@ pkg.deps.CRASH_TEST_NEWTMGR:
- libs/newtmgr
- encoding/json
+pkg.init_function: crash_test_init
+pkg.init_stage: 5
+
pkg.syscfg_defs:
CRASH_TEST_CLI:
description: 'TBD'
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/e8704def/test/crash_test/src/crash_test.c
----------------------------------------------------------------------
diff --git a/test/crash_test/src/crash_test.c b/test/crash_test/src/crash_test.c
index a6e2ea2..89843a4 100644
--- a/test/crash_test/src/crash_test.c
+++ b/test/crash_test/src/crash_test.c
@@ -59,7 +59,7 @@ crash_device(char *how)
return 0;
}
-int
+void
crash_test_init(void)
{
#if MYNEWT_VAL(CRASH_TEST_CLI)
@@ -68,5 +68,4 @@ crash_test_init(void)
#if MYNEWT_VAL(CRASH_TEST_NEWTMGR)
nmgr_group_register(&crash_test_nmgr_group);
#endif
- return 0;
}