fixed usage warning

This commit is contained in:
Jake Goodwin 2023-09-07 21:46:51 -07:00
parent b97b731bb9
commit 604dc1ad60
1 changed files with 8 additions and 2 deletions

View File

@ -341,11 +341,17 @@ static void test_gy521_self_test_accel(void **sate)
/*Mock Object/function for TWI RX*/ /*Mock Object/function for TWI RX*/
static void test_gy521_testing(void **sate) static void test_gy521_testing(void **state)
{ {
assert_false(1); assert_false(1);
} }
static void test_gyro_update(void **state)
{
assert_true(1);
}
int main(void) int main(void)
{ {
int result = 0; int result = 0;
@ -353,7 +359,7 @@ int main(void)
/*For testing TWI/I2C related stuff*/ /*For testing TWI/I2C related stuff*/
const struct CMUnitTest twi_group[] = { const struct CMUnitTest twi_group[] = {
cmocka_unit_test_setup_teardown(test_gy521_testing, setup_gy521_instance, teardown_gy521_instance), cmocka_unit_test_setup_teardown(test_gy521_testing, setup_gy521_instance, teardown_gy521_instance),
//cmocka_unit_test(test_gy521_testing), cmocka_unit_test_setup_teardown(test_gyro_update, setup_gy521_instance, teardown_gy521_instance),
}; };
const struct CMUnitTest tests[] = { const struct CMUnitTest tests[] = {
cmocka_unit_test(test_gy521_init), cmocka_unit_test(test_gy521_init),