summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Ferris <cferris@google.com>2013-05-03 14:32:35 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-05-03 14:32:35 -0700
commitba87304f256880aee4e584e7e1a811ce0cef1a68 (patch)
treefe9c9db703b68875842c5482b38bbc20b2baf891
parente457be76ad51061e7e13b8bf697a2d87d6d11065 (diff)
parent10057e4dbeae5bc7ed495dc9f2342a6596c82c79 (diff)
downloadextras-ba87304f256880aee4e584e7e1a811ce0cef1a68.tar.gz
am 10057e4d: Merge "Fix a few incorrect return codes."
* commit '10057e4dbeae5bc7ed495dc9f2342a6596c82c79': Fix a few incorrect return codes.
-rw-r--r--tests/memtest/bandwidth.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/memtest/bandwidth.cpp b/tests/memtest/bandwidth.cpp
index 0e0ec2e0..523cabe3 100644
--- a/tests/memtest/bandwidth.cpp
+++ b/tests/memtest/bandwidth.cpp
@@ -306,7 +306,7 @@ int per_core_bandwidth(int argc, char** argv) {
args[i].core = *it;
args[i].bench = createBandwidthBenchmarkObject(values);
if (!args[i].bench) {
- return 0;
+ return -1;
}
}
@@ -342,7 +342,7 @@ int multithread_bandwidth(int argc, char** argv) {
args[i].core = -1;
args[i].bench = createBandwidthBenchmarkObject(values);
if (!args[i].bench) {
- return 0;
+ return -1;
}
}
@@ -367,18 +367,18 @@ bool run_bandwidth_benchmark(int argc, char** argv, const char *name,
values["num_warm_loops"].int_value = 0;
values["num_loops"].int_value = 0;
if (!processBandwidthOptions(argc, argv, bandwidth_opts, &values)) {
- return -1;
+ return false;
}
size_t size = values["size"].int_value;
if ((size % 64) != 0) {
printf("The size value must be a multiple of 64.\n");
- return 1;
+ return false;
}
if (setpriority(PRIO_PROCESS, 0, -20)) {
perror("Unable to raise priority of process.");
- return -1;
+ return false;
}
bool preamble_printed = false;