]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
tools/lib/lockdep/tests: Improve testing accuracy
authorBart Van Assche <bvanassche@acm.org>
Fri, 7 Dec 2018 01:11:27 +0000 (17:11 -0800)
committerIngo Molnar <mingo@kernel.org>
Tue, 11 Dec 2018 13:54:49 +0000 (14:54 +0100)
commit5ecb8e94b494af0df8de4ca9b9ef88d87b30a9c1
tree78c1fe036f0cbc30ce2383ebcaba049ce67fe163
parent7e9798871a9186cb831cf693d7ff58085384ccbd
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>
12 files changed:
tools/lib/lockdep/run_tests.sh
tools/lib/lockdep/tests/AA.sh [new file with mode: 0644]
tools/lib/lockdep/tests/ABA.sh [new file with mode: 0644]
tools/lib/lockdep/tests/ABBA.sh [new file with mode: 0644]
tools/lib/lockdep/tests/ABBA_2threads.sh [new file with mode: 0644]
tools/lib/lockdep/tests/ABBCCA.sh [new file with mode: 0644]
tools/lib/lockdep/tests/ABBCCDDA.sh [new file with mode: 0644]
tools/lib/lockdep/tests/ABCABC.sh [new file with mode: 0644]
tools/lib/lockdep/tests/ABCDBCDA.sh [new file with mode: 0644]
tools/lib/lockdep/tests/ABCDBDDA.sh [new file with mode: 0644]
tools/lib/lockdep/tests/WW.sh [new file with mode: 0644]
tools/lib/lockdep/tests/unlock_balance.sh [new file with mode: 0644]