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)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 22 static struct tst_test test = { 23 .timeout = 1, 24 .forks_child = 1, 25 .test_all = do_test, 26 }; 27