[COMMITTED] syscalls/prctl02.c: Fix wrong type of test result
diff mbox series

Message ID 20191025104829.8988-1-ice_yangxiao@163.com
State Accepted
Delegated to: Petr Vorel
Headers show
Series
  • [COMMITTED] syscalls/prctl02.c: Fix wrong type of test result
Related show

Commit Message

Xiao Yang Oct. 25, 2019, 10:48 a.m. UTC
Reported-by: Yang Xu <xuyang2018.jy@cn.fujitsu.com>
Signed-off-by: Xiao Yang <ice_yangxiao@163.com>
---
 testcases/kernel/syscalls/prctl/prctl02.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch
diff mbox series

diff --git a/testcases/kernel/syscalls/prctl/prctl02.c b/testcases/kernel/syscalls/prctl/prctl02.c
index a6a852011..ec45911fd 100644
--- a/testcases/kernel/syscalls/prctl/prctl02.c
+++ b/testcases/kernel/syscalls/prctl/prctl02.c
@@ -38,7 +38,7 @@  static void verify_prctl(unsigned int n)
 	if (tc->exp_errno == TST_ERR) {
 		tst_res(TPASS | TTERRNO, "prctl() failed as expected");
 	} else {
-		tst_res(TPASS | TTERRNO, "prctl() failed unexpectedly, expected %s",
+		tst_res(TFAIL | TTERRNO, "prctl() failed unexpectedly, expected %s",
 				tst_strerrno(tc->exp_errno));
 	}
 }