Skip to contentSkip to conversation

syscalls/clone09.c: Fix typo

PATCH New Guangwen Feng 2 participants 2 messages Jul 20, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 syscalls/clone09.c: Fix typo

---
 testcases/kernel/syscalls/clone/clone09.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
testcases/kernel/syscalls/clone/clone09.c +1 -1
index 870c225..629e6c4 100644
@@ -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)
Signature · 1 line
2.9.4