diff options
author | dann frazier <dann.frazier@canonical.com> | 2015-01-06 03:54:40 +0100 |
---|---|---|
committer | Shuah Khan <shuahkh@osg.samsung.com> | 2015-01-06 20:55:21 +0100 |
commit | 13e634de0955a2da84a7bf8584d103805b455cbb (patch) | |
tree | 4d3476cfca64a267364bb7cbadbe7203fafd3e46 /tools/testing/selftests/mqueue | |
parent | selftests/exec: allow shell return code of 126 (diff) | |
download | linux-13e634de0955a2da84a7bf8584d103805b455cbb.tar.xz linux-13e634de0955a2da84a7bf8584d103805b455cbb.zip |
tools: testing: selftests: mq_perf_tests: Fix infinite loop on ARM
We can't use a char type to check for a negative return value since char
isn't guaranteed to be signed. Indeed, the char type tends to be unsigned on
ARM.
Signed-off-by: dann frazier <dann.frazier@canonical.com>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Diffstat (limited to 'tools/testing/selftests/mqueue')
-rw-r--r-- | tools/testing/selftests/mqueue/mq_perf_tests.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/testing/selftests/mqueue/mq_perf_tests.c b/tools/testing/selftests/mqueue/mq_perf_tests.c index 94dae65eea41..8519e9ee97e3 100644 --- a/tools/testing/selftests/mqueue/mq_perf_tests.c +++ b/tools/testing/selftests/mqueue/mq_perf_tests.c @@ -536,10 +536,9 @@ int main(int argc, char *argv[]) { struct mq_attr attr; char *option, *next_option; - int i, cpu; + int i, cpu, rc; struct sigaction sa; poptContext popt_context; - char rc; void *retval; main_thread = pthread_self(); |