From 1e0beb3e670c290e4c27ca58fc113ddfde6d6663 Mon Sep 17 00:00:00 2001 From: Arto Kinnunen Date: Fri, 15 Jan 2021 11:10:24 +0200 Subject: [PATCH] Update unit tests to support Ubuntu 2020_04 LTS (#2545) Test AMI's are updated to use Ubuntu 2020-04 LTS and updated tools require return value to test methods. Add missing return statement to test cases where return was missing. Co-authored-by: Arto Kinnunen --- .../unittest/6lp_mac/beacon_handler/test_beacon_handler.c | 5 ++--- test/nanostack/unittest/6lp_mac/mac_helper/test_mac_helper.c | 1 + 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/nanostack/unittest/6lp_mac/beacon_handler/test_beacon_handler.c b/test/nanostack/unittest/6lp_mac/beacon_handler/test_beacon_handler.c index 61eee15a568..a0cd044f42d 100644 --- a/test/nanostack/unittest/6lp_mac/beacon_handler/test_beacon_handler.c +++ b/test/nanostack/unittest/6lp_mac/beacon_handler/test_beacon_handler.c @@ -244,6 +244,7 @@ bool test_mac_beacon_link_beacon_compare_rx_callback_set() protocol_core_stub.entry_ptr = NULL; + return true; } bool test_beacon_join_priority_update() @@ -371,8 +372,6 @@ bool test_beacon_join_priority_update() } free(entry.mac_parameters->mac_beacon_payload); - - // Reset stub values protocol_core_stub.entry_ptr = NULL; protocol_6lowpan_stub.uint8_value = 0; @@ -380,7 +379,7 @@ bool test_beacon_join_priority_update() mac_helper_stub.uint8_ptr = 0; mac_helper_stub.uint8_value = 0; - + return true; } diff --git a/test/nanostack/unittest/6lp_mac/mac_helper/test_mac_helper.c b/test/nanostack/unittest/6lp_mac/mac_helper/test_mac_helper.c index 5d5fd7ce971..ced03eba2d5 100644 --- a/test/nanostack/unittest/6lp_mac/mac_helper/test_mac_helper.c +++ b/test/nanostack/unittest/6lp_mac/mac_helper/test_mac_helper.c @@ -383,6 +383,7 @@ bool test_mac_helper_security_pairwisekey_set() } //<-- test mac_helper_keytable_pairwise_descriptor_set here + return true; } bool test_mac_helper_security_next_key_set()