mirror of
https://github.com/ostreedev/ostree.git
synced 2025-03-11 20:58:45 +03:00
Skip test_libarchive_ignore_device_file if we cannot write xattrs
The test tries to get a filesystem that supports xattrs by writing to /var/tmp, but in some automated build environments the entire build chroot is on a tmpfs. Signed-off-by: Simon McVittie <smcv@debian.org>
This commit is contained in:
parent
35f412c86a
commit
0a7e128782
@ -193,6 +193,15 @@ test_libarchive_ignore_device_file (gconstpointer data)
|
|||||||
glnx_unref_object GFile *root = NULL;
|
glnx_unref_object GFile *root = NULL;
|
||||||
g_autofree char *commit_checksum = NULL;
|
g_autofree char *commit_checksum = NULL;
|
||||||
|
|
||||||
|
if (setxattr (td->tmpd, "user.test-xattr-support", "yes", 4, 0) != 0)
|
||||||
|
{
|
||||||
|
int saved_errno = errno;
|
||||||
|
g_autofree gchar *message = g_strdup_printf ("unable to setxattr on \"%s\": %s", td->tmpd, g_strerror (saved_errno));
|
||||||
|
|
||||||
|
g_test_skip (message);
|
||||||
|
goto out;
|
||||||
|
}
|
||||||
|
|
||||||
g_assert_cmpint (0, ==, lseek (td->fd, 0, SEEK_SET));
|
g_assert_cmpint (0, ==, lseek (td->fd, 0, SEEK_SET));
|
||||||
g_assert_cmpint (0, ==, archive_read_support_format_all (a));
|
g_assert_cmpint (0, ==, archive_read_support_format_all (a));
|
||||||
g_assert_cmpint (0, ==, archive_read_support_filter_all (a));
|
g_assert_cmpint (0, ==, archive_read_support_filter_all (a));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user