FIX tests namespaces
This commit is contained in:
		| @@ -29,7 +29,8 @@ | ||||
| #include "unity/unity.h" | ||||
| #include "utest/utest.h" | ||||
|  | ||||
| namespace utest::v1 { | ||||
| namespace utest { | ||||
| namespace v1 { | ||||
|  | ||||
| // test_hdc1000 test handler function | ||||
| static control_t test_sensor_device(const size_t call_count) { | ||||
| @@ -53,9 +54,9 @@ static control_t test_sensor_device(const size_t call_count) { | ||||
|     return CaseNext; | ||||
| } | ||||
|  | ||||
| static utest::v1::status_t greentea_setup(const size_t number_of_cases) { | ||||
|     // Here, we specify the timeout (60s) and the host test (a built-in host test or the | ||||
|     // name of our Python file) | ||||
| static status_t greentea_setup(const size_t number_of_cases) { | ||||
|     // Here, we specify the timeout (60s) and the host test (a built-in host test | ||||
|     // or the name of our Python file) | ||||
|     GREENTEA_SETUP(60, "default_auto"); | ||||
|  | ||||
|     return greentea_test_setup_handler(number_of_cases); | ||||
| @@ -65,6 +66,7 @@ static utest::v1::status_t greentea_setup(const size_t number_of_cases) { | ||||
| static Case cases[] = {Case("test sensor device", test_sensor_device)}; | ||||
|  | ||||
| static Specification specification(greentea_setup, cases); | ||||
| };  // namespace v1 | ||||
| };  // namespace utest | ||||
|  | ||||
| int main() { return !Harness::run(specification); } | ||||
| };  // namespace utest::v1 | ||||
| int main() { return !utest::v1::Harness::run(utest::v1::specification); } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user