[LTP] [PATCH v2 3/3] Rewrite process_vm_writev02.c using new LTP API

Cyril Hrubis chrubis@suse.cz
Mon Feb 14 15:43:27 CET 2022


Hi!
Applied with minor changes, thanks.

diff --git a/testcases/kernel/syscalls/cma/process_vm_writev02.c b/testcases/kernel/syscalls/cma/process_vm_writev02.c
index b535a8ff1..991110d24 100644
--- a/testcases/kernel/syscalls/cma/process_vm_writev02.c
+++ b/testcases/kernel/syscalls/cma/process_vm_writev02.c
@@ -109,11 +109,9 @@ static void run(void)
 
 	SAFE_WAITPID(pid_write, &status, 0);
 	if (!WIFEXITED(status) || WEXITSTATUS(status) != 0)
-		tst_res(TFAIL, "child 1: returns %s", tst_strstatus(status));
+		tst_res(TFAIL, "write child: %s", tst_strstatus(status));
 
 	TST_CHECKPOINT_WAKE(0);
-
-	SAFE_WAITPID(pid_alloc, &status, 0);
 }
 
 static struct tst_test test = {


I've adjusted the FAIL message a bit and also removed the waitpid(), if
we want the library to collect the alloc child the test library has to
wait() it not us.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list