Files
rk35xx-android14/external/ltp/lib/newlib_tests/test_runtime02.c
T
hmz007 36ed224bac Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a)
Signed-off-by: hmz007 <hmz007@gmail.com>
Change-Id: Ib87fdbe7a0be7dc961af3500fe9ea4589a127f9f
2024-10-29 18:12:02 +08:00

29 lines
710 B
C

// SPDX-License-Identifier: GPL-2.0-or-later
/*
* Copyright (c) 2021, Linux Test Project
*/
/*
* This test is set up so that the timeout is not long enough to guarantee
* enough runtime for two iterations, i.e. the timeout without offset and after
* scaling is too small and the tests ends up with TBROK.
*
* The default timeout in the test library is set to 30 seconds. The test
* runtime is set to 5 so the test should timeout after 35 seconds.
*/
#include <stdlib.h>
#include <unistd.h>
#include "tst_test.h"
static void run(void)
{
tst_res(TINFO, "Sleeping for 40 seconds");
sleep(40);
tst_res(TFAIL, "Still alive");
}
static struct tst_test test = {
.test_all = run,
.max_runtime = 5,
};