proc: proc_skip_spaces() shouldn't think it is working on C strings
[platform/kernel/linux-starfive.git] / kernel / events / hw_breakpoint_test.c
index 5ced822..c57610f 100644 (file)
@@ -295,11 +295,11 @@ static int test_init(struct kunit *test)
 {
        /* Most test cases want 2 distinct CPUs. */
        if (num_online_cpus() < 2)
-               return -EINVAL;
+               kunit_skip(test, "not enough cpus");
 
        /* Want the system to not use breakpoints elsewhere. */
        if (hw_breakpoint_is_used())
-               return -EBUSY;
+               kunit_skip(test, "hw breakpoint already in use");
 
        return 0;
 }