Searched refs:test_state (Results 1 – 1 of 1) sorted by relevance
/lib/kunit/ |
A D | kunit-test.c | 810 struct driver_test_state *test_state = kunit_kzalloc(test, sizeof(*test_state), GFP_KERNEL); in kunit_device_driver_test() local 812 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, test_state); in kunit_device_driver_test() 814 test->priv = test_state; in kunit_device_driver_test() 829 KUNIT_ASSERT_TRUE(test, test_state->driver_device_probed); in kunit_device_driver_test() 832 devm_add_action(test_device, test_dev_action, &test_state->action_was_run); in kunit_device_driver_test() 834 KUNIT_EXPECT_EQ(test, test_state->action_was_run, 0); in kunit_device_driver_test() 840 KUNIT_ASSERT_TRUE(test, test_state->driver_device_removed); in kunit_device_driver_test() 843 test_state->driver_device_probed = false; in kunit_device_driver_test() 853 KUNIT_ASSERT_TRUE(test, test_state->driver_device_probed); in kunit_device_driver_test()
|
Completed in 4 milliseconds