binderThroughputTest: match argv parsing with early continue
Some argv[] parsing options use continue and others don't. Lets match
all of them with the same early "skip loop" behavior.
Change-Id: Iafbfb65d908c5163697d42b63d4f18b9be520fd8
Signed-off-by: Carlos Llamas <cmllamas@google.com>
diff --git a/libs/binder/tests/binderThroughputTest.cpp b/libs/binder/tests/binderThroughputTest.cpp
index 1242092..248e1e5 100644
--- a/libs/binder/tests/binderThroughputTest.cpp
+++ b/libs/binder/tests/binderThroughputTest.cpp
@@ -363,17 +363,20 @@
if (string(argv[i]) == "-s") {
payload_size = atoi(argv[i+1]);
i++;
+ continue;
}
if (string(argv[i]) == "-p") {
// client/server pairs instead of spreading
// requests to all workers. If true, half
// the workers become clients and half servers
cs_pair = true;
+ continue;
}
if (string(argv[i]) == "-t") {
// Run one training round before actually collecting data
// to get an approximation of max latency.
training_round = true;
+ continue;
}
if (string(argv[i]) == "-m") {
// Caller specified the max latency in microseconds.
@@ -386,6 +389,7 @@
cout << "Max latency -m must be positive." << endl;
exit(EXIT_FAILURE);
}
+ continue;
}
}