From 9c0bafd99fb239453b59b08604fff556bc9f15d2 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Fri, 8 Aug 2014 09:07:43 +0300 Subject: [PATCH] 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. --- tools/smp-tester.c | 2 -- 1 file changed, 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) -- 2.47.3