Merged
【mspti_master】测试用例完善 #178
hewenboAdd on Aug 20
【mspti_master】测试用例完善 #178
Merged
Merged fromDeleted :masterintoAscend/msptimaster
Total: 7 files changed+144-100
Msamples/callback_domain/callback_domain.cpp+2-2File content is under review, please try again later
| @@ -180,8 +180,8 @@ int main() | |||
| 180 | ACL_CALL(Init(deviceId, &context, &stream)); | 180 | ACL_CALL(Init(deviceId, &context, &stream)); |
| 181 | SetUpMspti(&context, &stream); | 181 | SetUpMspti(&context, &stream); |
| 182 | DoAclAdd(context, stream); | 182 | DoAclAdd(context, stream); |
| 183 | - DeInit(deviceId, &context, &stream); | ||
| 184 | - | ||
| 185 | DeInitMspti(); | 183 | DeInitMspti(); |
| 184 | + | ||
| 185 | + DeInit(deviceId, &context, &stream); | ||
| 186 | return 0; | 186 | return 0; |
| 187 | } | 187 | } |
| @@ -240,8 +240,8 @@ int main() | |||
| 240 | ShowMsptiApiCallResult(); | 240 | ShowMsptiApiCallResult(); |
| 241 | DoAclAdd(context, stream); | 241 | DoAclAdd(context, stream); |
| 242 | ShowMsptiApiCallResult(); | 242 | ShowMsptiApiCallResult(); |
| 243 | - DeInit(deviceId, &context, &stream); | ||
| 244 | - | ||
| 245 | DeInitMspti(); | 243 | DeInitMspti(); |
| 244 | + | ||
| 245 | + DeInit(deviceId, &context, &stream); | ||
| 246 | return 0; | 246 | return 0; |
| 247 | } | 247 | } |
Msamples/mspti_correlation/mspti_correlation.cpp+2-2File content is under review, please try again later
| @@ -249,10 +249,10 @@ int main() | |||
| 249 | ACL_CALL(Init(deviceId, &context, &stream)); | 249 | ACL_CALL(Init(deviceId, &context, &stream)); |
| 250 | SetUpMspti(&context, &stream); | 250 | SetUpMspti(&context, &stream); |
| 251 | DoAclAdd(context, stream); | 251 | DoAclAdd(context, stream); |
| 252 | - DeInit(deviceId, &context, &stream); | ||
| 253 | - | ||
| 254 | DeInitMspti(); | 252 | DeInitMspti(); |
| 255 | 253 | ||
| 254 | + DeInit(deviceId, &context, &stream); | ||
| 255 | + | ||
| 256 | PrintExternalCorrelationTrace(); | 256 | PrintExternalCorrelationTrace(); |
| 257 | return 0; | 257 | return 0; |
| 258 | } | 258 | } |
| @@ -76,9 +76,8 @@ int main(int argc, const char **argv) | |||
| 76 | 76 | ||
| 77 | MstxDomainInit(); | 77 | MstxDomainInit(); |
| 78 | TestMstx(); | 78 | TestMstx(); |
| 79 | + DeInitMspti(); | ||
| 79 | DeInit(deviceId, &context, &stream); | 80 | DeInit(deviceId, &context, &stream); |
| 80 | MstxDomainDeInit(); | 81 | MstxDomainDeInit(); |
| 81 | - | ||
| 82 | - DeInitMspti(); | ||
| 83 | return 0; | 82 | return 0; |
| 84 | } | 83 | } |
Mtest/mspti_cpp/st/script/test_mspti_samples.py+133-88File content is under review, please try again later