Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tools/lib/lockdep: Hide liblockdep output from test results

This would prevent the liblockdep error messages from getting
mixed in with the test result output.

Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: a.p.zijlstra@chello.nl
Cc: ben@decadent.org.uk
Link: http://lkml.kernel.org/r/20170525130005.5947-22-alexander.levin@verizon.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>

authored by

Levin, Alexander (Sasha Levin) and committed by
Ingo Molnar
4ea4b3c2 3f5a3934

+2 -2
+2 -2
tools/lib/lockdep/run_tests.sh
··· 6 6 testname=$(basename "$i" .c) 7 7 gcc -o tests/$testname -pthread $i liblockdep.a -Iinclude -D__USE_LIBLOCKDEP &> /dev/null 8 8 echo -ne "$testname... " 9 - if [ $(timeout 1 ./tests/$testname | wc -l) -gt 0 ]; then 9 + if [ $(timeout 1 ./tests/$testname 2>&1 | wc -l) -gt 0 ]; then 10 10 echo "PASSED!" 11 11 else 12 12 echo "FAILED!" ··· 20 20 testname=$(basename "$i" .c) 21 21 gcc -o tests/$testname -pthread -Iinclude $i &> /dev/null 22 22 echo -ne "(PRELOAD) $testname... " 23 - if [ $(timeout 1 ./lockdep ./tests/$testname | wc -l) -gt 0 ]; then 23 + if [ $(timeout 1 ./lockdep ./tests/$testname 2>&1 | wc -l) -gt 0 ]; then 24 24 echo "PASSED!" 25 25 else 26 26 echo "FAILED!"