Skip to content

Commit f3a290e

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

File tree

2 files changed

+1
-19
lines changed

2 files changed

+1
-19
lines changed

testcases/kernel/syscalls/pause/pause02.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,6 @@ int main(int ac, char **av)
4545

4646
tst_parse_opts(ac, av, NULL, NULL);
4747

48-
#ifdef UCLINUX
49-
maybe_run_child(&do_child, "");
50-
#endif
51-
5248
setup();
5349

5450
for (lc = 0; TEST_LOOPING(lc); lc++) {
@@ -60,12 +56,7 @@ int main(int ac, char **av)
6056
tst_brkm(TBROK, cleanup, "fork() failed");
6157
break;
6258
case 0:
63-
#ifdef UCLINUX
64-
if (self_exec(av[0], "") < 0)
65-
tst_brkm(TBROK, cleanup, "self_exec failed");
66-
#else
6759
do_child();
68-
#endif
6960
break;
7061
default:
7162
break;

testcases/kernel/syscalls/pause/pause03.c

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,6 @@ int main(int ac, char **av)
4444
int status;
4545

4646
tst_parse_opts(ac, av, NULL, NULL);
47-
#ifdef UCLINUX
48-
maybe_run_child(&do_child, "");
49-
#endif
5047

5148
setup();
5249

@@ -56,14 +53,8 @@ int main(int ac, char **av)
5653
if ((cpid = tst_fork()) == -1)
5754
tst_brkm(TBROK | TERRNO, NULL, "fork() failed");
5855

59-
if (cpid == 0) {
60-
#ifdef UCLINUX
61-
if (self_exec(av[0], "") < 0)
62-
tst_brkm(TBROK, cleanup, "self_exec failed");
63-
#else
56+
if (cpid == 0)
6457
do_child();
65-
#endif
66-
}
6758

6859
TST_PROCESS_STATE_WAIT(cleanup, cpid, 'S');
6960

0 commit comments

Comments
 (0)