Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
platform_frameworks_base
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dhina17
platform_frameworks_base
Commits
1a0f1c7c
Commit
1a0f1c7c
authored
9 years ago
by
Tim Murray
Browse files
Options
Downloads
Patches
Plain Diff
Add loop option to hwuitest.
Change-Id: I15b6b121bd6bd963e5b433bdd93d6dc3e83645b8
parent
e74007de
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libs/hwui/tests/main.cpp
+14
-1
14 additions, 1 deletion
libs/hwui/tests/main.cpp
with
14 additions
and
1 deletion
libs/hwui/tests/main.cpp
+
14
−
1
View file @
1a0f1c7c
...
...
@@ -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
;
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment