[Pkg-owncloud-commits] [owncloud-client] 02/02: Added patch to skip specific failing tests on BSD.

Sandro Knauß hefee-guest at moszumanska.debian.org
Tue Jul 29 15:19:54 UTC 2014


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit 6a379087b783f66e6097519777516ca71c0d6874
Author: Sandro Knauß <bugs at sandroknauss.de>
Date:   Tue Jul 29 17:14:22 2014 +0200

    Added patch to skip specific failing tests on BSD.
    
    Mitigates: 750903
---
 debian/patches/0003-skip_tests_freebsd.patch | 52 ++++++++++++++++++++++++++++
 debian/patches/series                        |  1 +
 2 files changed, 53 insertions(+)

diff --git a/debian/patches/0003-skip_tests_freebsd.patch b/debian/patches/0003-skip_tests_freebsd.patch
new file mode 100644
index 0000000..9f4a485
--- /dev/null
+++ b/debian/patches/0003-skip_tests_freebsd.patch
@@ -0,0 +1,52 @@
+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ß <bugs at sandroknauss.de>
+Origin: debian
+Bug-Debian: ttps://bugs.debian.org/750903
+Last-Update: 2014-07-29
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: owncloud-client/test/testfolderwatcher.h
+===================================================================
+--- owncloud-client.orig/test/testfolderwatcher.h	2014-05-18 15:55:18.979057567 +0200
++++ owncloud-client/test/testfolderwatcher.h	2014-07-29 17:08:54.422638473 +0200
+@@ -60,6 +60,9 @@
+     }
+ 
+     void testACreate() { // create a new file
++        #if defined(Q_OS_FREEBSD_KERNEL)
++        Q_SKIP("Test fails on BSD", SkipSingle);
++        #endif
+         QString cmd;
+         _checkMark = _root;
+         cmd = QString("echo \"xyz\" > %1/foo.txt").arg(_root);
+@@ -91,6 +94,9 @@
+     }
+ 
+     void testRemoveADir() {
++        #if defined(Q_OS_FREEBSD_KERNEL)
++        Q_SKIP("Test fails on BSD", SkipSingle);
++        #endif
+         _checkMark = _root+"/a1/b3";
+         QDir dir;
+         QVERIFY(dir.rmdir(_root+"/a1/b3/c3"));
+@@ -99,6 +105,9 @@
+     }
+ 
+     void testRemoveAFile() {
++        #if defined(Q_OS_FREEBSD_KERNEL)
++        Q_SKIP("Test fails on BSD", SkipSingle);
++        #endif
+         _checkMark = _root+"/a1/b2";
+         QVERIFY(QFile::exists(_root+"/a1/b2/todelete.bin"));
+         QFile::remove(_root+"/a1/b2/todelete.bin");
+@@ -108,6 +117,9 @@
+     }
+ 
+     void testMoveAFile() {
++        #if defined(Q_OS_FREEBSD_KERNEL)
++        Q_SKIP("Test fails on BSD", SkipSingle);
++        #endif
+         _checkMark = _root+"/a2";
+         QVERIFY(QFile::exists(_root+"/a2/movefile"));
+         QFile::rename(_root+"/a2/movefile", _root+"/a2/movefile.renamed" );
diff --git a/debian/patches/series b/debian/patches/series
index 4c81f72..07af47c 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 0001-disable-updatecheck.patch
 0002-debian_version.patch
+0003-skip_tests_freebsd.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list