Skip to content

Commit

Permalink
rcutorture: WARN_ON_ONCE(1) when detecting an error
Browse files Browse the repository at this point in the history
this makes it easier for automated tests to pick up such failures.
  • Loading branch information
Ingo Molnar committed Jun 18, 2008
1 parent 766d027 commit 5af970a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kernel/rcutorture.c
Original file line number Diff line number Diff line change
Expand Up @@ -687,6 +687,7 @@ rcu_torture_printk(char *page)
if (i > 1) {
cnt += sprintf(&page[cnt], "!!! ");
atomic_inc(&n_rcu_torture_error);
WARN_ON_ONCE(1);
}
cnt += sprintf(&page[cnt], "Reader Pipe: ");
for (i = 0; i < RCU_TORTURE_PIPE_LEN + 1; i++)
Expand Down

0 comments on commit 5af970a

Please sign in to comment.