Skip to content
Snippets Groups Projects
Commit f44d9442 authored by Simon McVittie's avatar Simon McVittie
Browse files

tests: Run each shutil test in a temporary directory


Otherwise it could potentially race with tests in other executables that
also want to create `./test`, or interfere with other test-cases in the
same executable that expect `./test` to be nonexistent or empty.

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent b3459551
No related branches found
No related tags found
1 merge request!777Update libglnx to 2025-01-06
......@@ -32,6 +32,7 @@
static void
test_mkdir_p_enoent (void)
{
_GLNX_TEST_SCOPED_TEMP_DIR;
_GLNX_TEST_DECLARE_ERROR(local_error, error);
glnx_autofd int dfd = -1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment