xref: /third_party/ltp/lib/newlib_tests/test18.c (revision f08c3bdf)
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
10static 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
19static struct tst_test test = {
20	.test_all = run,
21	.timeout = 5
22};
23