• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3  * Copyright (c) 2018, Linux Test Project
4  */
5 
6 #include <stdlib.h>
7 #include <unistd.h>
8 #include "tst_test.h"
9 
run(void)10 static void run(void)
11 {
12 	do {
13 		sleep(1);
14 	} while (tst_timeout_remaining() >= 4);
15 
16 	tst_res(TPASS, "Timeout remaining: %d", tst_timeout_remaining());
17 }
18 
19 static struct tst_test test = {
20 	.test_all = run,
21 	.timeout = 5
22 };
23