File tree Expand file tree Collapse file tree 2 files changed +1
-19
lines changed
testcases/kernel/syscalls/pause Expand file tree Collapse file tree 2 files changed +1
-19
lines changed Original file line number Diff line number Diff line change @@ -45,10 +45,6 @@ int main(int ac, char **av)
45
45
46
46
tst_parse_opts (ac , av , NULL , NULL );
47
47
48
- #ifdef UCLINUX
49
- maybe_run_child (& do_child , "" );
50
- #endif
51
-
52
48
setup ();
53
49
54
50
for (lc = 0 ; TEST_LOOPING (lc ); lc ++ ) {
@@ -60,12 +56,7 @@ int main(int ac, char **av)
60
56
tst_brkm (TBROK , cleanup , "fork() failed" );
61
57
break ;
62
58
case 0 :
63
- #ifdef UCLINUX
64
- if (self_exec (av [0 ], "" ) < 0 )
65
- tst_brkm (TBROK , cleanup , "self_exec failed" );
66
- #else
67
59
do_child ();
68
- #endif
69
60
break ;
70
61
default :
71
62
break ;
Original file line number Diff line number Diff line change @@ -44,9 +44,6 @@ int main(int ac, char **av)
44
44
int status ;
45
45
46
46
tst_parse_opts (ac , av , NULL , NULL );
47
- #ifdef UCLINUX
48
- maybe_run_child (& do_child , "" );
49
- #endif
50
47
51
48
setup ();
52
49
@@ -56,14 +53,8 @@ int main(int ac, char **av)
56
53
if ((cpid = tst_fork ()) == -1 )
57
54
tst_brkm (TBROK | TERRNO , NULL , "fork() failed" );
58
55
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 )
64
57
do_child ();
65
- #endif
66
- }
67
58
68
59
TST_PROCESS_STATE_WAIT (cleanup , cpid , 'S' );
69
60
You can’t perform that action at this time.
0 commit comments