/Zephyr-latest/tests/bluetooth/smp/src/ |
D | main.c | 22 zassert_str_equal(bt_smp_err_to_str(0x00), in ZTEST() 24 zassert_str_equal(bt_smp_err_to_str(0x0a), in ZTEST() 26 zassert_str_equal(bt_smp_err_to_str(0x0F), in ZTEST() 43 zassert_str_equal(bt_security_err_to_str(BT_SECURITY_ERR_AUTH_FAIL), in ZTEST() 45 zassert_str_equal(bt_security_err_to_str(BT_SECURITY_ERR_KEY_REJECTED), in ZTEST() 47 zassert_str_equal(bt_security_err_to_str(BT_SECURITY_ERR_UNSPECIFIED), in ZTEST() 51 zassert_str_equal(bt_security_err_to_str(BT_SECURITY_ERR_UNSPECIFIED + 1), in ZTEST()
|
/Zephyr-latest/scripts/coccinelle/ |
D | ztest_strcmp.cocci | 16 + zassert_str_equal(E1, E2); 20 + zassert_str_equal(E1, E2, E3); 24 + zassert_str_equal(E1, E2); 28 + zassert_str_equal(E1, E2, E3); 36 + zassert_str_equal(E1, E2); 40 + zassert_str_equal(E1, E2, E3); 47 + zassert_str_equal(E1, E2); 51 + zassert_str_equal(E1, E2); 55 + zassert_str_equal(E1, E2, E3); 59 + zassert_str_equal(E1, E2, E3); [all …]
|
/Zephyr-latest/tests/subsys/fs/littlefs/src/ |
D | test_util.c | 34 zassert_str_equal(path.path, "/", "bad root init path"); in ZTEST() 39 zassert_str_equal(path.path, mnt.mnt_point, "bad mnt init path"); in ZTEST() 79 zassert_str_equal(testfs_path_init(&path, &mnt, ELT1, TESTFS_PATH_END), in ZTEST() 82 zassert_str_equal(testfs_path_init(&path, &mnt, ELT1, ELT2, TESTFS_PATH_END), in ZTEST() 88 zassert_str_equal(testfs_path_extend(reset_path(), TESTFS_PATH_END), in ZTEST() 91 zassert_str_equal(testfs_path_extend(reset_path(), ELT2, TESTFS_PATH_END), in ZTEST() 94 zassert_str_equal(testfs_path_extend(reset_path(), ELT1, ELT2, TESTFS_PATH_END), in ZTEST() 100 zassert_str_equal(testfs_path_extend(reset_path(), ELT2, "..", ELT1, TESTFS_PATH_END), in ZTEST() 103 zassert_str_equal(testfs_path_extend(reset_path(), "..", TESTFS_PATH_END), in ZTEST() 106 zassert_str_equal(testfs_path_extend(reset_path(), "..", "..", TESTFS_PATH_END), in ZTEST() [all …]
|
/Zephyr-latest/tests/subsys/debug/symtab/src/ |
D | main.c | 40 zassert_str_equal(symbol_name, "main"); in ZTEST() 45 zassert_str_equal(symbol_name, "strcmp"); in ZTEST() 48 zassert_str_equal(symbol_name, "symtab_find_symbol_name"); in ZTEST() 51 zassert_str_equal(symbol_name, "test_main"); in ZTEST() 54 zassert_str_equal(symbol_name, "setup"); in ZTEST() 86 zassert_str_equal(symbol_name, "?"); in ZTEST() 101 zassert_str_equal(symbol_name, symtab->entries[0].name); in ZTEST() 107 zassert_str_equal(symbol_name, symtab->entries[0].name); in ZTEST() 122 zassert_str_equal(symbol_name, symtab->entries[last_idx].name); in ZTEST() 138 zassert_str_equal(symbol_name, in ZTEST() [all …]
|
/Zephyr-latest/tests/kernel/threads/thread_apis/src/ |
D | test_kthread_for_each.c | 231 zassert_str_equal(str, ""); in ZTEST() 236 zassert_str_equal(str, ""); in ZTEST() 239 zassert_str_equal(str, ""); in ZTEST() 242 zassert_str_equal(str, "dummy"); in ZTEST() 246 zassert_str_equal(str, "pending"); in ZTEST() 250 zassert_str_equal(str, "dead"); in ZTEST() 254 zassert_str_equal(str, "sleeping"); in ZTEST() 258 zassert_str_equal(str, "suspended"); in ZTEST() 262 zassert_str_equal(str, "aborting"); in ZTEST() 266 zassert_str_equal(str, "queued"); in ZTEST() [all …]
|
D | test_threads_suspend_resume.c | 168 zassert_str_equal(str, "queued"); in ZTEST() 171 zassert_str_equal(str, "queued"); in ZTEST() 176 zassert_str_equal(str, "suspended"); in ZTEST() 181 zassert_str_equal(str, "queued"); in ZTEST()
|
/Zephyr-latest/tests/kconfig/functions/src/ |
D | main.c | 30 zassert_str_equal(CONFIG_KCONFIG_ARITHMETIC_INC_1_1, "2,2"); in ZTEST() 31 zassert_str_equal(CONFIG_KCONFIG_ARITHMETIC_INC_INC_1_1, "3,3"); in ZTEST() 33 zassert_str_equal(CONFIG_KCONFIG_ARITHMETIC_DEC_1_1, "0,0"); in ZTEST() 34 zassert_str_equal(CONFIG_KCONFIG_ARITHMETIC_DEC_DEC_1_1, "-1,-1"); in ZTEST()
|
/Zephyr-latest/tests/subsys/logging/log_output/src/ |
D | log_output_test.c | 60 zassert_str_equal(exp_str, mock_buffer); in ZTEST() 76 zassert_str_equal(exp_str, mock_buffer); in ZTEST() 91 zassert_str_equal(exp_str, mock_buffer); in ZTEST() 108 zassert_str_equal(exp_str, mock_buffer); in ZTEST() 127 zassert_str_equal(exp_str, mock_buffer); in ZTEST() 154 zassert_str_equal(exp_str, mock_buffer); in ZTEST() 191 zassert_str_equal(exp_strs[i], mock_buffer); in ZTEST() 236 zassert_str_equal(exp_strs[i], mock_buffer); in ZTEST() 266 zassert_str_equal(exp_str, mock_buffer); in ZTEST() 284 zassert_str_equal(exp_str, mock_buffer); in ZTEST()
|
/Zephyr-latest/tests/subsys/pm/device_driver_init/src/ |
D | main.c | 36 zassert_str_equal("", pm_device_state_str(state), in ZTEST() 43 zassert_str_equal("active", pm_device_state_str(state), in ZTEST() 50 zassert_str_equal("suspended", pm_device_state_str(state), in ZTEST() 57 zassert_str_equal("off", pm_device_state_str(state), in ZTEST()
|
/Zephyr-latest/tests/drivers/comparator/shell/src/ |
D | test.c | 182 zassert_str_equal(out, "\r\n1\r\n"); in ZTEST() 190 zassert_str_equal(out, "\r\n0\r\n"); in ZTEST() 198 zassert_str_equal(out, "\r\nfailed to get output\r\n"); in ZTEST() 246 zassert_str_equal(out, "\r\nfailed to set trigger\r\n"); in ZTEST() 262 zassert_str_equal(out, "\r\nfailed to set trigger callback\r\n"); in ZTEST() 279 zassert_str_equal(out, "\r\ntimed out\r\n"); in ZTEST() 322 zassert_str_equal(out, "\r\ntriggered\r\n"); in ZTEST() 338 zassert_str_equal(out, "\r\n1\r\n"); in ZTEST() 346 zassert_str_equal(out, "\r\n0\r\n"); in ZTEST() 354 zassert_str_equal(out, "\r\nfailed to get trigger status\r\n"); in ZTEST()
|
/Zephyr-latest/tests/lib/c_lib/common/src/ |
D | main.c | 232 zassert_str_equal(buffer, "eeeee", "strcmp equal ..."); in ZTEST() 279 zassert_str_equal(buffer, "10 chars!\0", "strcpy"); in ZTEST() 469 zassert_str_equal(buf, exp_alnum, "isalnum error"); in ZTEST() 478 zassert_str_equal(buf, exp_alpha, "isalpha error"); in ZTEST() 487 zassert_str_equal(buf, exp_digit, "isdigit error"); in ZTEST() 496 zassert_str_equal(buf, exp_graph, "isgraph error"); in ZTEST() 505 zassert_str_equal(buf, exp_print, "isprint error"); in ZTEST() 514 zassert_str_equal(buf, exp_upper, "isupper error"); in ZTEST() 523 zassert_str_equal(buf, exp_space, "isspace error"); in ZTEST() 532 zassert_str_equal(buf, exp_xdigit, "isxdigit error"); in ZTEST() [all …]
|
/Zephyr-latest/tests/lib/json/src/ |
D | main.c | 332 zassert_str_equal(ts.some_string, "zephyr 123\\uABCD456", in ZTEST() 346 zassert_str_equal(ts.some_nested_struct.nested_string, in ZTEST() 369 zassert_str_equal(ts.xnother_nexx.nested_string, in ZTEST() 378 zassert_str_equal(ts.nested_obj_array[0].nested_string, "true", in ZTEST() 384 zassert_str_equal(ts.nested_obj_array[1].nested_string, "false", in ZTEST() 422 zassert_str_equal(encoded, buffer, in ZTEST() 449 zassert_str_equal(buffer, encoded, in ZTEST() 472 zassert_str_equal(obj_array_array_ts.objects_array[0].objects.name, in ZTEST() 478 zassert_str_equal(obj_array_array_ts.objects_array[1].objects.name, in ZTEST() 483 zassert_str_equal(obj_array_array_ts.objects_array[2].objects.name, in ZTEST() [all …]
|
/Zephyr-latest/tests/unit/util/ |
D | main.c | 18 zassert_str_equal(text, "0", "Value=0 is not converted to \"0\""); in ZTEST() 22 zassert_str_equal(text, "1", "Value=1 is not converted to \"1\""); in ZTEST() 26 zassert_str_equal(text, "11", "Value=10 is not converted to \"11\""); in ZTEST() 30 zassert_str_equal(text, "100", in ZTEST() 35 zassert_str_equal(text, "101", in ZTEST() 40 zassert_str_equal(text, "255", in ZTEST() 47 zassert_str_equal(text, "12", in ZTEST() 54 zassert_str_equal(text, "1", in ZTEST() 423 zassert_str_equal(arr[0], "Henry", "Failed at 0"); in ZTEST() 424 zassert_str_equal(arr[1], "Dorsett", "Failed at 1"); in ZTEST() [all …]
|
/Zephyr-latest/tests/subsys/mem_mgmt/mem_attr/src/ |
D | main.c | 29 zassert_str_equal(region[idx].dt_name, in ZTEST() 36 zassert_str_equal(region[idx].dt_name, in ZTEST()
|
/Zephyr-latest/tests/bluetooth/gatt/src/ |
D | main.c | 466 zassert_str_equal(bt_att_err_to_str(BT_ATT_ERR_SUCCESS), in ZTEST() 468 zassert_str_equal(bt_att_err_to_str(BT_ATT_ERR_INSUFFICIENT_ENCRYPTION), in ZTEST() 470 zassert_str_equal(bt_att_err_to_str(BT_ATT_ERR_OUT_OF_RANGE), in ZTEST() 487 zassert_str_equal(bt_gatt_err_to_str(BT_GATT_ERR(BT_ATT_ERR_SUCCESS)), in ZTEST() 489 zassert_str_equal(bt_gatt_err_to_str(BT_GATT_ERR(BT_ATT_ERR_INSUFFICIENT_ENCRYPTION)), in ZTEST() 491 zassert_str_equal(bt_gatt_err_to_str(BT_GATT_ERR(BT_ATT_ERR_OUT_OF_RANGE)), in ZTEST()
|
/Zephyr-latest/tests/kernel/common/src/ |
D | printk.c | 222 zassert_str_equal(pk_console, expected, "printk failed"); in ZTEST() 253 zassert_str_equal(pk_console, expected, "snprintk failed"); in ZTEST()
|
/Zephyr-latest/tests/ztest/base/src/ |
D | main.c | 44 zassert_str_equal(s1, s2); in ZTEST() 53 zassert_str_equal(s1, s2); in ZTEST()
|
/Zephyr-latest/tests/subsys/modem/modem_chat/src/ |
D | main.c | 524 zassert_str_equal(argv_buffers[0], "+CMGL: ", in ZTEST() 526 zassert_str_equal(argv_buffers[1], "1", in ZTEST() 528 zassert_str_equal(argv_buffers[2], "1", in ZTEST() 530 zassert_str_equal(argv_buffers[3], "", in ZTEST() 532 zassert_str_equal(argv_buffers[4], "50", in ZTEST() 543 zassert_str_equal(argv_buffers[0], "", in ZTEST() 545 zassert_str_equal(argv_buffers[1], in ZTEST()
|
/Zephyr-latest/tests/subsys/logging/log_output_net/src/ |
D | log_output_test.c | 69 zassert_str_equal(exp_str, mock_buffer, "expected: %s, is: %s", exp_str, mock_buffer); in ZTEST()
|
/Zephyr-latest/tests/subsys/logging/log_timestamp/src/ |
D | log_timestamp_test.c | 78 zassert_str_equal(exp_str, mock_buffer); in ZTEST()
|
/Zephyr-latest/tests/subsys/fs/common/ |
D | test_fs_basic.c | 46 zassert_str_equal(stat.name, HELLO, "stat new hello not hello"); in create_write_hello() 60 zassert_str_equal(stat.name, HELLO, "stat written hello not hello"); in create_write_hello() 80 zassert_str_equal(stat.name, HELLO, "stat closed hello not hello"); in create_write_hello()
|
/Zephyr-latest/tests/subsys/settings/fcb/src/ |
D | settings_test_save_2_fcb.c | 59 zassert_str_equal(val_string[0], test_ref_value[0], "bad value read"); in ZTEST()
|
/Zephyr-latest/tests/modules/nanopb/src/ |
D | main.c | 70 zassert_str_equal(msg.nested.name, "Test name"); in ZTEST()
|
/Zephyr-latest/tests/subsys/portability/cmsis_rtos_v2/src/ |
D | timer.c | 58 zassert_str_equal(timer_attr.name, name, "Error getting Timer name"); in ZTEST()
|
/Zephyr-latest/tests/net/lib/http_server/common/src/ |
D | main.c | 400 zassert_str_equal(content_type, "unknown"); in ZTEST() 403 zassert_str_equal(content_type, "text/html"); in ZTEST() 406 zassert_str_equal(content_type, "video/mpeg"); in ZTEST()
|