diff --git a/tests/project.yml b/tests/project.yml index 9848ed7fa..6671e056b 100644 --- a/tests/project.yml +++ b/tests/project.yml @@ -47,12 +47,11 @@ - CORE_M4 - __CODE_RED - _TINY_USB_SOURCE_FILE_ + - _TEST_ :test: - *common_defines - - _TEST_ :test_preprocess: - *common_defines - - _TEST_ # :release: # :release_preprocess: diff --git a/tests/test/host/ehci/test_ehci_init.c b/tests/test/host/ehci/test_ehci_init.c index da4c6d3c9..b75ebd842 100644 --- a/tests/test/host/ehci/test_ehci_init.c +++ b/tests/test/host/ehci/test_ehci_init.c @@ -36,6 +36,7 @@ */ /**************************************************************************/ +#include #include "unity.h" #include "type_helper.h" #include "tusb_option.h" @@ -60,7 +61,7 @@ uint8_t hostid; void setUp(void) { ehci_controller_init(); - hcd_init(); + TEST_ASSERT_EQUAL( TUSB_ERROR_NONE, hcd_init()); dev_addr = 1; hostid = RANDOM(CONTROLLER_HOST_NUMBER) + TEST_CONTROLLER_HOST_START_INDEX;