[LTP] [PATCH] include/tst_test: Expose tst_tmpdir and tst_rmdir to newlib tests.
zhanglianjie
zhanglianjie@uniontech.com
Thu Aug 5 08:28:12 CEST 2021
Signed-off-by: zhanglianjie <zhanglianjie@uniontech.com>
diff --git a/include/tst_test.h b/include/tst_test.h
index ce4e007cf..0e0806c93 100644
--- a/include/tst_test.h
+++ b/include/tst_test.h
@@ -303,6 +303,14 @@ void tst_set_timeout(int timeout);
* Returns path to the test temporary directory in a newly allocated buffer.
*/
char *tst_get_tmpdir(void);
+/*
+ * Make the temporary directory and change to the temporary directory.
+ */
+void tst_tmpdir(void);
+/*
+ * Remove the temporary directory.
+ */
+void tst_rmdir(void);
#ifndef TST_NO_DEFAULT_MAIN
--
2.20.1
More information about the ltp
mailing list