<div dir="ltr"><div class="gmail_quote"><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
static void test_default(unsigned int i, char *p)<br>
{<br>
struct test_case *tc = &tcase[i];<br>
@@ -183,7 +196,10 @@ static void do_test(unsigned int i)<br>
tst_res(TFAIL | TTERRNO, "get_mempolicy failed");<br>
return;<br>
}<br>
- if (tc->policy != policy) {<br>
+<br>
+ if (tc->check_policy)<br>
+ tc->check_policy(policy);<br>
+ else if (tc->policy != policy) {<br>
tst_res(TFAIL, "Wrong policy: %d, expected: %d",<br>
tc->policy, policy);<br></blockquote><div><br></div><div class="gmail_default" style="font-size:small">Seems the error print is reverse, which should be corrected as:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"> tst_res(TFAIL, "Wrong policy: %d, expected: %d",<br>- tc->policy, policy);<br>+ policy, tc->policy);<br></div><div class="gmail_default" style="font-size:small"><br></div></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Regards,<br></div><div>Li Wang<br></div></div></div></div>