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
|
Description: Skips failing tests for BSD
Some tests fails on BSD, so we skip them in hope of the application still works.
Author: Sandro Knauß <hefee@debian.org>
Origin: debian
Bug-Debian: https://bugs.debian.org/750903
Last-Update: 2014-07-29
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/test/testfolderwatcher.cpp
+++ b/test/testfolderwatcher.cpp
@@ -141,18 +141,27 @@ 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));
}
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);
@@ -173,6 +182,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));
|