aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Young2012-12-17 18:04:39 -0600
committerLinus Torvalds2012-12-17 19:15:26 -0600
commit9ed1d90ed1e0b5788e5b9148ed70adb1a017078c (patch)
tree948f6cc1e972575909c97325decca016314bba0e /tools/testing/selftests
parent000e06b01f7e1d615345815550306a0e0622433c (diff)
downloadkernel-omap-9ed1d90ed1e0b5788e5b9148ed70adb1a017078c.tar.gz
kernel-omap-9ed1d90ed1e0b5788e5b9148ed70adb1a017078c.tar.xz
kernel-omap-9ed1d90ed1e0b5788e5b9148ed70adb1a017078c.zip
mqueue selftests: print failure status instead of cause make error
Original behavior: bash-4.1$ make -C mqueue run_tests make: Entering directory `/home/dave/git/linux-2.6/tools/testing/selftests/mqueue' ./mq_open_tests /test1 Not running as root, but almost all tests require root in order to modify system settings. Exiting. make: *** [run_tests] Error 1 make: Leaving directory `/home/dave/git/linux-2.6/tools/testing/selftests/mqueue' After applying the patch: bash-4.1$ make -C mqueue run_tests make: Entering directory `/home/dave/git/linux-2.6/tools/testing/selftests/mqueue' Not running as root, but almost all tests require root in order to modify system settings. Exiting. mq_open_tests: [FAIL] Not running as root, but almost all tests require root in order to modify system settings. Exiting. mq_perf_tests: [FAIL] make: Leaving directory `/home/dave/git/linux-2.6/tools/testing/selftests/mqueue' Signed-off-by: Dave Young <dyoung@redhat.com> Reviewed-by: Pekka Enberg <penberg@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools/testing/selftests')
-rw-r--r--tools/testing/selftests/mqueue/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/testing/selftests/mqueue/Makefile b/tools/testing/selftests/mqueue/Makefile
index 54c0aad2b47c..218a122c7951 100644
--- a/tools/testing/selftests/mqueue/Makefile
+++ b/tools/testing/selftests/mqueue/Makefile
@@ -3,8 +3,8 @@ all:
3 gcc -O2 -lrt -lpthread -lpopt -o mq_perf_tests mq_perf_tests.c 3 gcc -O2 -lrt -lpthread -lpopt -o mq_perf_tests mq_perf_tests.c
4 4
5run_tests: 5run_tests:
6 ./mq_open_tests /test1 6 @./mq_open_tests /test1 || echo "mq_open_tests: [FAIL]"
7 ./mq_perf_tests 7 @./mq_perf_tests || echo "mq_perf_tests: [FAIL]"
8 8
9clean: 9clean:
10 rm -f mq_open_tests mq_perf_tests 10 rm -f mq_open_tests mq_perf_tests