You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by pe...@apache.org on 2016/10/28 19:23:35 UTC

[2/2] incubator-mynewt-core git commit: MYNEWT-139 - Don't call tu_case_pass on fail.

MYNEWT-139 - Don't call tu_case_pass on fail.


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

Branch: refs/heads/develop
Commit: 087532bb09f1f1136f887150ebec46be0a6b5340
Parents: 8eb68f6
Author: Peter Snyder <gi...@peterfs.com>
Authored: Fri Oct 28 12:20:03 2016 -0700
Committer: Peter Snyder <gi...@peterfs.com>
Committed: Fri Oct 28 12:20:03 2016 -0700

----------------------------------------------------------------------
 test/testutil/include/testutil/testutil.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/087532bb/test/testutil/include/testutil/testutil.h
----------------------------------------------------------------------
diff --git a/test/testutil/include/testutil/testutil.h b/test/testutil/include/testutil/testutil.h
index fbd58bd..88eaebe 100644
--- a/test/testutil/include/testutil/testutil.h
+++ b/test/testutil/include/testutil/testutil.h
@@ -213,7 +213,9 @@ TEST_SUITE_##suite_name(void);                               \
             if (setjmp(tu_case_jb) == 0) {                    \
                 TEST_CASE_##case_name();                      \
                 tu_case_post_test();                          \
-                tu_case_pass();                               \
+                if (!tu_case_failed) {                        \
+                    tu_case_pass();                           \
+                }                                             \
             }                                                 \
             tu_case_complete();                               \
         }                                                     \