kfifo: add explicit error checking in byte stream example
authorAndrea Righi <arighi@develer.com>
Thu, 19 Aug 2010 21:13:29 +0000 (14:13 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 20 Aug 2010 16:34:54 +0000 (09:34 -0700)
commit2aaf2092c168fc02df0645415f524b357ee7ec2e
tree998b8c3f82abb46a5a1c297a20ea0d5c4a7c0408
parent5ddf83912c8b49a24ab0841f6d77f33781dcf10f
kfifo: add explicit error checking in byte stream example

Provide a static array of expected items that kfifo should contain at the
end of the test to validate it.

Signed-off-by: Andrea Righi <arighi@develer.com>
Cc: Stefani Seibold <stefani@seibold.net>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
samples/kfifo/bytestream-example.c