aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Young2012-12-17 18:04:38 -0600
committerLinus Torvalds2012-12-17 19:15:26 -0600
commit000e06b01f7e1d615345815550306a0e0622433c (patch)
tree08d01bfc97c647863f25eab6f1a38f9c0415a814 /tools/testing/selftests
parentcdd9fa8de64bc5b33d8e943dde486b60d8468ec0 (diff)
downloadkernel-omap-000e06b01f7e1d615345815550306a0e0622433c.tar.gz
kernel-omap-000e06b01f7e1d615345815550306a0e0622433c.tar.xz
kernel-omap-000e06b01f7e1d615345815550306a0e0622433c.zip
vm selftests: print failure status instead of cause make error
Original behavior: bash-4.1$ make -C vm run_tests make: Entering directory `/home/dave/git/linux-2.6/tools/testing/selftests/vm' /bin/sh ./run_vmtests ./run_vmtests: line 24: /proc/sys/vm/nr_hugepages: Permission denied Please run this test as root make: *** [run_tests] Error 1 make: Leaving directory `/home/dave/git/linux-2.6/tools/testing/selftests/vm' After applying the patch: bash-4.1$ make -C vm run_tests make: Entering directory `/home/dave/git/linux-2.6/tools/testing/selftests/vm' ./run_vmtests: line 24: /proc/sys/vm/nr_hugepages: Permission denied Please run this test as root vmtests: [FAIL] make: Leaving directory `/home/dave/git/linux-2.6/tools/testing/selftests/vm' Signed-off-by: Dave Young <dyoung@redhat.com> Cc: 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/vm/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/vm/Makefile b/tools/testing/selftests/vm/Makefile
index 7300d0702efe..436d2e81868b 100644
--- a/tools/testing/selftests/vm/Makefile
+++ b/tools/testing/selftests/vm/Makefile
@@ -8,7 +8,7 @@ all: hugepage-mmap hugepage-shm map_hugetlb thuge-gen
8 $(CC) $(CFLAGS) -o $@ $^ 8 $(CC) $(CFLAGS) -o $@ $^
9 9
10run_tests: all 10run_tests: all
11 /bin/sh ./run_vmtests 11 @/bin/sh ./run_vmtests || echo "vmtests: [FAIL]"
12 12
13clean: 13clean:
14 $(RM) hugepage-mmap hugepage-shm map_hugetlb 14 $(RM) hugepage-mmap hugepage-shm map_hugetlb