[Pkg-owncloud-commits] [owncloud-client] 306/498: Fix test build... again.

Sandro Knauß hefee-guest at moszumanska.debian.org
Tue Aug 11 14:49:01 UTC 2015


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 3b0f76f8537bb96351763f9c74736770a4828df5
Author: Christian Kamm <kamm at incasoftware.de>
Date:   Wed Jul 15 09:47:42 2015 +0200

    Fix test build... again.
    
    The issue was unrelated to moc! We just need to make sure QT_VERSION
    etc. are actually defined when we use them for a test!
---
 test/testfolderman.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/test/testfolderman.h b/test/testfolderman.h
index 5889c58..0fee89d 100644
--- a/test/testfolderman.h
+++ b/test/testfolderman.h
@@ -7,8 +7,8 @@
 
 #pragma once
 
-
-#if QT_VERSION >= 0x050100
+#include <qglobal.h>
+#if QT_VERSION >= QT_VERSION_CHECK(5, 1, 0)
 #include <QTemporaryDir>
 #endif
 #include <QtTest>
@@ -38,7 +38,7 @@ class TestFolderMan: public QObject
 private slots:
     void testCheckPathValidityForNewFolder()
     {
-#if QT_VERSION >= 0x050100
+#if QT_VERSION >= QT_VERSION_CHECK(5, 1, 0)
         QTemporaryDir dir;
         QVERIFY(dir.isValid());
         QDir dir2(dir.path());

-- 
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