Skip to content

Commit

Permalink
tools: testing: selftests: mq_perf_tests: Fix infinite loop on ARM
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
dann frazier authored and Shuah Khan committed Jan 6, 2015
1 parent cd805f3 commit 13e634d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tools/testing/selftests/mqueue/mq_perf_tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 13e634d

Please sign in to comment.