diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-06-18 04:09:48 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-06-18 04:09:48 -0400 |
commit | 5af970a48f3ba0dd96a036b196c79dc923f28231 (patch) | |
tree | 004e580365d61104ae25886d1b2371f0a9cf74f6 | |
parent | 766d02786ecd22932beeb9ca8bad6d8c5a552ef9 (diff) |
rcutorture: WARN_ON_ONCE(1) when detecting an error
this makes it easier for automated tests to pick up such failures.
-rw-r--r-- | kernel/rcutorture.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/rcutorture.c b/kernel/rcutorture.c index 0334b6a8baca..0ca7e9b290b0 100644 --- a/kernel/rcutorture.c +++ b/kernel/rcutorture.c | |||
@@ -687,6 +687,7 @@ rcu_torture_printk(char *page) | |||
687 | if (i > 1) { | 687 | if (i > 1) { |
688 | cnt += sprintf(&page[cnt], "!!! "); | 688 | cnt += sprintf(&page[cnt], "!!! "); |
689 | atomic_inc(&n_rcu_torture_error); | 689 | atomic_inc(&n_rcu_torture_error); |
690 | WARN_ON_ONCE(1); | ||
690 | } | 691 | } |
691 | cnt += sprintf(&page[cnt], "Reader Pipe: "); | 692 | cnt += sprintf(&page[cnt], "Reader Pipe: "); |
692 | for (i = 0; i < RCU_TORTURE_PIPE_LEN + 1; i++) | 693 | for (i = 0; i < RCU_TORTURE_PIPE_LEN + 1; i++) |