From: Shuah Khan Date: Wed, 2 Jul 2014 22:22:37 +0000 (-0700) Subject: tools/testing/selftests/ipc/msgque.c: improve error handling when not running as... X-Git-Tag: omap-for-v3.16/fixes-rc4~27^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e84f1ab33c76157fd061352b56c4fac9e0f2e8e1;p=pandora-kernel.git tools/testing/selftests/ipc/msgque.c: improve error handling when not running as root The test fails in the middle when it is not run as root while accessing /proc/sys/kernel/msg_next_id. Changed it to check for root at the beginning of the test and exit if not root. Signed-off-by: Shuah Khan Cc: Greg Kroah-Hartman Cc: Davidlohr Bueso Cc: Colin Ian King Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed