mynewt-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ccoll...@apache.org
Subject [1/9] incubator-mynewt-core git commit: nimble/test: Fix expected value in ble_sm_test_util_us_fail_inval
Date Tue, 13 Dec 2016 03:08:40 GMT
Repository: incubator-mynewt-core
Updated Branches:
  refs/heads/develop 33bc18ef5 -> 7c218f67e


nimble/test: Fix expected value in ble_sm_test_util_us_fail_inval

Value from test def should be used, not hardcoded one.


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

Branch: refs/heads/develop
Commit: a3f6ea1de07e04e302dd442a6b72ecfdeb1aed49
Parents: 9faa191
Author: Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
Authored: Sun Dec 11 23:44:02 2016 +0100
Committer: Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
Committed: Mon Dec 12 23:53:31 2016 +0100

----------------------------------------------------------------------
 net/nimble/host/test/src/ble_sm_test_util.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/a3f6ea1d/net/nimble/host/test/src/ble_sm_test_util.c
----------------------------------------------------------------------
diff --git a/net/nimble/host/test/src/ble_sm_test_util.c b/net/nimble/host/test/src/ble_sm_test_util.c
index 7f40ff9..faa38ff 100644
--- a/net/nimble/host/test/src/ble_sm_test_util.c
+++ b/net/nimble/host/test/src/ble_sm_test_util.c
@@ -2408,7 +2408,7 @@ ble_sm_test_util_us_fail_inval(struct ble_sm_test_params *params)
 
     /* Receive a pair response from the peer. */
     ble_sm_test_util_rx_pair_rsp(
-        2, &params->pair_rsp, BLE_HS_SM_US_ERR(BLE_SM_ERR_INVAL));
+        2, &params->pair_rsp, BLE_HS_SM_US_ERR(params->pair_fail.reason));
     TEST_ASSERT(!conn->bhc_sec_state.encrypted);
     TEST_ASSERT(ble_sm_dbg_num_procs() == 0);
 


Mime
View raw message