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: nimble host: Fix failing adv unit tests.
Date Wed, 30 Mar 2016 20:44:32 GMT
Repository: incubator-mynewt-core
Updated Branches:
  refs/heads/develop d14e1bd26 -> 0f53c93e8


nimble host: Fix failing adv unit tests.


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

Branch: refs/heads/develop
Commit: 0f53c93e8e31d7efe4887ff7589edc48b2a04356
Parents: d14e1bd
Author: Christopher Collins <ccollins@apache.org>
Authored: Wed Mar 30 13:44:13 2016 -0700
Committer: Christopher Collins <ccollins@apache.org>
Committed: Wed Mar 30 13:44:13 2016 -0700

----------------------------------------------------------------------
 net/nimble/host/src/test/ble_hs_adv_test.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/0f53c93e/net/nimble/host/src/test/ble_hs_adv_test.c
----------------------------------------------------------------------
diff --git a/net/nimble/host/src/test/ble_hs_adv_test.c b/net/nimble/host/src/test/ble_hs_adv_test.c
index 62b68f1..477afd6 100644
--- a/net/nimble/host/src/test/ble_hs_adv_test.c
+++ b/net/nimble/host/src/test/ble_hs_adv_test.c
@@ -42,7 +42,7 @@ ble_hs_adv_test_misc_verify_tx_adv_data_hdr(int data_len)
     TEST_ASSERT(BLE_HCI_OGF(opcode) == BLE_HCI_OGF_LE);
     TEST_ASSERT(BLE_HCI_OCF(opcode) == BLE_HCI_OCF_LE_SET_ADV_DATA);
 
-    TEST_ASSERT(sptr[2] == data_len + 1);
+    TEST_ASSERT(sptr[2] == BLE_HCI_SET_ADV_DATA_LEN);
     TEST_ASSERT(sptr[3] == data_len);
 }
 
@@ -60,7 +60,7 @@ ble_hs_adv_test_misc_verify_tx_rsp_data_hdr(int data_len)
     TEST_ASSERT(BLE_HCI_OGF(opcode) == BLE_HCI_OGF_LE);
     TEST_ASSERT(BLE_HCI_OCF(opcode) == BLE_HCI_OCF_LE_SET_SCAN_RSP_DATA);
 
-    TEST_ASSERT(sptr[2] == data_len + 1);
+    TEST_ASSERT(sptr[2] == BLE_HCI_SET_SCAN_RSP_DATA_LEN);
     TEST_ASSERT(sptr[3] == data_len);
 }
 
@@ -109,7 +109,7 @@ ble_hs_adv_test_misc_verify_tx_fields(int off,
 
     for (field = fields; field->type != 0; field++) {
         ble_hs_adv_test_misc_verify_tx_field(off, field->type, field->val_len,
-                                          field->val);
+                                             field->val);
         off += 2 + field->val_len;
     }
 }


Mime
View raw message