Skip to content

Commit 5f31b9c

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

File tree

1 file changed

+3
-17
lines changed

1 file changed

+3
-17
lines changed

testcases/kernel/syscalls/sigrelse/sigrelse01.c

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -192,9 +192,6 @@ int main(int argc, char **argv)
192192
* parse standard options
193193
*/
194194
tst_parse_opts(argc, argv, NULL, NULL);
195-
#ifdef UCLINUX
196-
maybe_run_child(&child, "dd", &pipe_fd[1], &pipe_fd2[0]);
197-
#endif
198195

199196
/*
200197
* perform global setup for test
@@ -208,23 +205,12 @@ int main(int argc, char **argv)
208205
/*
209206
* fork off a child process
210207
*/
211-
if ((pid = tst_fork()) < 0) {
208+
if ((pid = tst_fork()) < 0)
212209
tst_brkm(TBROK | TERRNO, cleanup, "fork() failed");
213-
214-
} else if (pid > 0) {
210+
else if (pid > 0)
215211
parent();
216-
217-
} else {
218-
#ifdef UCLINUX
219-
if (self_exec(argv[0], "dd", pipe_fd[1], pipe_fd2[0]) <
220-
0) {
221-
tst_brkm(TBROK | TERRNO, cleanup,
222-
"self_exec() failed");
223-
}
224-
#else
212+
else
225213
child();
226-
#endif
227-
}
228214

229215
}
230216

0 commit comments

Comments
 (0)