Skip to content

Commit b6b5830

Browse files
pevikmetan-ucw
authored andcommitted
syscalls/setsid01: Remove UCLINUX
Signed-off-by: Petr Vorel <[email protected]> Reviewed-by: Cyril Hrubis <[email protected]>
1 parent 070b10e commit b6b5830

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

testcases/kernel/syscalls/setsid/setsid01.c

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,6 @@
4949
char *TCID = "setsid01";
5050
int TST_TOTAL = 1;
5151

52-
#ifdef UCLINUX
53-
static char *argv0;
54-
#endif
55-
5652
void do_child_1(void);
5753
void do_child_2(void);
5854
void setup(void);
@@ -68,12 +64,6 @@ int main(int ac, char **av)
6864
int lc;
6965

7066
tst_parse_opts(ac, av, NULL, NULL);
71-
#ifdef UCLINUX
72-
argv0 = av[0];
73-
74-
maybe_run_child(&do_child_1, "n", 1);
75-
maybe_run_child(&do_child_2, "n", 2);
76-
#endif
7767

7868
/*
7969
* perform global setup for the test
@@ -98,14 +88,7 @@ int main(int ac, char **av)
9888

9989
}
10090
if (pid == 0) {
101-
#ifdef UCLINUX
102-
if (self_exec(argv0, "n", 1) < 0) {
103-
tst_resm(TFAIL, "self_exec failed");
104-
105-
}
106-
#else
10791
do_child_1();
108-
#endif
10992
} else {
11093
if (setpgid(0, 0) < 0) {
11194
tst_resm(TFAIL,
@@ -165,13 +148,7 @@ void do_child_1(void)
165148
tst_brkm(TFAIL, NULL, "Fork failed");
166149
}
167150
if (pid == 0) {
168-
#ifdef UCLINUX
169-
if (self_exec(argv0, "n", 2) < 0) {
170-
tst_brkm(TFAIL, NULL, "self_exec failed");
171-
}
172-
#else
173151
do_child_2();
174-
#endif
175152
} else {
176153
retval = setpgid(0, getppid());
177154
if (retval < 0) {

0 commit comments

Comments
 (0)