* [LTP] [PATCH] include/tst_test: Expose tst_tmpdir and tst_rmdir to newlib tests.
@ 2021-08-05 6:28 zhanglianjie
2021-08-05 9:38 ` Cyril Hrubis
0 siblings, 1 reply; 3+ messages in thread
From: zhanglianjie @ 2021-08-05 6:28 UTC (permalink / raw)
To: ltp
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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [LTP] [PATCH] include/tst_test: Expose tst_tmpdir and tst_rmdir to newlib tests.
2021-08-05 6:28 [LTP] [PATCH] include/tst_test: Expose tst_tmpdir and tst_rmdir to newlib tests zhanglianjie
@ 2021-08-05 9:38 ` Cyril Hrubis
2021-08-05 9:41 ` zhanglianjie
0 siblings, 1 reply; 3+ messages in thread
From: Cyril Hrubis @ 2021-08-05 9:38 UTC (permalink / raw)
To: ltp
Hi!
The test temporary temporary directory is created in the test library
when the .needs_tmpdir flag is set and these functions are not exported
to new library API for this reason.
--
Cyril Hrubis
chrubis@suse.cz
^ permalink raw reply [flat|nested] 3+ messages in thread
* [LTP] [PATCH] include/tst_test: Expose tst_tmpdir and tst_rmdir to newlib tests.
2021-08-05 9:38 ` Cyril Hrubis
@ 2021-08-05 9:41 ` zhanglianjie
0 siblings, 0 replies; 3+ messages in thread
From: zhanglianjie @ 2021-08-05 9:41 UTC (permalink / raw)
To: ltp
Oh i see, thank you.
? 2021/8/5 17:38, Cyril Hrubis ??:
> Hi!
> The test temporary temporary directory is created in the test library
> when the .needs_tmpdir flag is set and these functions are not exported
> to new library API for this reason.
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-08-05 9:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-05 6:28 [LTP] [PATCH] include/tst_test: Expose tst_tmpdir and tst_rmdir to newlib tests zhanglianjie
2021-08-05 9:38 ` Cyril Hrubis
2021-08-05 9:41 ` zhanglianjie
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.