Home
last modified time | relevance | path

Searched +full:fail +full:- +full:if +full:- +full:fork +full:- +full:is +full:- +full:not +full:- +full:public (Results 1 – 25 of 214) sorted by relevance

123456789

/third_party/ltp/testcases/kernel/syscalls/fork/
Dfork06.c4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
9 * This program is distributed in the hope that it will be useful,
12 * the GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22 * Test that a process can fork children a large number of
26 * Attempt to fork a child that exits immediately
55 int i, pid, status, childpid, succeed, fail; in main() local
[all …]
Dfork11.c4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
9 * This program is distributed in the hope that it will be useful,
12 * the GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
26 * Fork NUMFORKS children that do nothing.
55 int fail = 0; in main() local
66 pid = fork(); in main()
[all …]
Dfork04.c4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of version 2 of the GNU General Public License as
8 * This program is distributed in the hope that it would be useful, but
12 * Further, this software is distributed without any warranty that it is
15 * otherwise, applies only to this software file. Patent licenses, if
16 * any, provided herein do not apply to combinations of this program with
19 * You should have received a copy of the GNU General Public License along
20 * with this program; if not, write the Free Software Foundation, Inc.,
21 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
33 * OS Test - Silicon Graphics, Inc.
[all …]
/third_party/ltp/testcases/kernel/syscalls/ipc/msgstress/
Dmsgstress04.c4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
9 * This program is distributed in the hope that it will be useful,
12 * the GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
48 #define MAXNPROCS 1000000 /* This value is set to an arbitrary high limit. */
55 static int maxnkids = MAXNKIDS; /* Used if pid_max is exceeded */
86 printf(" -n Number of processes\n"); in usage()
[all …]
Dmsgstress02.c4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
9 * This program is distributed in the hope that it will be useful,
12 * the GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
47 #define MAXNPROCS 1000000 /* This value is set to an arbitrary high limit. */
81 printf(" -n Number of processes\n"); in usage()
82 printf(" -c Number of read/write child pairs\n"); in usage()
[all …]
Dmsgstress03.c4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
9 * This program is distributed in the hope that it will be useful,
12 * the GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
49 #define MAXNREPS 10000 /*Else they srewup the system un-necessarily */
75 printf(" -n Number of processes\n"); in usage()
76 printf(" -l Number of iterations\n"); in usage()
[all …]
/third_party/grpc/test/core/event_engine/
Dforkable_test.cc4 // you may not use this file except in compliance with the License.
7 // http://www.apache.org/licenses/LICENSE-2.0
10 // distributed under the License is distributed on an "AS IS" BASIS,
41 public:
42 static void Prefork() { g_forkable_manager->Prefork(); } in Prefork()
43 static void PostforkParent() { g_forkable_manager->PostforkParent(); } in PostforkParent()
44 static void PostforkChild() { g_forkable_manager->PostforkChild(); } in PostforkChild()
48 class ForkableTest : public testing::Test {};
52 class SomeForkable : public Forkable { in TEST_F()
53 public: in TEST_F()
[all …]
/third_party/ltp/testcases/kernel/syscalls/kill/
Dkill08.c5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
10 * This program is distributed in the hope that it will be useful,
13 * the GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
30 * loop if the -i option was given
31 * fork 5 childeren
34 * if return value is -1
[all …]
Dkill07.c5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
10 * This program is distributed in the hope that it will be useful,
13 * the GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
25 * Test case to check that SIGKILL can not be caught.
30 * loop if the -i option was given
32 * if SIGKILL is caught set the shared memory flag.
[all …]
/third_party/pulseaudio/src/pulsecore/
Dstart-child.c2 This file is part of PulseAudio.
6 PulseAudio is free software; you can redistribute it and/or modify
7 it under the terms of the GNU Lesser General Public License as
11 PulseAudio is distributed in the hope that it will be useful, but
14 Lesser General Public License for more details.
16 You should have received a copy of the GNU Lesser General Public
17 License along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.
39 #include <pulsecore/core-util.h>
40 #include <pulsecore/core-error.h>
43 #include "start-child.h"
[all …]
/third_party/ltp/testcases/kernel/syscalls/setsid/
Dsetsid01.c5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
10 * This program is distributed in the hope that it will be useful,
13 * the GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
31 * This test doesn't follow good LTP format - PLEASE FIX!
43 #define INVAL_FLAG -1
64 int fail = 0; in main() local
[all …]
/third_party/pulseaudio/src/pulse/
Dfork-detect.c2 This file is part of PulseAudio.
6 PulseAudio is free software; you can redistribute it and/or modify
7 it under the terms of the GNU Lesser General Public License as published
11 PulseAudio is distributed in the hope that it will be useful, but
14 General Public License for more details.
16 You should have received a copy of the GNU Lesser General Public License
17 along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.
29 #include "fork-detect.h"
32 static pa_atomic_t pid = PA_ATOMIC_INIT((int) -1); in pa_detect_fork()
35 * love to fork after initializing in pa_detect_fork()
[all …]
/third_party/ltp/testcases/kernel/syscalls/vfork/
Dvfork02.c5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
10 * This program is distributed in the hope that it will be useful,
13 * the GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
24 * Fork a process using vfork() and verify that, the pending signals in
25 * the parent are not pending in the child process.
28 * The signal which is pending in the parent should not be pending in the
[all …]
/third_party/ltp/testcases/kernel/syscalls/fcntl/
Dfcntl17.c5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
10 * This program is distributed in the hope that it will be useful,
13 * the GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
103 tst_sig(FORK, DEF_HANDLER, NULL); in setup()
108 if (pipe(parent_pipe) < 0) { in setup()
113 if (pipe(child_pipe1) < 0) { in setup()
[all …]
Dfcntl18.c5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
10 * This program is distributed in the hope that it will be useful,
13 * the GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
48 #define INVAL_FLAG -1
49 #define INVAL_MIN (-2147483647L-1L)
60 int fail; variable
[all …]
/third_party/ltp/testcases/kernel/syscalls/move_pages/
Dmove_pages11.c9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
14 * This program is distributed in the hope that it will be useful,
17 * the GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
33 * 2. Fork another process.
36 * 4. Check if errno is set to EPERM.
38 * USAGE: <for command-line>
[all …]
Dmove_pages06.c9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
14 * This program is distributed in the hope that it will be useful,
17 * the GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
29 * Failure when NUMA node is invalid.
33 * 1. Pass a non-existent NUMA node number to move_pages().
34 * 2. Check if errno is set to ENODEV.
[all …]
Dmove_pages07.c9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
14 * This program is distributed in the hope that it will be useful,
17 * the GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
29 * Failure when PID is invalid.
33 * 1. Pass a non-existent pid to move_pages().
34 * 2. Check if errno is set to ESRCH.
[all …]
Dmove_pages10.c9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
14 * This program is distributed in the hope that it will be useful,
17 * the GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
29 * Failure when flags passed to move_pages is invalid.
34 * 2. Check if errno is set to EINVAL.
36 * USAGE: <for command-line>
[all …]
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/
D9-1.c2 * This program is free software; you can redistribute it and/or modify
3 * it under the terms of the GNU General Public License version 2.
5 * This program is distributed in the hope that it will be useful,
8 * GNU General Public License for more details.
12 * priority running process, if the priority of the process specified by the
13 * pid argument is set higher than that of the lowest priority running process
14 * and if the specified process is ready to run.
18 * There is no portable way to get the number of CPUs but the test should work
19 * for most of UNIX system (including but not limited to: Linux, Solaris, AIX,
25 * 3. Create NB_CPU-1 children processes which set their own priority to the
[all …]
/third_party/ltp/testcases/kernel/fs/doio/
Dforker.c4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of version 2 of the GNU General Public License as
8 * This program is distributed in the hope that it would be useful, but
12 * Further, this software is distributed without any warranty that it is
15 * otherwise, applies only to this software file. Patent licenses, if
16 * any, provided herein do not apply to combinations of this program with
19 * You should have received a copy of the GNU General Public License along
20 * with this program; if not, write the Free Software Foundation, Inc.,
21 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
34 * OS Testing - Silicon Graphics, Inc.
[all …]
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_unlink/
D3-1.c5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of version 2 of the GNU General Public License as
9 * This program is distributed in the hope that it would be useful, but
13 * You should have received a copy of the GNU General Public License along
14 * with this program; if not, write the Free Software Foundation, Inc.,
15 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 * sem_unlink will return -1 and set errno to EACCESS if the process has not
23 * -> open a semaphore with 0744 mask
24 * -> fork
25 * -> change child uid
[all …]
/third_party/ltp/testcases/kernel/mem/page/
Dpage01.c5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
10 * This program is distributed in the hope that it will be useful,
13 * the GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
35 < is what was expected.
82 if (argc < 2) {
85 } else if (argc == 3) {
[all …]
/third_party/ltp/testcases/kernel/syscalls/setpgid/
Dsetpgid01.c4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of version 2 of the GNU General Public License as
8 * This program is distributed in the hope that it would be useful, but
12 * Further, this software is distributed without any warranty that it is
15 * otherwise, applies only to this software file. Patent licenses, if
16 * any, provided herein do not apply to combinations of this program with
19 * You should have received a copy of the GNU General Public License along
20 * with this program; if not, write the Free Software Foundation, Inc.,
21 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
86 if (TEST_RETURN == -1 || getpgrp() != pgid) { in setpgid_test1()
[all …]
/third_party/ltp/testcases/kernel/fs/ftest/
Dftest01.c6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
11 * This program is distributed in the hope that it will be useful,
14 * the GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23 * ftest01.c -- test file I/O (ported from SPIE section2, filesuite, by Airong Zhang)
30 * A bitmap is used to map pieces of a file.
32 * if we haven't seen it before make sure it is zero,
[all …]

123456789