[LTP] [PATCH] mbind01: accept MPOL_LOCAL when passing empty set for MPOL_PREFERRED
Li Wang
liwang@redhat.com
Thu Jul 29 10:12:34 CEST 2021
> static void test_default(unsigned int i, char *p)
> {
> struct test_case *tc = &tcase[i];
> @@ -183,7 +196,10 @@ static void do_test(unsigned int i)
> tst_res(TFAIL | TTERRNO, "get_mempolicy failed");
> return;
> }
> - if (tc->policy != policy) {
> +
> + if (tc->check_policy)
> + tc->check_policy(policy);
> + else if (tc->policy != policy) {
> tst_res(TFAIL, "Wrong policy: %d, expected: %d",
> tc->policy, policy);
>
Seems the error print is reverse, which should be corrected as:
tst_res(TFAIL, "Wrong policy: %d, expected: %d",
- tc->policy, policy);
+ policy, tc->policy);
--
Regards,
Li Wang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20210729/8ebe60f0/attachment-0001.htm>
More information about the ltp
mailing list