diff mbox series

ttype: using TERRNO to macth errno

Message ID 20210205011635.177469-1-zhaogongyi@huawei.com
State Accepted
Headers show
Series ttype: using TERRNO to macth errno | expand

Commit Message

Zhao Gongyi Feb. 5, 2021, 1:16 a.m. UTC
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(-)

--
2.17.1

Comments

Li Wang Feb. 5, 2021, 2:48 a.m. UTC | #1
Hi Gongyi,

Any possibility of finding a way to correct all of the unprecise res-flags
in LTP tests?
Li Wang Feb. 18, 2021, 7:08 a.m. UTC | #2
Pushed, thanks!
diff mbox series

Patch

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");
 	}
 }