Skip more tests if /var/tmp doesn't support extended attributes

This commit is contained in:
Simon McVittie committed 2016-06-26 14:29:31 +01:00
1 parent b77f68a4c2
commit fbc2340342
3 files changed
+26

No files matched your search

@@ -0,0 +1,23 @@
From: Simon McVittie <smcv@debian.org>
Date: Sun, 26 Jun 2016 14:26:37 +0100
Subject: entry_pathname_test_helper: these tests need extended attributes
Signed-off-by: Simon McVittie <smcv@debian.org>
---
tests/test-libarchive-import.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tests/test-libarchive-import.c b/tests/test-libarchive-import.c
index aaa3c37..3ef379e 100644
--- a/tests/test-libarchive-import.c
+++ b/tests/test-libarchive-import.c
@@ -433,6 +433,9 @@ entry_pathname_test_helper (gconstpointer data, gboolean on)
OstreeRepoCommitModifier *modifier = NULL;
gboolean met_etc_file = FALSE;
+ if (skip_if_no_xattr (td))
+ goto out;
+
modifier = ostree_repo_commit_modifier_new (0, NULL, NULL, NULL);
ostree_repo_commit_modifier_set_xattr_callback (modifier, path_cb,
NULL, &met_etc_file);
+1
View File
@@ -2,3 +2,4 @@ libostree.sym-Fix-test-symbols.patch
pull-Correctly-handle-repo-parent_repo-when-applying-stat.patch
tests-use-our-own-generated-libtool-not-the-one-in-PATH.patch
tests-fail-the-build-if-symlinking-tests-ostree-fails.patch
entry_pathname_test_helper-these-tests-need-extended-attr.patch