You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
379 B
23 lines
379 B
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
/*
|
|
* Copyright (c) 2018, Linux Test Project
|
|
*/
|
|
|
|
#include <stdlib.h>
|
|
#include <unistd.h>
|
|
#include "tst_test.h"
|
|
|
|
static void run(void)
|
|
{
|
|
do {
|
|
sleep(1);
|
|
} while (tst_timeout_remaining() >= 4);
|
|
|
|
tst_res(TPASS, "Timeout remaining: %d", tst_timeout_remaining());
|
|
}
|
|
|
|
static struct tst_test test = {
|
|
.test_all = run,
|
|
.timeout = 5
|
|
};
|