selftests: ir: skip when lirc device doesn't exist.
Shuah Khan
maintainerPATCH 1/1 selftests: ir: skip when lirc device doesn't exist.
Skip instead of fail when lirc device doesn't exist.
Signed-off-by Shuah Khan <shuah at kernel.org>
--- tools/testing/selftests/ir/ir_loopback.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/ir/ir_loopback.c +1 -1
@@ -76,7 +76,7 @@ int lirc_open(const char *rc) }if (!dent) -ksft_exit_fail_msg ("cannot find lirc device for %s\n" , rc); +ksft_exit_skip ("cannot find lirc device for %s\n" , rc);closedir (d);
Signature · 1 line
2.17.1