Skip to contentSkip to conversation

include/tst_test: Expose tst_tmpdir and tst_rmdir to newlib tests.

PATCH New zhanglianjie 2 participants 3 messages Aug 5, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 include/tst_test: Expose tst_tmpdir and tst_rmdir to newlib tests.

include/tst_test.h +8 -0
index ce4e007cf..0e0806c93 100644
@@ -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

#1 lore raw

PATCH 1/1 include/tst_test: Expose tst_tmpdir and tst_rmdir to newlib tests.

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.

Signature · 2 lines
Cyril Hrubis
[email protected]
#2 lore raw

PATCH 1/1 include/tst_test: Expose tst_tmpdir and tst_rmdir to newlib tests.

Oh i see, thank you.

? 2021/8/5 17:38, Cyril Hrubis ??:

Quoted 5 lines

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.