New upstream version 2020.4
This commit is contained in:
commit
10a6e008df
129 files changed
+7441
-1244
No files matched your search
@@ -23,6 +23,8 @@
|
||||
|
||||
#include <errno.h>
|
||||
|
||||
#include <glib/gstdio.h>
|
||||
|
||||
#include "libglnx.h"
|
||||
|
||||
struct _GLnxTestAutoTempDir
|
||||
@@ -63,4 +65,10 @@ _glnx_test_auto_temp_dir_leave (_GLnxTestAutoTempDir *dir)
|
||||
|
||||
glnx_tmpdir_delete (&dir->temp_dir, NULL, &error);
|
||||
g_assert_no_error (error);
|
||||
|
||||
g_close (dir->old_cwd_fd, &error);
|
||||
g_assert_no_error (error);
|
||||
|
||||
g_free (dir->old_cwd);
|
||||
g_free (dir);
|
||||
}
|
||||
@@ -45,4 +45,4 @@ void _glnx_test_auto_temp_dir_leave (_GLnxTestAutoTempDir *dir);
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC(_GLnxTestAutoTempDir, _glnx_test_auto_temp_dir_leave);
|
||||
|
||||
#define _GLNX_TEST_SCOPED_TEMP_DIR \
|
||||
g_autoptr(_GLnxTestAutoTempDir) temp_dir = _glnx_test_auto_temp_dir_enter ()
|
||||
G_GNUC_UNUSED g_autoptr(_GLnxTestAutoTempDir) temp_dir = _glnx_test_auto_temp_dir_enter ()
|
||||
@@ -218,7 +218,11 @@ test_xattr_races (void)
|
||||
/* FIXME - this deadlocks for me on 4.9.4-201.fc25.x86_64, whether
|
||||
* using overlayfs or xfs as source/dest.
|
||||
*/
|
||||
#if GLIB_CHECK_VERSION (2, 36, 0)
|
||||
const guint nprocs = MAX (4, g_get_num_processors ());
|
||||
#else
|
||||
const guint nprocs = 4;
|
||||
#endif
|
||||
struct XattrWorker wdata[nprocs];
|
||||
GThread *threads[nprocs];
|
||||
g_autoptr(GError) local_error = NULL;
|
||||
|
||||
Reference in new issue
Block a user