Home
last modified time | relevance | path

Searched refs:expected_result (Results 1 – 7 of 7) sorted by relevance

/linux/samples/kfifo/
A Dinttype-example.c45 static const int expected_result[FIFO_SIZE] = { variable
92 if (i != expected_result[j++]) { in testfunc()
97 if (j != ARRAY_SIZE(expected_result)) { in testfunc()
A Drecord-example.c56 static const char *expected_result[] = { variable
106 if (strcmp(buf, expected_result[i++])) { in testfunc()
111 if (i != ARRAY_SIZE(expected_result)) { in testfunc()
A Dbytestream-example.c45 static const unsigned char expected_result[FIFO_SIZE] = { variable
99 if (i != expected_result[j++]) { in testfunc()
104 if (j != ARRAY_SIZE(expected_result)) { in testfunc()
/linux/tools/testing/selftests/bpf/
A Dtest_sock_addr.c87 } expected_result; member
659 if (ret < 0 && test->expected_result != LOAD_REJECT) { in load_insns()
680 if (test->expected_result != LOAD_REJECT) in load_path()
1316 if (test->expected_result == LOAD_REJECT && progfd < 0) in run_test_case()
1318 else if (test->expected_result == LOAD_REJECT || progfd < 0) in run_test_case()
1323 if (test->expected_result == ATTACH_REJECT && err) { in run_test_case()
1326 } else if (test->expected_result == ATTACH_REJECT || err) { in run_test_case()
1328 } else if (test->expected_result == ATTACH_OKAY) { in run_test_case()
1354 if (test->expected_result == SYSCALL_EPERM && err == EPERM) { in run_test_case()
1359 if (test->expected_result == SYSCALL_ENOTSUPP && err == ENOTSUPP) { in run_test_case()
[all …]
/linux/tools/testing/selftests/x86/
A Damx.c357 enum expected_result { FAIL_EXPECTED, SUCCESS_EXPECTED }; enum
369 static void validate_req_xcomp_perm(enum expected_result exp) in validate_req_xcomp_perm()
394 static void validate_xcomp_perm(enum expected_result exp) in validate_xcomp_perm()
432 static void setup_altstack(void *addr, unsigned long size, enum expected_result exp) in setup_altstack()
/linux/drivers/gpu/drm/amd/display/dc/dce/
A Ddce_i2c_hw.c448 enum i2c_channel_operation_result expected_result) in dce_i2c_hw_engine_wait_on_operation_result() argument
461 if (result != expected_result) in dce_i2c_hw_engine_wait_on_operation_result()
/linux/drivers/of/
A Dunittest.c2832 .expected_result = expected, \
2839 int expected_result; member
2902 {.dtb_begin = NULL, .dtb_end = NULL, .expected_result = 0, .name = NULL}
2954 if (info->expected_result != -9999) { in unittest_unflatten_overlay_base()
3025 if (ret != info->expected_result) in overlay_data_apply()
3027 info->expected_result, ret, overlay_name); in overlay_data_apply()
3029 return (ret == info->expected_result); in overlay_data_apply()

Completed in 31 milliseconds