OSDN Git Service

tools/mgmt-tester: Add 'Not Supported' test case for set_fast_connectable
authorJohan Hedberg <johan.hedberg@intel.com>
Mon, 21 Oct 2013 13:21:20 +0000 (16:21 +0300)
committerJohan Hedberg <johan.hedberg@intel.com>
Mon, 21 Oct 2013 13:52:44 +0000 (16:52 +0300)
tools/mgmt-tester.c

index 4789692..3b156e3 100644 (file)
@@ -662,6 +662,14 @@ static const struct generic_data set_fast_conn_on_success_test_1 = {
        .expect_settings_set = MGMT_SETTING_FAST_CONNECTABLE,
 };
 
+static const struct generic_data set_fast_conn_on_not_supported_test_1 = {
+       .setup_settings = settings_powered_connectable,
+       .send_opcode = MGMT_OP_SET_FAST_CONNECTABLE,
+       .send_param = set_fast_conn_on_param,
+       .send_len = sizeof(set_fast_conn_on_param),
+       .expect_status = MGMT_STATUS_NOT_SUPPORTED,
+};
+
 static const char set_pairable_on_param[] = { 0x01 };
 static const char set_pairable_invalid_param[] = { 0x02 };
 static const char set_pairable_garbage_param[] = { 0x01, 0x00 };
@@ -2641,6 +2649,9 @@ int main(int argc, char *argv[])
        test_bredrle("Set fast connectable on - Success 1",
                                &set_fast_conn_on_success_test_1,
                                NULL, test_command_generic);
+       test_le("Set fast connectable on - Not Supported 1",
+                               &set_fast_conn_on_not_supported_test_1,
+                               NULL, test_command_generic);
 
        test_bredrle("Set pairable on - Success",
                                &set_pairable_on_success_test,