All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [PATCH] ttype: using TERRNO to macth errno
@ 2021-02-05  1:16 zhao gongyi
  2021-02-05  2:48 ` Li Wang
  2021-02-18  7:08 ` Li Wang
  0 siblings, 2 replies; 5+ messages in thread
From: zhao gongyi @ 2021-02-05  1:16 UTC (permalink / raw)
  To: ltp

Use TERRNO because we're not using the TEST() macro.

Signed-off-by: zhao gongyi <zhaogongyi@huawei.com>
---
 testcases/kernel/syscalls/prctl/prctl06.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/testcases/kernel/syscalls/prctl/prctl06.c b/testcases/kernel/syscalls/prctl/prctl06.c
index d6517e6b1..21d336c07 100644
--- a/testcases/kernel/syscalls/prctl/prctl06.c
+++ b/testcases/kernel/syscalls/prctl/prctl06.c
@@ -50,14 +50,14 @@ static void do_prctl(void)
 	if (childpid == 0) {
 		check_no_new_privs(1, "After fork, child process", proc_flag);
 		execve(BIN_PATH, childargv, envp);
-		tst_brk(TFAIL | TTERRNO,
+		tst_brk(TFAIL | TERRNO,
 			"child process failed to execute prctl_execve");

 	} else {
 		tst_reap_children();
 		check_no_new_privs(1, "parent process", proc_flag);
 		execve(BIN_PATH, argv, envp);
-		tst_brk(TFAIL | TTERRNO,
+		tst_brk(TFAIL | TERRNO,
 			"parent process failed to execute prctl_execve");
 	}
 }
--
2.17.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [LTP] [PATCH] ttype: using TERRNO to macth errno
  2021-02-05  1:16 [LTP] [PATCH] ttype: using TERRNO to macth errno zhao gongyi
@ 2021-02-05  2:48 ` Li Wang
  2021-02-18  7:08 ` Li Wang
  1 sibling, 0 replies; 5+ messages in thread
From: Li Wang @ 2021-02-05  2:48 UTC (permalink / raw)
  To: ltp

Hi Gongyi,

Any possibility of finding a way to correct all of the unprecise res-flags
in LTP tests?

-- 
Regards,
Li Wang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20210205/1f56f9ff/attachment.htm>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [LTP] [PATCH] ttype: using TERRNO to macth errno
  2021-02-05  1:16 [LTP] [PATCH] ttype: using TERRNO to macth errno zhao gongyi
  2021-02-05  2:48 ` Li Wang
@ 2021-02-18  7:08 ` Li Wang
  1 sibling, 0 replies; 5+ messages in thread
From: Li Wang @ 2021-02-18  7:08 UTC (permalink / raw)
  To: ltp

Pushed, thanks!


-- 
Regards,
Li Wang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20210218/3264d87f/attachment-0001.htm>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [LTP] [PATCH] ttype: using TERRNO to macth errno
  2021-02-05  3:44 zhaogongyi
@ 2021-02-05  4:38 ` Li Wang
  0 siblings, 0 replies; 5+ messages in thread
From: Li Wang @ 2021-02-05  4:38 UTC (permalink / raw)
  To: ltp

Hi Gongyi,

Thanks for your work!

That'd be awesome if you posting/sharing the method of your script too.

On Fri, Feb 5, 2021 at 11:44 AM zhaogongyi <zhaogongyi@huawei.com> wrote:

> Hi Li
>
>
>
> The problem of wrong usage of TTERRNO has been checked all of the project
> by my local script.
>
>
>
> The problem of wrong usage of TERRNO will be fixed in my next patch.
>
>
>
> Thank You
>
>
>
> *???:* Li Wang [mailto:liwang@redhat.com]
> *????:* 2021?2?5? 10:49
> *???:* zhaogongyi <zhaogongyi@huawei.com>
> *??:* LTP List <ltp@lists.linux.it>
> *??:* Re: [LTP] [PATCH] ttype: using TERRNO to macth errno
>
>
>
> Hi Gongyi,
>
>
>
> Any possibility of finding a way to correct all of the unprecise res-flags
> in LTP tests?
>
>
>
> --
>
> Regards,
>
> Li Wang
>


-- 
Regards,
Li Wang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20210205/3ebd7674/attachment-0001.htm>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [LTP] [PATCH] ttype: using TERRNO to macth errno
@ 2021-02-05  3:44 zhaogongyi
  2021-02-05  4:38 ` Li Wang
  0 siblings, 1 reply; 5+ messages in thread
From: zhaogongyi @ 2021-02-05  3:44 UTC (permalink / raw)
  To: ltp

Hi Li

The problem of wrong usage of TTERRNO has been checked all of the project by my local script.

The problem of wrong usage of TERRNO will be fixed in my next patch.

Thank You

???: Li Wang [mailto:liwang@redhat.com]
????: 2021?2?5? 10:49
???: zhaogongyi <zhaogongyi@huawei.com>
??: LTP List <ltp@lists.linux.it>
??: Re: [LTP] [PATCH] ttype: using TERRNO to macth errno

Hi Gongyi,

Any possibility of finding a way to correct all of the unprecise res-flags in LTP tests?

--
Regards,
Li Wang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20210205/f328e9a3/attachment.htm>

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-02-18  7:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-05  1:16 [LTP] [PATCH] ttype: using TERRNO to macth errno zhao gongyi
2021-02-05  2:48 ` Li Wang
2021-02-18  7:08 ` Li Wang
2021-02-05  3:44 zhaogongyi
2021-02-05  4:38 ` Li Wang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.