Skip to content
Snippets Groups Projects
Commit 1a0f1c7c authored by Tim Murray's avatar Tim Murray
Browse files

Add loop option to hwuitest.

Change-Id: I15b6b121bd6bd963e5b433bdd93d6dc3e83645b8
parent e74007de
No related branches found
No related tags found
No related merge requests found
......@@ -263,7 +263,20 @@ int main(int argc, char* argv[]) {
printf("Error: couldn't find test %s\n", testName);
return 1;
}
proc();
int loopCount = 1;
if (argc > 2) {
loopCount = atoi(argv[2]);
if (!loopCount) {
printf("Invalid loop count!\n");
return 1;
}
}
if (loopCount < 0) {
loopCount = INT_MAX;
}
for (int i = 0; i < loopCount; i++) {
proc();
}
printf("Success!\n");
return 0;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment