Skip to content
Snippets Groups Projects
Commit 74383ba4 authored by Colin Walters's avatar Colin Walters
Browse files

tests/xattrs: Skip on filesystems with no user xattr support

parent 2b828581
No related branches found
No related tags found
No related merge requests found
...@@ -244,6 +244,21 @@ test_xattr_races (void) ...@@ -244,6 +244,21 @@ test_xattr_races (void)
if (!glnx_opendirat (AT_FDCWD, tmpdir, TRUE, &dfd, error)) if (!glnx_opendirat (AT_FDCWD, tmpdir, TRUE, &dfd, error))
goto out; goto out;
/* Support people building/testing on tmpfs https://github.com/flatpak/flatpak/issues/686 */
if (fsetxattr (dfd, "user.test", "novalue", strlen ("novalue"), 0) < 0)
{
if (errno == EOPNOTSUPP)
{
g_test_skip ("no xattr support");
return;
}
else
{
glnx_set_error_from_errno (error);
goto out;
}
}
for (guint i = 0; i < nprocs; i++) for (guint i = 0; i < nprocs; i++)
{ {
struct XattrWorker *worker = &wdata[i]; struct XattrWorker *worker = &wdata[i];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment