File: usermetadatawritertest-skip-if-xattr-is-not-supported.patch

package info (click to toggle)
kf6-kfilemetadata 6.11.0-3
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 3,868 kB
  • sloc: cpp: 10,220; python: 35; sh: 16; makefile: 7; perl: 1
file content (22 lines) | stat: -rw-r--r-- 812 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: Maximiliano Curia <maxy@gnuservers.com.ar>
Date: Wed, 16 May 2018 19:50:55 +0200
Subject: usermetadatawritertest: skip if xattr is not supported
Last-Update: 2025-02-15

---
 autotests/usermetadatawritertest.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

--- a/autotests/usermetadatawritertest.cpp
+++ b/autotests/usermetadatawritertest.cpp
@@ -70,7 +70,9 @@ void UserMetaDataWriterTest::test()
 void UserMetaDataWriterTest::testMetadataSize()
 {
     KFileMetaData::UserMetaData md(testOutputPath(TEST_FILENAME));
-    QVERIFY(md.isSupported());
+    if (!md.isSupported()) {
+        QSKIP("The system doesn't support xattr, skipping");
+    }

     // In the current ext2, ext3, and ext4 filesystem implementations,
     // the total bytes used by the names and values of all of a file's