xref: /third_party/ltp/lib/newlib_tests/test13.c (revision f08c3bdf)
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Copyright (c) 2016 Linux Test Project
4 */
5
6/*
7 * Test for timeout & children.
8 */
9
10#include "tst_test.h"
11
12static void do_test(void)
13{
14	SAFE_FORK();
15	SAFE_FORK();
16	SAFE_FORK();
17
18	tst_res(TINFO, "Pausing process pid %i", getpid());
19	pause();
20}
21
22static struct tst_test test = {
23	.forks_child = 1,
24	.test_all = do_test,
25};
26