[LTP] [PATCH 5/6] creat07: no need to pass tst_ipc_envp anymore

Jan Stancek jstancek@redhat.com
Tue Oct 10 17:05:13 CEST 2017


Now that env. variable LTP_IPC_PATH is inherited by default,
it's not necessary to pass tst_ipc_envp anymore.

Signed-off-by: Jan Stancek <jstancek@redhat.com>
---
 testcases/kernel/syscalls/creat/creat07.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/testcases/kernel/syscalls/creat/creat07.c b/testcases/kernel/syscalls/creat/creat07.c
index e1b267661c39..236f4edf843f 100644
--- a/testcases/kernel/syscalls/creat/creat07.c
+++ b/testcases/kernel/syscalls/creat/creat07.c
@@ -38,9 +38,7 @@ static void verify_creat(void)
 
 	pid = SAFE_FORK();
 	if (pid == 0) {
-		char *av[] = {TEST_APP, NULL};
-		(void)execve(TEST_APP, av, tst_ipc_envp);
-		perror("execve failed");
+		SAFE_EXECLP(TEST_APP, TEST_APP, NULL);
 		exit(1);
 	}
 
-- 
1.8.3.1



More information about the ltp mailing list