selftests: ir: skip when lirc device doesn't exist.
authorShuah Khan <shuah@kernel.org>
Thu, 31 Jan 2019 20:00:54 +0000 (13:00 -0700)
committerShuah Khan <shuah@kernel.org>
Wed, 13 Feb 2019 16:10:41 +0000 (09:10 -0700)
Skip instead of fail when lirc device doesn't exist.

Signed-off-by: Shuah Khan <shuah@kernel.org>
Acked-by: Sean Young <sean@mess.org>
Signed-off-by: Shuah Khan <shuah@kernel.org>
tools/testing/selftests/ir/ir_loopback.c

index 8cdf1b89ac9cf89e8d05128d99b0871112eb0336..ff351bb7c163d8eff9b0ed1b8cff16f3e544d17b 100644 (file)
@@ -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);