1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
|
From: =?utf-8?q?Sandro_Knau=C3=9F?= <hefee@debian.org>
Date: Mon, 19 Apr 2021 18:54:56 +0200
Subject: Skips failing tests for BSD
Origin: debian
Bug-Debian: https://bugs.debian.org/750903
Last-Update: 2014-07-29
Some tests fails on BSD, so we skip them in hope of the application still works.
Last-Update: 2014-07-29
---
test/testfolderwatcher.cpp | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/test/testfolderwatcher.cpp b/test/testfolderwatcher.cpp
index 2c227c6..029b405 100644
--- a/test/testfolderwatcher.cpp
+++ b/test/testfolderwatcher.cpp
@@ -162,6 +162,9 @@ private slots:
}
void testCreateADir() {
+#if defined(Q_OS_FREEBSD_KERNEL)
+ QSKIP("Test fails on BSD", QTest::SkipSingle);
+#endif
QString file(_rootPath+"/a1/b1/new_dir");
mkdir(file);
QVERIFY(waitForPathChanged(file));
@@ -173,12 +176,18 @@ private slots:
}
void testRemoveADir() {
+#if defined(Q_OS_FREEBSD_KERNEL)
+ QSKIP("Test fails on BSD", QTest::SkipSingle);
+#endif
QString file(_rootPath+"/a1/b3/c3");
rmdir(file);
QVERIFY(waitForPathChanged(file));
}
void testRemoveAFile() {
+#if defined(Q_OS_FREEBSD_KERNEL)
+ QSKIP("Test fails on BSD", QTest::SkipSingle);
+#endif
QString file(_rootPath+"/a1/b2/todelete.bin");
QVERIFY(QFile::exists(file));
rm(file);
@@ -199,6 +208,9 @@ private slots:
}
void testMoveAFile() {
+#if defined(Q_OS_FREEBSD_KERNEL)
+ QSKIP("Test fails on BSD", QTest::SkipSingle);
+#endif
QString old_file(_rootPath+"/a1/movefile");
QString new_file(_rootPath+"/a2/movefile.renamed");
QVERIFY(QFile::exists(old_file));
|