MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / utest_tc_cleanup

Function utest_tc_cleanup

components/dfs/utest/tc_posix_api.c:489–507  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

487}
488
489static rt_err_t utest_tc_cleanup(void)
490{
491 /* Ensure all resources are cleaned up */
492 if (fd >= 0)
493 {
494 close(fd);
495 fd = -1;
496 }
497
498 /* Clean up all test files and directories */
499 unlink(TEST_FILE);
500 unlink(TEST_RENAME_FILE);
501 unlink(TEST_DIR_FILE);
502 unlink(TEST_LINK_FILE);
503 rmdir(TEST_DIR);
504 rmdir(TEST_CHDIR_DIR);
505
506 return RT_EOK;
507}
508
509static void testcase(void)
510{

Callers

nothing calls this directly

Calls 3

closeFunction · 0.50
unlinkFunction · 0.50
rmdirFunction · 0.50

Tested by

no test coverage detected