[LTP] [PATCH] syscalls/clone09.c: Fix typo

Guangwen Feng fenggw-fnst@cn.fujitsu.com
Thu Jul 20 09:17:25 CEST 2017


Signed-off-by: Guangwen Feng <fenggw-fnst@cn.fujitsu.com>
---
 testcases/kernel/syscalls/clone/clone09.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testcases/kernel/syscalls/clone/clone09.c b/testcases/kernel/syscalls/clone/clone09.c
index 870c225..629e6c4 100644
--- a/testcases/kernel/syscalls/clone/clone09.c
+++ b/testcases/kernel/syscalls/clone/clone09.c
@@ -56,7 +56,7 @@ static long clone_child(void)
 {
 	TEST(ltp_clone(flags, newnet, NULL, CHILD_STACK_SIZE, child_stack));
 
-	if (TEST_RETURN == -1 && TTERRNO == EINVAL)
+	if (TEST_RETURN == -1 && TEST_ERRNO == EINVAL)
 		tst_brk(TCONF, "CLONE_NEWNET not supported, CONFIG_NET_NS?");
 
 	if (TEST_RETURN == -1)
-- 
2.9.4





More information about the ltp mailing list