Commit 166989e3 authored by Maarten Lankhorst's avatar Maarten Lankhorst Committed by Ingo Molnar

locking-selftests: Handle unexpected failures more strictly

When CONFIG_PROVE_LOCKING is not enabled, more tests are
expected to pass unexpectedly, but there no tests that should
start to fail that pass with CONFIG_PROVE_LOCKING enabled.
Signed-off-by: default avatarMaarten Lankhorst <maarten.lankhorst@canonical.com>
Acked-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
Cc: dri-devel@lists.freedesktop.org
Cc: linaro-mm-sig@lists.linaro.org
Cc: rostedt@goodmis.org
Cc: daniel@ffwll.ch
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/20130620113151.4001.77963.stgit@patserSigned-off-by: default avatarIngo Molnar <mingo@kernel.org>
parent f3cf139e
...@@ -976,16 +976,18 @@ static void dotest(void (*testcase_fn)(void), int expected, int lockclass_mask) ...@@ -976,16 +976,18 @@ static void dotest(void (*testcase_fn)(void), int expected, int lockclass_mask)
/* /*
* Filter out expected failures: * Filter out expected failures:
*/ */
if (debug_locks != expected) {
#ifndef CONFIG_PROVE_LOCKING #ifndef CONFIG_PROVE_LOCKING
if (expected == FAILURE && debug_locks) {
expected_testcase_failures++; expected_testcase_failures++;
printk("failed|"); printk("failed|");
#else }
else
#endif
if (debug_locks != expected) {
unexpected_testcase_failures++; unexpected_testcase_failures++;
printk("FAILED|"); printk("FAILED|");
dump_stack(); dump_stack();
#endif
} else { } else {
testcase_successes++; testcase_successes++;
printk(" ok |"); printk(" ok |");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment