<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:small"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Nov 21, 2022 at 7:51 PM Avinesh Kumar <<a href="mailto:akumar@suse.de">akumar@suse.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Signed-off-by: Avinesh Kumar <<a href="mailto:akumar@suse.de" target="_blank">akumar@suse.de</a>><br>
---<br>
 testcases/kernel/syscalls/getrlimit/getrlimit01.c | 14 +++-----------<br>
 1 file changed, 3 insertions(+), 11 deletions(-)<br>
<br>
diff --git a/testcases/kernel/syscalls/getrlimit/getrlimit01.c b/testcases/kernel/syscalls/getrlimit/getrlimit01.c<br>
index 2a480dfa7..bea37ab1c 100644<br>
--- a/testcases/kernel/syscalls/getrlimit/getrlimit01.c<br>
+++ b/testcases/kernel/syscalls/getrlimit/getrlimit01.c<br>
@@ -47,17 +47,9 @@ static void verify_getrlimit(unsigned int i)<br>
        struct rlimit rlim;<br>
        struct tcase *tc = &tcases[i];<br>
<br>
-       TEST(getrlimit(tc->res, &rlim));<br>
-<br>
-       if (TST_RET == -1) {<br>
-               tst_res(TFAIL | TTERRNO,<br>
-                       "getrlimit() test %s failed",<br>
-                       tc->res_str);<br>
-       } else {<br>
-               tst_res(TPASS,<br>
-                       "getrlimit() test %s success",<br>
-                       tc->res_str);<br>
-       }<br>
+       TST_EXP_PASS(getrlimit(tc->res, &rlim),<br>
+                               "getrlimit() test for resource type %s:",<br>
+                               tc->res_str);<br></blockquote><div><br></div><div><div class="gmail_default" style="font-size:small">Merged (with print message refined), thanks!</div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
 }<br>
<br>
 static struct tst_test test = {<br>
-- <br>
2.38.1<br>
<br>
<br>
-- <br>
Mailing list info: <a href="https://lists.linux.it/listinfo/ltp" rel="noreferrer" target="_blank">https://lists.linux.it/listinfo/ltp</a><br>
<br>
</blockquote></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>