Files
rk35xx-android14/external/ltp/lib/newlib_tests/test14.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

32 lines
595 B
C

// SPDX-License-Identifier: GPL-2.0-or-later
/*
* Copyright (c) 2016 Cyril Hrubis <chrubis@suse.cz>
*/
#include "tst_test.h"
#include "tst_safe_stdio.h"
#include "tst_safe_net.h"
static void cleanup(void)
{
int i;
tst_brk(TBROK, "TBROK in cleanup");
SAFE_OPEN("foo", O_RDWR);
SAFE_FILE_SCANF("foo", "%i", &i);
SAFE_TOUCH("doo/foo", 0777, NULL);
SAFE_FOPEN("foo", "r");
SAFE_SOCKET(AF_UNIX, SOCK_STREAM, -1);
tst_res(TINFO, "Test still here");
}
static void do_test(void)
{
tst_res(TPASS, "Passed");
}
static struct tst_test test = {
.test_all = do_test,
.cleanup = cleanup,
};