Lines Matching refs:KUNIT_EXPECT_EQ
49 KUNIT_EXPECT_EQ(test, 0, proc_dointvec(&null_data_table, in sysctl_test_api_dointvec_null_tbl_data()
52 KUNIT_EXPECT_EQ(test, (size_t)0, len); in sysctl_test_api_dointvec_null_tbl_data()
58 KUNIT_EXPECT_EQ(test, 0, proc_dointvec(&null_data_table, in sysctl_test_api_dointvec_null_tbl_data()
61 KUNIT_EXPECT_EQ(test, (size_t)0, len); in sysctl_test_api_dointvec_null_tbl_data()
95 KUNIT_EXPECT_EQ(test, 0, proc_dointvec(&data_maxlen_unset_table, in sysctl_test_api_dointvec_table_maxlen_unset()
98 KUNIT_EXPECT_EQ(test, (size_t)0, len); in sysctl_test_api_dointvec_table_maxlen_unset()
104 KUNIT_EXPECT_EQ(test, 0, proc_dointvec(&data_maxlen_unset_table, in sysctl_test_api_dointvec_table_maxlen_unset()
107 KUNIT_EXPECT_EQ(test, (size_t)0, len); in sysctl_test_api_dointvec_table_maxlen_unset()
136 KUNIT_EXPECT_EQ(test, 0, proc_dointvec(&table, KUNIT_PROC_READ, buffer, in sysctl_test_api_dointvec_table_len_is_zero()
138 KUNIT_EXPECT_EQ(test, (size_t)0, len); in sysctl_test_api_dointvec_table_len_is_zero()
140 KUNIT_EXPECT_EQ(test, 0, proc_dointvec(&table, KUNIT_PROC_WRITE, buffer, in sysctl_test_api_dointvec_table_len_is_zero()
142 KUNIT_EXPECT_EQ(test, (size_t)0, len); in sysctl_test_api_dointvec_table_len_is_zero()
175 KUNIT_EXPECT_EQ(test, 0, proc_dointvec(&table, KUNIT_PROC_READ, buffer, in sysctl_test_api_dointvec_table_read_but_position_set()
177 KUNIT_EXPECT_EQ(test, (size_t)0, len); in sysctl_test_api_dointvec_table_read_but_position_set()
204 KUNIT_EXPECT_EQ(test, 0, proc_dointvec(&table, KUNIT_PROC_READ, in sysctl_test_dointvec_read_happy_single_positive()
234 KUNIT_EXPECT_EQ(test, 0, proc_dointvec(&table, KUNIT_PROC_READ, in sysctl_test_dointvec_read_happy_single_negative()
265 KUNIT_EXPECT_EQ(test, 0, proc_dointvec(&table, KUNIT_PROC_WRITE, in sysctl_test_dointvec_write_happy_single_positive()
267 KUNIT_EXPECT_EQ(test, sizeof(input) - 1, len); in sysctl_test_dointvec_write_happy_single_positive()
268 KUNIT_EXPECT_EQ(test, sizeof(input) - 1, (size_t)pos); in sysctl_test_dointvec_write_happy_single_positive()
269 KUNIT_EXPECT_EQ(test, 9, *((int *)table.data)); in sysctl_test_dointvec_write_happy_single_positive()
295 KUNIT_EXPECT_EQ(test, 0, proc_dointvec(&table, KUNIT_PROC_WRITE, in sysctl_test_dointvec_write_happy_single_negative()
297 KUNIT_EXPECT_EQ(test, sizeof(input) - 1, len); in sysctl_test_dointvec_write_happy_single_negative()
298 KUNIT_EXPECT_EQ(test, sizeof(input) - 1, (size_t)pos); in sysctl_test_dointvec_write_happy_single_negative()
299 KUNIT_EXPECT_EQ(test, -9, *((int *)table.data)); in sysctl_test_dointvec_write_happy_single_negative()
335 KUNIT_EXPECT_EQ(test, -EINVAL, proc_dointvec(&table, KUNIT_PROC_WRITE, in sysctl_test_api_dointvec_write_single_less_int_min()
337 KUNIT_EXPECT_EQ(test, max_len, len); in sysctl_test_api_dointvec_write_single_less_int_min()
338 KUNIT_EXPECT_EQ(test, 0, *((int *)table.data)); in sysctl_test_api_dointvec_write_single_less_int_min()
367 KUNIT_EXPECT_EQ(test, -EINVAL, proc_dointvec(&table, KUNIT_PROC_WRITE, in sysctl_test_api_dointvec_write_single_greater_int_max()
370 KUNIT_EXPECT_EQ(test, 0, *((int *)table.data)); in sysctl_test_api_dointvec_write_single_greater_int_max()