summaryrefslogtreecommitdiff
path: root/tools/smp-tester.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2014-08-08 09:07:43 +0300
committerJohan Hedberg <johan.hedberg@intel.com>2014-08-08 09:07:43 +0300
commit9c0bafd99fb239453b59b08604fff556bc9f15d2 (patch)
tree77e1453d80131bc4016b18cd66c131cd045b2e39 /tools/smp-tester.c
parent0d3f8e1c552b3604c015d4899bce5ec0c754fac8 (diff)
downloadbluez-9c0bafd99fb239453b59b08604fff556bc9f15d2.tar.gz
smp-tester: Remove incorrect test verdicts in pair_device_complete
Since the actual PDUs transmitted are not complete and therefore do not guarantee a successful pairing, the outcome of the tests depends on a race of which side reaches completion first: the SMP channel expected PDUs or the mgmt callback. This patch removes any test vedicts form the mgmt callback since for now the expected status is either way a failure.
Diffstat (limited to 'tools/smp-tester.c')
-rw-r--r--tools/smp-tester.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/tools/smp-tester.c b/tools/smp-tester.c
index ee1c74433..786367cdb 100644
--- a/tools/smp-tester.c
+++ b/tools/smp-tester.c
@@ -435,12 +435,10 @@ static void pair_device_complete(uint8_t status, uint16_t length,
{
if (status != MGMT_STATUS_SUCCESS) {
tester_warn("Pairing failed: %s", mgmt_errstr(status));
- tester_test_failed();
return;
}
tester_print("Pairing succeedded");
- tester_test_passed();
}
static const void *get_pdu(const uint8_t *pdu)