]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: firmware: add empty string and async tests
authorBrian Norris <computersforpeace@gmail.com>
Wed, 9 Dec 2015 22:50:29 +0000 (14:50 -0800)
committerShuah Khan <shuahkh@osg.samsung.com>
Thu, 7 Jan 2016 21:41:07 +0000 (14:41 -0700)
commitfd0c1f0c900da7b8706f10be6e41a7ace9e0e7da
tree6443ea9d6072c5fb4057b4ffbc68f163fcfe5b70
parent881d8edb39c2813b020f5bb2fd7e484078605d0f
selftests: firmware: add empty string and async tests

Now that we've added a 'trigger_async_request' knob to test the
request_firmware_nowait() API, let's use it. Also add tests for the
empty ("") string, since there have been a couple errors in that
handling already.

Since we now have real ways that the sysfs write might fail, let's add
the appropriate check on the 'echo' lines too.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Acked-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
tools/testing/selftests/firmware/fw_filesystem.sh