xref: /aosp_15_r20/external/ltp/lib/newlib_tests/test13.c (revision 49cdfc7efb34551c7342be41a7384b9c40d7cab7)
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 
do_test(void)12 static 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 
22 static struct tst_test test = {
23 	.forks_child = 1,
24 	.test_all = do_test,
25 };
26