xref: /aosp_15_r20/external/ltp/lib/newlib_tests/shell/timeout04.sh (revision 49cdfc7efb34551c7342be41a7384b9c40d7cab7)
1*49cdfc7eSAndroid Build Coastguard Worker#!/bin/sh
2*49cdfc7eSAndroid Build Coastguard Worker# SPDX-License-Identifier: GPL-2.0-or-later
3*49cdfc7eSAndroid Build Coastguard Worker# Copyright (c) 2021 Joerg Vehlow <[email protected]>
4*49cdfc7eSAndroid Build Coastguard Worker
5*49cdfc7eSAndroid Build Coastguard WorkerTST_TESTFUNC=do_test
6*49cdfc7eSAndroid Build Coastguard Worker
7*49cdfc7eSAndroid Build Coastguard WorkerTST_TIMEOUT=1
8*49cdfc7eSAndroid Build Coastguard Worker
9*49cdfc7eSAndroid Build Coastguard Workerdo_test()
10*49cdfc7eSAndroid Build Coastguard Worker{
11*49cdfc7eSAndroid Build Coastguard Worker    tst_res TINFO "Start"
12*49cdfc7eSAndroid Build Coastguard Worker    sleep 5
13*49cdfc7eSAndroid Build Coastguard Worker    tst_res TFAIL "End"
14*49cdfc7eSAndroid Build Coastguard Worker}
15*49cdfc7eSAndroid Build Coastguard Worker
16*49cdfc7eSAndroid Build Coastguard Workerdo_cleanup()
17*49cdfc7eSAndroid Build Coastguard Worker{
18*49cdfc7eSAndroid Build Coastguard Worker    tst_res TINFO "cleanup"
19*49cdfc7eSAndroid Build Coastguard Worker}
20*49cdfc7eSAndroid Build Coastguard Worker
21*49cdfc7eSAndroid Build Coastguard Worker. tst_test.sh
22*49cdfc7eSAndroid Build Coastguard Workertst_run
23