($INBOX_DIR/description missing)
 help / color / mirror / Atom feed
From: Petr Vorel <pvorel@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH 09/31] connect01: Remove UCLINUX
Date: Thu, 11 Apr 2024 16:30:03 +0200	[thread overview]
Message-ID: <20240411143025.352507-10-pvorel@suse.cz> (raw)
In-Reply-To: <20240411143025.352507-1-pvorel@suse.cz>

Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
 testcases/kernel/syscalls/connect/connect01.c | 15 ---------------
 1 file changed, 15 deletions(-)

diff --git a/testcases/kernel/syscalls/connect/connect01.c b/testcases/kernel/syscalls/connect/connect01.c
index d901427ff..660c4f7a9 100644
--- a/testcases/kernel/syscalls/connect/connect01.c
+++ b/testcases/kernel/syscalls/connect/connect01.c
@@ -83,13 +83,10 @@ struct test_case_t {		/* test case structure */
 	PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&sin1,
 		    sizeof(struct sockaddr_in), -1, EBADF, setup0,
 		    cleanup0, "bad file descriptor"},
-#ifndef UCLINUX
-	    /* Skip since uClinux does not implement memory protection */
 	{
 	PF_INET, SOCK_STREAM, 0, (struct sockaddr *)-1,
 		    sizeof(struct sockaddr_in), -1, EFAULT, setup1,
 		    cleanup1, "invalid socket buffer"},
-#endif
 	{
 	PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&sin1,
 		    3, -1, EINVAL, setup1, cleanup1, "invalid salen"}, {
@@ -112,10 +109,6 @@ struct test_case_t {		/* test case structure */
 
 int TST_TOTAL = sizeof(tdat) / sizeof(tdat[0]);
 
-#ifdef UCLINUX
-static char *argv0;
-#endif
-
 /**
  * bionic's connect() implementation calls netdClientInitConnect() before
  * sending the request to the kernel.  We need to bypass this, or the test will
@@ -139,10 +132,6 @@ int main(int argc, char *argv[])
 	int lc;
 
 	tst_parse_opts(argc, argv, NULL, NULL);
-#ifdef UCLINUX
-	argv0 = argv[0];
-	maybe_run_child(&do_child, "d", &sfd);
-#endif
 
 	setup();
 
@@ -263,11 +252,7 @@ pid_t start_server(struct sockaddr_in *sin0)
 
 	switch ((pid = tst_fork())) {
 	case 0:		/* child */
-#ifdef UCLINUX
-		self_exec(argv0, "d", sfd);
-#else
 		do_child();
-#endif
 		break;
 	case -1:
 		tst_brkm(TBROK | TERRNO, cleanup, "server fork failed");
-- 
2.43.0


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

  parent reply	other threads:[~2024-04-11 14:30 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-11 14:29 [LTP] [PATCH 00/31] Remove UCLINUX (nommu support) from LTP legacy C API Petr Vorel
2024-04-11 14:29 ` [LTP] [PATCH 01/31] m4: Remove UCLINUX (nommu detection) Petr Vorel
2024-04-11 14:29 ` [LTP] [PATCH 02/31] make: Remove WITH_POWER_MANAGEMENT_TESTSUITE Petr Vorel
2024-04-11 14:29 ` [LTP] [PATCH 03/31] make: Remove UCLINUX (nommu detection) Petr Vorel
2024-04-11 14:29 ` [LTP] [PATCH 04/31] test.h: Remove MAP_PRIVATE_EXCEPT_UCLINUX Petr Vorel
2024-04-11 14:29 ` [LTP] [PATCH 05/31] tree: Remove FORK_OR_VFORK and tst_vfork() Petr Vorel
2024-04-11 14:30 ` [LTP] [PATCH 06/31] lib/parse_opts.c: Remove UCLINUX Petr Vorel
2024-04-11 14:30 ` [LTP] [PATCH 07/31] tlibio.c: " Petr Vorel
2024-04-11 14:59   ` Cyril Hrubis
2024-04-11 20:46     ` Petr Vorel
2024-04-12  7:36       ` Cyril Hrubis
2024-04-12  8:32         ` Andrea Cervesato via ltp
2024-04-12  8:57           ` Cyril Hrubis
2024-04-12  9:08             ` Andrea Cervesato via ltp
2024-04-11 14:30 ` [LTP] [PATCH 08/31] clone02: " Petr Vorel
2024-04-11 14:30 ` Petr Vorel [this message]
2024-04-11 14:30 ` [LTP] [PATCH 10/31] creat06: " Petr Vorel
2024-04-11 14:30 ` [LTP] [PATCH 11/31] fcntl: " Petr Vorel
2024-04-11 14:30 ` [LTP] [PATCH 12/31] semctl06: " Petr Vorel
2024-04-11 14:30 ` [LTP] [PATCH 13/31] kill: " Petr Vorel
2024-04-11 14:30 ` [LTP] [PATCH 14/31] madvise02: " Petr Vorel
2024-04-11 15:37   ` Cyril Hrubis
2024-04-11 20:51     ` Petr Vorel
2024-04-11 14:30 ` [LTP] [PATCH 15/31] mlockall: " Petr Vorel
2024-04-11 14:30 ` [LTP] [PATCH 16/31] munmap: " Petr Vorel
2024-04-11 14:30 ` [LTP] [PATCH 17/31] writev05: " Petr Vorel
2024-04-11 14:30 ` [LTP] [PATCH 18/31] pipe: " Petr Vorel
2024-04-11 14:30 ` [LTP] [PATCH 19/31] pause: " Petr Vorel
2024-04-11 14:30 ` [LTP] [PATCH 20/31] recv*: " Petr Vorel
2024-04-11 14:30 ` [LTP] [PATCH 21/31] send*: " Petr Vorel
2024-04-11 14:30 ` [LTP] [PATCH 22/31] sock*: " Petr Vorel
2024-04-11 14:30 ` [LTP] [PATCH 23/31] read02: " Petr Vorel
2024-04-11 14:30 ` [LTP] [PATCH 24/31] setgroups04: " Petr Vorel
2024-04-11 14:30 ` [LTP] [PATCH 25/31] setsid01: " Petr Vorel
2024-04-11 14:30 ` [LTP] [PATCH 26/31] sigrelse01: " Petr Vorel
2024-04-11 14:30 ` [LTP] [PATCH 27/31] sysinfo02: " Petr Vorel
2024-04-11 14:30 ` [LTP] [PATCH 28/31] ustat02: " Petr Vorel
2024-04-11 14:30 ` [LTP] [PATCH 29/31] lib: Remove -C option and self_exec.c Petr Vorel
2024-04-11 16:02   ` Cyril Hrubis
2024-04-11 20:56     ` Petr Vorel
2024-04-11 14:30 ` [LTP] [PATCH 30/31] Remove doc/old/nommu-notes.txt Petr Vorel
2024-04-11 14:30 ` [LTP] [PATCH 31/31] doc: UCLINUX has been removed Petr Vorel
2024-05-03 15:39 ` [LTP] [PATCH 00/31] Remove UCLINUX (nommu support) from LTP legacy C API Cyril Hrubis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240411143025.352507-10-pvorel@suse.cz \
    --to=pvorel@suse.cz \
    --cc=ltp@lists.linux.it \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).