Skip to content

Commit 4ea4b3c

Browse files
Levin, Alexander (Sasha Levin)ingomolnar
authored andcommitted
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>
1 parent 3f5a393 commit 4ea4b3c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎tools/lib/lockdep/run_tests.sh‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ for i in `ls tests/*.c`; do
66
testname=$(basename "$i" .c)
77
gcc -o tests/$testname -pthread $i liblockdep.a -Iinclude -D__USE_LIBLOCKDEP &> /dev/null
88
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
1010
echo "PASSED!"
1111
else
1212
echo "FAILED!"
@@ -20,7 +20,7 @@ for i in `ls tests/*.c`; do
2020
testname=$(basename "$i" .c)
2121
gcc -o tests/$testname -pthread -Iinclude $i &> /dev/null
2222
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
2424
echo "PASSED!"
2525
else
2626
echo "FAILED!"

0 commit comments

Comments
 (0)