diff options
author | Bart Van Assche <bvanassche@acm.org> | 2018-12-06 17:11:27 -0800 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2018-12-11 14:54:49 +0100 |
commit | 5ecb8e94b494af0df8de4ca9b9ef88d87b30a9c1 (patch) | |
tree | 78c1fe036f0cbc30ce2383ebcaba049ce67fe163 /tools/lib/lockdep/tests/unlock_balance.sh | |
parent | 7e9798871a9186cb831cf693d7ff58085384ccbd (diff) | |
download | linux-5ecb8e94b494af0df8de4ca9b9ef88d87b30a9c1.tar.gz linux-5ecb8e94b494af0df8de4ca9b9ef88d87b30a9c1.tar.bz2 linux-5ecb8e94b494af0df8de4ca9b9ef88d87b30a9c1.zip |
tools/lib/lockdep/tests: Improve testing accuracy
Instead of checking whether the tests produced any output, check the
output itself. This patch avoids that e.g. debug output causes the
message "PASSED!" to be reported for failed tests.
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Johannes Berg <johannes@sipsolutions.net>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Sasha Levin <sasha.levin@oracle.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Waiman Long <longman@redhat.com>
Cc: johannes.berg@intel.com
Cc: tj@kernel.org
Link: https://lkml.kernel.org/r/20181207011148.251812-4-bvanassche@acm.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'tools/lib/lockdep/tests/unlock_balance.sh')
-rw-r--r-- | tools/lib/lockdep/tests/unlock_balance.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/lib/lockdep/tests/unlock_balance.sh b/tools/lib/lockdep/tests/unlock_balance.sh new file mode 100644 index 000000000000..c6e3952303fe --- /dev/null +++ b/tools/lib/lockdep/tests/unlock_balance.sh @@ -0,0 +1,2 @@ +#!/bin/bash +grep -q 'WARNING: bad unlock balance detected' |