From 08340f7fdbdbd2e535d60ef68f3d610ef9b86c4e Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Wed, 18 Dec 2013 12:39:01 +0200 Subject: [PATCH] android/tester: Fix expected_property_len value for bdname test --- android/android-tester.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/android/android-tester.c b/android/android-tester.c index 9e8aa7dd1..0f0432d38 100644 --- a/android/android-tester.c +++ b/android/android-tester.c @@ -631,13 +631,15 @@ static const struct generic_data bluetooth_getprop_bdaddr_success_test = { .expected_property.len = sizeof(bt_bdaddr_t) }; +static char test_bdname[] = "test_bdname_setget"; + static const struct generic_data bluetooth_getprop_bdname_success_test = { .expected_hal_callbacks = { ADAPTER_PROP_BDNAME, ADAPTER_PROP_BDNAME, ADAPTER_TEST_END }, .expected_adapter_status = BT_STATUS_SUCCESS, .expected_property.type = BT_PROPERTY_BDNAME, - .expected_property.val = "test_bdname_setget", - .expected_property.len = 17 + .expected_property.val = test_bdname, + .expected_property.len = sizeof(test_bdname) - 1, }; static unsigned char setprop_uuids[] = { 0xfb, 0x34, 0x9b, 0x5f, 0x80, 0x00, -- 2.47.3