[LTP] [PATCH v2] sched_setattr/sched_setattr01: Add new testcase for sched_setattr

Cyril Hrubis chrubis@suse.cz
Wed Dec 2 21:55:51 CET 2015


Hi!
Pushed with following changes:
(To make the error reports more verbose)

@@ -90,8 +90,10 @@ static void sched_setattr_verify(const struct test_case *test)
        TEST(sched_setattr(*(test->pid), test->a, test->flags));
 
        if (TEST_RETURN != test->exp_return) {
-               tst_resm(TFAIL | TTERRNO, "sched_setattr() return "
-                       "unexpectedly: expected: %d", test->exp_return);
+               tst_resm(TFAIL | TTERRNO, "sched_setattr(%i,attr,%u) "
+                        "returned: %ld expected: %d",
+                        *(test->pid), test->flags,
+                        TEST_RETURN, test->exp_return);
                return;
        }
 
@@ -101,8 +103,9 @@ static void sched_setattr_verify(const struct test_case *test)
                return;
        }
 
-       tst_resm(TFAIL | TTERRNO, "sched_setattr() return unexpectedly "
-               ": expected: %d - %s",
+       tst_resm(TFAIL | TTERRNO, "sched_setattr(%i,attr,%u): "
+               "expected: %d - %s",
+               *(test->pid), test->flags,
                test->exp_errno, tst_strerrno(test->exp_errno));
 }

Thanks. And sorry for the delay.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the Ltp mailing list