| 174 | } |
| 175 | |
| 176 | static int |
| 177 | test_device_driver(struct ml_test *test, struct ml_options *opt) |
| 178 | { |
| 179 | struct test_device *t; |
| 180 | int ret = 0; |
| 181 | |
| 182 | t = ml_test_priv(test); |
| 183 | |
| 184 | /* sub-test: device reconfigure */ |
| 185 | ret = test_device_reconfigure(test, opt); |
| 186 | if (ret != 0) { |
| 187 | printf("\n"); |
| 188 | printf("Model Device Reconfigure Test: " CLRED "%s" CLNRM "\n", "Failed"); |
| 189 | goto error; |
| 190 | } else { |
| 191 | printf("\n"); |
| 192 | printf("Model Device Reconfigure Test: " CLYEL "%s" CLNRM "\n", "Passed"); |
| 193 | } |
| 194 | |
| 195 | printf("\n"); |
| 196 | |
| 197 | t->cmn.result = ML_TEST_SUCCESS; |
| 198 | |
| 199 | return 0; |
| 200 | |
| 201 | error: |
| 202 | t->cmn.result = ML_TEST_FAILED; |
| 203 | return -1; |
| 204 | } |
| 205 | |
| 206 | static int |
| 207 | test_device_result(struct ml_test *test, struct ml_options *opt) |
nothing calls this directly
no test coverage detected