mynewt-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ccoll...@apache.org
Subject incubator-mynewt-core git commit: testbench - create tasks after test reg
Date Wed, 25 Jan 2017 18:53:47 GMT
Repository: incubator-mynewt-core
Updated Branches:
  refs/heads/develop 4045e9612 -> 035010b6a


testbench - create tasks after test reg

Creating the tasks early causes a crash.


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/035010b6
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/035010b6
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/035010b6

Branch: refs/heads/develop
Commit: 035010b6a53011c208db2dd4a473dfcbefbfd375
Parents: 4045e96
Author: Christopher Collins <ccollins@apache.org>
Authored: Wed Jan 25 10:52:55 2017 -0800
Committer: Christopher Collins <ccollins@apache.org>
Committed: Wed Jan 25 10:52:55 2017 -0800

----------------------------------------------------------------------
 apps/testbench/src/testbench.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/035010b6/apps/testbench/src/testbench.c
----------------------------------------------------------------------
diff --git a/apps/testbench/src/testbench.c b/apps/testbench/src/testbench.c
index a33a711..d97d397 100644
--- a/apps/testbench/src/testbench.c
+++ b/apps/testbench/src/testbench.c
@@ -358,8 +358,6 @@ main(int argc, char **argv)
 
     conf_load();
 
-    rc = init_tasks();
-
     /*
      * Register the tests that can be run by lookup
      * - each test is added to the ts_suites slist
@@ -369,6 +367,8 @@ main(int argc, char **argv)
     TEST_SUITE_REGISTER(testbench_sem);
     TEST_SUITE_REGISTER(testbench_json);
 
+    rc = init_tasks();
+
     /*
      * This sets the callback function for the events that are
      * generated from newtmanager.


Mime
View raw message