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/05/24 18:17:00 UTC

incubator-mynewt-core git commit: testutil - "-s" option enables system assert.

Repository: incubator-mynewt-core
Updated Branches:
  refs/heads/develop 1fd8b43a2 -> c33bc7ae9


testutil - "-s" option enables system assert.


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

Branch: refs/heads/develop
Commit: c33bc7ae953d5cf5580903d2bba9d3dc5737439f
Parents: 1fd8b43
Author: Christopher Collins <cc...@apache.org>
Authored: Tue May 24 11:16:28 2016 -0700
Committer: Christopher Collins <cc...@apache.org>
Committed: Tue May 24 11:16:52 2016 -0700

----------------------------------------------------------------------
 libs/testutil/src/arch/sim/tu_args.c | 23 +++++++++++++++++++++++
 libs/testutil/src/args.c             |  0
 2 files changed, 23 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/c33bc7ae/libs/testutil/src/arch/sim/tu_args.c
----------------------------------------------------------------------
diff --git a/libs/testutil/src/arch/sim/tu_args.c b/libs/testutil/src/arch/sim/tu_args.c
new file mode 100644
index 0000000..75a2900
--- /dev/null
+++ b/libs/testutil/src/arch/sim/tu_args.c
@@ -0,0 +1,23 @@
+#include <errno.h>
+#include <unistd.h>
+
+#include "testutil/testutil.h"
+
+int
+tu_parse_args(int argc, char **argv)
+{
+    int ch;
+
+    while ((ch = getopt(argc, argv, "s")) != -1) {
+        switch (ch) {
+        case 's':
+            tu_config.tc_system_assert = 1;
+            break;
+
+        default:
+            return EINVAL;
+        }
+    }
+
+    return 0;
+}

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/c33bc7ae/libs/testutil/src/args.c
----------------------------------------------------------------------
diff --git a/libs/testutil/src/args.c b/libs/testutil/src/args.c
new file mode 100644
index 0000000..e69de29